I use the SMTP tool to send emails through and SMTP provider called SendInBlue. It has worked fine for months but lately, it is repeatedly sending the same email multiple times.
loSmtp=CREATEOBJECT("wwSmtp")
*loSmtp.cMailServer=ALLTRIM(thisform.txtsmtp.Value)
loSmtp.nMailMode = 0
loSmtp.lUseSsl = .T.
loSmtp.cMailServer = "smtp-relay.sendinblue.com:587"
loSmtp.nTimeout = 100
loSmtp.cSenderEmail=ALLTRIM(thisform.txtemail.Value)
loSmtp.cSenderName=ALLTRIM(thisform.txtname.Value)
loSmtp.cUsername = ALLTRIM(thisform.txtuser.Value)
loSmtp.cPassword = ALLTRIM(thisform.txtpw.Value)
SendInBlue support says: Since these emails are being triggered from outside of Sendinblue and sent via SMTP relay, please also check the settings of the plugin being used to generate these emails. Please share temporary login credentials so that we can assist in troubleshooting within the plugin? I don't know how they would troubleshoot my code but I'm hoping there is some setting I am messing up that will make it so it stops re-sending long after my application has stopped running.
Thank you
Jill Lindgren
I don't know - not much to go on based on your vague description. But that sounds like an application error where the same message is being sent multiple times.
If you re-create the object, and assign new values it's not going to send a previous message. The only way that happens if you assign the same data and send it again. You need to debug your code and log to see what you're actually assigning and sending.
+++ Rick ---