Do wwSmtp
loSmtp = Createobject("wwSmtp")
loSmtp.nMailMode = 0 && .NET
loSmtp.cMailServer = "smtp.office365.com:587"
loSmtp.lUseSsl = .T.*---------- email from:
loSmtp.cSenderEmail = "reports@xxxxxxxx.com"
loSmtp.cSenderName = "Reports"*---------- login email info:
loSmtp.cUsername = "reports@xxxxxxxx.com"
loSmtp.cPassword = "xxxxxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com" && Verizon Wireless*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg Nowait
EndifloSmtp = .Null.
When I send the email loSmtp.cRecipient= "714xxxxxxx@vtext.com", I receive 2 duplicate SMS's.
When I use the same code to loSmtp.cRecipient = regular email address, works fine. No double emails.
Please If you can help me with this problem.
Thank you,
Abe
+++ Rick ---
Do wwSmtp
loSmtp = Createobject("wwSmtp")
loSmtp.nMailMode = 0 && .NET
loSmtp.cMailServer = "smtp.office365.com:587"
loSmtp.lUseSsl = .T.*---------- email from:
loSmtp.cSenderEmail = "reports@xxxxxxxx.com"
loSmtp.cSenderName = "Reports"*---------- login email info:
loSmtp.cUsername = "reports@xxxxxxxx.com"
loSmtp.cPassword = "xxxxxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com" && Verizon Wireless*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg Nowait
EndifloSmtp = .Null.
When I send the email loSmtp.cRecipient= "714xxxxxxx@vtext.com", I receive 2 duplicate SMS's.
When I use the same code to loSmtp.cRecipient = regular email address, works fine. No double emails.
Please If you can help me with this problem.
Thank you,
Abe
West Wind Technologies
Making waves on the Web
from Maui
Thanks for answering me back.
The message is about 75 characters.
When I use an email address that is not office365 it works great. Below is the code:
loSmtp=Createobject("wwIPStuff")loSmtp.cMailServer = "smtpout.secureserver.net"
*---------- email from:
loSmtp.cSenderEmail = "reports@xxxxxxxx.com"
loSmtp.cSenderName = "Reports"*---------- login email info:
loSmtp.cUsername = "reports@xxxxxxxx.com"
loSmtp.cPassword = "xxxxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com"*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg Nowait
EndifloSmtp = .Null.
Most likely your message is too long for a single SMS so multiples are sent.
+++ Rick ---
Do wwSmtp
loSmtp = Createobject("wwSmtp")
loSmtp.nMailMode = 0 && .NET
loSmtp.cMailServer = "smtp.office365.com:587"
loSmtp.lUseSsl = .T.*---------- email from:
loSmtp.cSenderEmail = "reports@xxxxxxxx.com"
loSmtp.cSenderName = "Reports"*---------- login email info:
loSmtp.cUsername = "reports@xxxxxxxx.com"
loSmtp.cPassword = "xxxxxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com" && Verizon Wireless*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg Nowait
EndifloSmtp = .Null.
When I send the email loSmtp.cRecipient= "714xxxxxxx@vtext.com", I receive 2 duplicate SMS's.
When I use the same code to loSmtp.cRecipient = regular email address, works fine. No double emails.
Please If you can help me with this problem.
Thank you,
Abe
You're using wwIpstuff which is really old. Not that that should matter, but that's 20 year old code. You might want to try the newer wwSmtp class (same interface just refactored) - there are two modes one using the old win32 dll (as with the old version) or the newer .NET based mail client. The .NET bit is the only one that supports SSL as well. I presume that office365 requires SSL for its SMTP service and the old version definitely won't work with SSL/TLS.
+++ Rick ---
Hi Rick,
Thanks for answering me back.
The message is about 75 characters.
When I use an email address that is not office365 it works great. Below is the code:
loSmtp=Createobject("wwIPStuff")loSmtp.cMailServer = "smtpout.secureserver.net"
*---------- email from:
loSmtp.cSenderEmail = "reports@xxxxxxxx.com"
loSmtp.cSenderName = "Reports"*---------- login email info:
loSmtp.cUsername = "reports@xxxxxxxx.com"
loSmtp.cPassword = "xxxxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com"*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg Nowait
EndifloSmtp = .Null.
Most likely your message is too long for a single SMS so multiples are sent.
+++ Rick ---
Do wwSmtp
loSmtp = Createobject("wwSmtp")
loSmtp.nMailMode = 0 && .NET
loSmtp.cMailServer = "smtp.office365.com:587"
loSmtp.lUseSsl = .T.*---------- email from:
loSmtp.cSenderEmail = "reports@xxxxxxxx.com"
loSmtp.cSenderName = "Reports"*---------- login email info:
loSmtp.cUsername = "reports@xxxxxxxx.com"
loSmtp.cPassword = "xxxxxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com" && Verizon Wireless*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg Nowait
EndifloSmtp = .Null.
When I send the email loSmtp.cRecipient= "714xxxxxxx@vtext.com", I receive 2 duplicate SMS's.
When I use the same code to loSmtp.cRecipient = regular email address, works fine. No double emails.
Please If you can help me with this problem.
Thank you,
Abe
West Wind Technologies
Making waves on the Web
from Maui
For the office365 emails, I'm using the new wwSmtp where nMailMode = 0 and lUseSsl = .T. .
It is working great FROM (office365 emails) TO (regular/office365) emails. However when I send an email FROM (office365 emails) TO mobile number "714xxxxxxx@vtext.com", I received 2 SMS's notifications ( duplicate ).
The SAME message/email I send from (NON office365) email TO mobile phone "714xxxxxxx@vtext.com" using the old wwIpstuff works great. One SMS.
I can give you my mobile number to try it on Verizon Wireless.
Thanks,
Abe
Yikes.
You're using wwIpstuff which is really old. Not that that should matter, but that's 20 year old code. You might want to try the newer wwSmtp class (same interface just refactored) - there are two modes one using the old win32 dll (as with the old version) or the newer .NET based mail client. The .NET bit is the only one that supports SSL as well. I presume that office365 requires SSL for its SMTP service and the old version definitely won't work with SSL/TLS.
+++ Rick ---
Hi Rick,
Thanks for answering me back.
The message is about 75 characters.
When I use an email address that is not office365 it works great. Below is the code:
loSmtp=Createobject("wwIPStuff")loSmtp.cMailServer = "smtpout.secureserver.net"
*---------- email from:
loSmtp.cSenderEmail = "reports@xxxxxxxx.com"
loSmtp.cSenderName = "Reports"*---------- login email info:
loSmtp.cUsername = "reports@xxxxxxxx.com"
loSmtp.cPassword = "xxxxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com"*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg Nowait
EndifloSmtp = .Null.
Most likely your message is too long for a single SMS so multiples are sent.
+++ Rick ---
Do wwSmtp
loSmtp = Createobject("wwSmtp")
loSmtp.nMailMode = 0 && .NET
loSmtp.cMailServer = "smtp.office365.com:587"
loSmtp.lUseSsl = .T.*---------- email from:
loSmtp.cSenderEmail = "reports@xxxxxxxx.com"
loSmtp.cSenderName = "Reports"*---------- login email info:
loSmtp.cUsername = "reports@xxxxxxxx.com"
loSmtp.cPassword = "xxxxxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com" && Verizon Wireless*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg Nowait
EndifloSmtp = .Null.
When I send the email loSmtp.cRecipient= "714xxxxxxx@vtext.com", I receive 2 duplicate SMS's.
When I use the same code to loSmtp.cRecipient = regular email address, works fine. No double emails.
Please If you can help me with this problem.
Thank you,
Abe
Could be something the SMTP server is doing to add to the message... I see no reason why wwSmtp would send two messages, so something is happen en route to cause the duplicates.
+++ Rick ---
Lol ...
For the office365 emails, I'm using the new wwSmtp where nMailMode = 0 and lUseSsl = .T. .
It is working great FROM (office365 emails) TO (regular/office365) emails. However when I send an email FROM (office365 emails) TO mobile number "714xxxxxxx@vtext.com", I received 2 SMS's notifications ( duplicate ).
The SAME message/email I send from (NON office365) email TO mobile phone "714xxxxxxx@vtext.com" using the old wwIpstuff works great. One SMS.
I can give you my mobile number to try it on Verizon Wireless.
Thanks,
Abe
Yikes.
You're using wwIpstuff which is really old. Not that that should matter, but that's 20 year old code. You might want to try the newer wwSmtp class (same interface just refactored) - there are two modes one using the old win32 dll (as with the old version) or the newer .NET based mail client. The .NET bit is the only one that supports SSL as well. I presume that office365 requires SSL for its SMTP service and the old version definitely won't work with SSL/TLS.
+++ Rick ---
Hi Rick,
Thanks for answering me back.
The message is about 75 characters.
When I use an email address that is not office365 it works great. Below is the code:
loSmtp=Createobject("wwIPStuff")loSmtp.cMailServer = "smtpout.secureserver.net"
*---------- email from:
loSmtp.cSenderEmail = "reports@xxxxxxxx.com"
loSmtp.cSenderName = "Reports"*---------- login email info:
loSmtp.cUsername = "reports@xxxxxxxx.com"
loSmtp.cPassword = "xxxxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com"*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg Nowait
EndifloSmtp = .Null.
Most likely your message is too long for a single SMS so multiples are sent.
+++ Rick ---
Do wwSmtp
loSmtp = Createobject("wwSmtp")
loSmtp.nMailMode = 0 && .NET
loSmtp.cMailServer = "smtp.office365.com:587"
loSmtp.lUseSsl = .T.*---------- email from:
loSmtp.cSenderEmail = "reports@xxxxxxxx.com"
loSmtp.cSenderName = "Reports"*---------- login email info:
loSmtp.cUsername = "reports@xxxxxxxx.com"
loSmtp.cPassword = "xxxxxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com" && Verizon Wireless*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg Nowait
EndifloSmtp = .Null.
When I send the email loSmtp.cRecipient= "714xxxxxxx@vtext.com", I receive 2 duplicate SMS's.
When I use the same code to loSmtp.cRecipient = regular email address, works fine. No double emails.
Please If you can help me with this problem.
Thank you,
Abe
West Wind Technologies
Making waves on the Web
from Maui
I have tried as you have suggested... I chose gmail email account and I did receive 2 duplicate messages same as office365.
However I did find what the problem was. If messagem = "Hello"+CHR(13)+CHR(13)+"How are you?", I receive 2 SMSs. On the other hand, if
messagem = "Hello"+CHR(13)+CHR(10)+CHR(13)+CHR(10)+"How are you?", I receive 1 SMS.
I did not have this issue with +CHR(13)+CHR(13)+ when I send from (NON office365 / gmail) email TO mobile phone "714xxxxxxx@vtext.com" using the old wwIpstuff.
I'm glad it is working now.
Thanks for all your help.
Abe
Do wwSmtp
loSmtp = Createobject("wwSmtp")
loSmtp.nMailMode = 0 && .NET
loSmtp.cMailServer = "smtp.gmail.com:587"
loSmtp.lUseSsl = .T.*---------- email from:
loSmtp.cSenderEmail = "xxxxxxxx@gmail.com"
loSmtp.cSenderName = "xxx SMS Report"*---------- login email info:
loSmtp.cUsername = "xxxxxxxx@gmail.com"
loSmtp.cPassword = "xxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com"*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg
EndifloSmtp = .Null.
What if you send using wwSmtp using the non-office SMTP server? Does that also produces dupe messages?
Could be something the SMTP server is doing to add to the message... I see no reason why wwSmtp would send two messages, so something is happen en route to cause the duplicates.
+++ Rick ---
Lol ...
For the office365 emails, I'm using the new wwSmtp where nMailMode = 0 and lUseSsl = .T. .
It is working great FROM (office365 emails) TO (regular/office365) emails. However when I send an email FROM (office365 emails) TO mobile number "714xxxxxxx@vtext.com", I received 2 SMS's notifications ( duplicate ).
The SAME message/email I send from (NON office365) email TO mobile phone "714xxxxxxx@vtext.com" using the old wwIpstuff works great. One SMS.
I can give you my mobile number to try it on Verizon Wireless.
Thanks,
Abe
Yikes.
You're using wwIpstuff which is really old. Not that that should matter, but that's 20 year old code. You might want to try the newer wwSmtp class (same interface just refactored) - there are two modes one using the old win32 dll (as with the old version) or the newer .NET based mail client. The .NET bit is the only one that supports SSL as well. I presume that office365 requires SSL for its SMTP service and the old version definitely won't work with SSL/TLS.
+++ Rick ---
Hi Rick,
Thanks for answering me back.
The message is about 75 characters.
When I use an email address that is not office365 it works great. Below is the code:
loSmtp=Createobject("wwIPStuff")loSmtp.cMailServer = "smtpout.secureserver.net"
*---------- email from:
loSmtp.cSenderEmail = "reports@xxxxxxxx.com"
loSmtp.cSenderName = "Reports"*---------- login email info:
loSmtp.cUsername = "reports@xxxxxxxx.com"
loSmtp.cPassword = "xxxxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com"*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg Nowait
EndifloSmtp = .Null.
Most likely your message is too long for a single SMS so multiples are sent.
+++ Rick ---
Do wwSmtp
loSmtp = Createobject("wwSmtp")
loSmtp.nMailMode = 0 && .NET
loSmtp.cMailServer = "smtp.office365.com:587"
loSmtp.lUseSsl = .T.*---------- email from:
loSmtp.cSenderEmail = "reports@xxxxxxxx.com"
loSmtp.cSenderName = "Reports"*---------- login email info:
loSmtp.cUsername = "reports@xxxxxxxx.com"
loSmtp.cPassword = "xxxxxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com" && Verizon Wireless*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg Nowait
EndifloSmtp = .Null.
When I send the email loSmtp.cRecipient= "714xxxxxxx@vtext.com", I receive 2 duplicate SMS's.
When I use the same code to loSmtp.cRecipient = regular email address, works fine. No double emails.
Please If you can help me with this problem.
Thank you,
Abe
I'm not sure though why that would make a difference though - SMS should only care about the length of messages and it not going 140 characters.
+++ Rick ---
Hi Rick,
I have tried as you have suggested... I chose gmail email account and I did receive 2 duplicate messages same as office365.
However I did find what the problem was. If messagem = "Hello"+CHR(13)+CHR(13)+"How are you?", I receive 2 SMSs. On the other hand, if
messagem = "Hello"+CHR(13)+CHR(10)+CHR(13)+CHR(10)+"How are you?", I receive 1 SMS.
I did not have this issue with +CHR(13)+CHR(13)+ when I send from (NON office365 / gmail) email TO mobile phone "714xxxxxxx@vtext.com" using the old wwIpstuff.
I'm glad it is working now.
Thanks for all your help.
Abe
Do wwSmtp
loSmtp = Createobject("wwSmtp")
loSmtp.nMailMode = 0 && .NET
loSmtp.cMailServer = "smtp.gmail.com:587"
loSmtp.lUseSsl = .T.*---------- email from:
loSmtp.cSenderEmail = "xxxxxxxx@gmail.com"
loSmtp.cSenderName = "xxx SMS Report"*---------- login email info:
loSmtp.cUsername = "xxxxxxxx@gmail.com"
loSmtp.cPassword = "xxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com"*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg
EndifloSmtp = .Null.
What if you send using wwSmtp using the non-office SMTP server? Does that also produces dupe messages?
Could be something the SMTP server is doing to add to the message... I see no reason why wwSmtp would send two messages, so something is happen en route to cause the duplicates.
+++ Rick ---
Lol ...
For the office365 emails, I'm using the new wwSmtp where nMailMode = 0 and lUseSsl = .T. .
It is working great FROM (office365 emails) TO (regular/office365) emails. However when I send an email FROM (office365 emails) TO mobile number "714xxxxxxx@vtext.com", I received 2 SMS's notifications ( duplicate ).
The SAME message/email I send from (NON office365) email TO mobile phone "714xxxxxxx@vtext.com" using the old wwIpstuff works great. One SMS.
I can give you my mobile number to try it on Verizon Wireless.
Thanks,
Abe
Yikes.
You're using wwIpstuff which is really old. Not that that should matter, but that's 20 year old code. You might want to try the newer wwSmtp class (same interface just refactored) - there are two modes one using the old win32 dll (as with the old version) or the newer .NET based mail client. The .NET bit is the only one that supports SSL as well. I presume that office365 requires SSL for its SMTP service and the old version definitely won't work with SSL/TLS.
+++ Rick ---
Hi Rick,
Thanks for answering me back.
The message is about 75 characters.
When I use an email address that is not office365 it works great. Below is the code:
loSmtp=Createobject("wwIPStuff")loSmtp.cMailServer = "smtpout.secureserver.net"
*---------- email from:
loSmtp.cSenderEmail = "reports@xxxxxxxx.com"
loSmtp.cSenderName = "Reports"*---------- login email info:
loSmtp.cUsername = "reports@xxxxxxxx.com"
loSmtp.cPassword = "xxxxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com"*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg Nowait
EndifloSmtp = .Null.
Most likely your message is too long for a single SMS so multiples are sent.
+++ Rick ---
Do wwSmtp
loSmtp = Createobject("wwSmtp")
loSmtp.nMailMode = 0 && .NET
loSmtp.cMailServer = "smtp.office365.com:587"
loSmtp.lUseSsl = .T.*---------- email from:
loSmtp.cSenderEmail = "reports@xxxxxxxx.com"
loSmtp.cSenderName = "Reports"*---------- login email info:
loSmtp.cUsername = "reports@xxxxxxxx.com"
loSmtp.cPassword = "xxxxxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com" && Verizon Wireless*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg Nowait
EndifloSmtp = .Null.
When I send the email loSmtp.cRecipient= "714xxxxxxx@vtext.com", I receive 2 duplicate SMS's.
When I use the same code to loSmtp.cRecipient = regular email address, works fine. No double emails.
Please If you can help me with this problem.
Thank you,
Abe
West Wind Technologies
Making waves on the Web
from Maui
Abe
wwIpstuff explicitly parsed CRs. wwSmtp and newer versions of wwIPStuff use standard mail protocols which recognizes CHR(10) not CHR(13) as the actual line break and they use the raw message text. I bet if you use CHR(10) only that'll work as well.
I'm not sure though why that would make a difference though - SMS should only care about the length of messages and it not going 140 characters.
+++ Rick ---
Hi Rick,
I have tried as you have suggested... I chose gmail email account and I did receive 2 duplicate messages same as office365.
However I did find what the problem was. If messagem = "Hello"+CHR(13)+CHR(13)+"How are you?", I receive 2 SMSs. On the other hand, if
messagem = "Hello"+CHR(13)+CHR(10)+CHR(13)+CHR(10)+"How are you?", I receive 1 SMS.
I did not have this issue with +CHR(13)+CHR(13)+ when I send from (NON office365 / gmail) email TO mobile phone "714xxxxxxx@vtext.com" using the old wwIpstuff.
I'm glad it is working now.
Thanks for all your help.
Abe
Do wwSmtp
loSmtp = Createobject("wwSmtp")
loSmtp.nMailMode = 0 && .NET
loSmtp.cMailServer = "smtp.gmail.com:587"
loSmtp.lUseSsl = .T.*---------- email from:
loSmtp.cSenderEmail = "xxxxxxxx@gmail.com"
loSmtp.cSenderName = "xxx SMS Report"*---------- login email info:
loSmtp.cUsername = "xxxxxxxx@gmail.com"
loSmtp.cPassword = "xxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com"*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg
EndifloSmtp = .Null.
What if you send using wwSmtp using the non-office SMTP server? Does that also produces dupe messages?
Could be something the SMTP server is doing to add to the message... I see no reason why wwSmtp would send two messages, so something is happen en route to cause the duplicates.
+++ Rick ---
Lol ...
For the office365 emails, I'm using the new wwSmtp where nMailMode = 0 and lUseSsl = .T. .
It is working great FROM (office365 emails) TO (regular/office365) emails. However when I send an email FROM (office365 emails) TO mobile number "714xxxxxxx@vtext.com", I received 2 SMS's notifications ( duplicate ).
The SAME message/email I send from (NON office365) email TO mobile phone "714xxxxxxx@vtext.com" using the old wwIpstuff works great. One SMS.
I can give you my mobile number to try it on Verizon Wireless.
Thanks,
Abe
Yikes.
You're using wwIpstuff which is really old. Not that that should matter, but that's 20 year old code. You might want to try the newer wwSmtp class (same interface just refactored) - there are two modes one using the old win32 dll (as with the old version) or the newer .NET based mail client. The .NET bit is the only one that supports SSL as well. I presume that office365 requires SSL for its SMTP service and the old version definitely won't work with SSL/TLS.
+++ Rick ---
Hi Rick,
Thanks for answering me back.
The message is about 75 characters.
When I use an email address that is not office365 it works great. Below is the code:
loSmtp=Createobject("wwIPStuff")loSmtp.cMailServer = "smtpout.secureserver.net"
*---------- email from:
loSmtp.cSenderEmail = "reports@xxxxxxxx.com"
loSmtp.cSenderName = "Reports"*---------- login email info:
loSmtp.cUsername = "reports@xxxxxxxx.com"
loSmtp.cPassword = "xxxxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com"*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg Nowait
EndifloSmtp = .Null.
Most likely your message is too long for a single SMS so multiples are sent.
+++ Rick ---
Do wwSmtp
loSmtp = Createobject("wwSmtp")
loSmtp.nMailMode = 0 && .NET
loSmtp.cMailServer = "smtp.office365.com:587"
loSmtp.lUseSsl = .T.*---------- email from:
loSmtp.cSenderEmail = "reports@xxxxxxxx.com"
loSmtp.cSenderName = "Reports"*---------- login email info:
loSmtp.cUsername = "reports@xxxxxxxx.com"
loSmtp.cPassword = "xxxxxxxx"*---------- email to:
loSmtp.cRecipient= "714xxxxxxx@vtext.com" && Verizon Wireless*---------- email subject and body
loSmtp.cSubject=""
loSmtp.cMessage = messagemllResult = loSmtp.SendMail()
*---------- clear message
Wait ClearIf !llResult
Wait Window loSmtp.cErrorMsg Nowait
EndifloSmtp = .Null.
When I send the email loSmtp.cRecipient= "714xxxxxxx@vtext.com", I receive 2 duplicate SMS's.
When I use the same code to loSmtp.cRecipient = regular email address, works fine. No double emails.
Please If you can help me with this problem.
Thank you,
Abe