West Wind Internet and Client Tools
Single Email Sending multiple times
Gravatar is a globally recognized avatar based on your email address. Single Email Sending multiple times
  Jill Lindgren
  All
  Dec 21, 2020 @ 03:58pm

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

Gravatar is a globally recognized avatar based on your email address. re: Single Email Sending multiple times
  Rick Strahl
  Jill Lindgren
  Dec 21, 2020 @ 11:01pm

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 ---

© 1996-2024