VBS 回复短信

Reply to SMS in VBS

我今天要问你的问题是 "How to reply to an email using windows vbscript." (Gmail) 这可能不是最好的解释...

等等,我已经知道如何使用 VBScript 发送电子邮件(到 phone 到 phonenumber@txt.att.net),但我想回复短信。当在我的计算机上执行某个操作(通过 VBScript)时,我有一个系统会提醒我的 phone,但这种情况一直在发生。就好像我每次都从不同的地址收到消息一样。

那么,有什么方法可以让我每次都收到来自同一收件人的短信吗?目前,发件人的"phone"号码是从1410200500开始的,每次我用这个vbs代码发送的时候都会累加。

Const schema   = "http://schemas.microsoft.com/cdo/configuration/"
Const cdoBasic = 1
Const cdoSendUsingPort = 2

Set oMsg      = CreateObject("CDO.Message")
oMsg.From     = "myemail@gmail.com"
oMsg.To       = "myphonenumber@txt.att.net"
oMsg.TextBody = "ALERTMSG"

Set oConf = oMsg.Configuration
oConf.Fields(schema & "smtpserver")       = "smtp.gmail.com"
oConf.Fields(schema & "smtpserverport")   = 465
oConf.Fields(schema & "sendusing")        = cdoSendUsingPort
oConf.Fields(schema & "smtpauthenticate") = cdoBasic
oConf.Fields(schema & "smtpusessl")       = True
oConf.Fields(schema & "sendusername")     = "myemail@gmail.com"
oConf.Fields(schema & "sendpassword")     = "supersecretpassword"
oConf.Fields.Update

oMsg.Send

除了每次发件人不同的问题外,一切正常。

请帮忙

编辑:我发现这是不可避免的,感谢所有帮助过的人!

您的 VBScript 或 CDO 配置没有问题。

接收 e-mail 并将其转发到 SMS 服务的 SMS 中间件分配给发件人的值不在您的控制范围内。您唯一的选择是联系您的 SMS 提供商,但我不建议他们改变其工作方式。

事实上在 Video 0:40 中它指出;

"the number that appears on your recipients phone or device may not be your actual phone number, but they will see the name, subject and e-mail address you used to send the text message."


有用的链接