close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Multiple Emails Wrongly Being Sent to Recipients

Thread begun 3/30/2021 12:17 pm by wdtp.com | Last modified 3/31/2021 9:29 am by Ray Borduin | 1044 views | 7 replies |

wdtp.com

Multiple Emails Wrongly Being Sent to Recipients

I am using Universal Email - WA_Email.php version 1.19

PROBLEM: When sending to a large recordset of 6,299 recipients, many times multiple email are being sent to the same email recipient sometimes 2-3 times.

The recordset only contains unique email addresses so there are no duplicates, yet 2-3 emails are sent. The time difference between the first send and the third send is about 20 minutes.

I am using SendGrid to send the emails.

Any idea what could be causing this?

Sign in to reply to this post

Ray BorduinWebAssist

I'd try adding email logging and see if it is trying to send multiple or if the SMTP server is mistakenly sending more than one email. You could also add a unique id or timestamp to the email body to test if the same email is being delivered twice or if they are different emails entirely.

If the email log doesn't report the script sending more than one copy, or the unique id is the same in the multiple emails, then the issue isn't with your php code itself. The issue is with the SMTP server.

I have heard that some SMTP servers can have a queuing issue that causes repeated emails to send when receiving a large batch. You might try decreasing the batch size or adding a wait between message sending to address this issue.

If you google "smtp sending repeated email", you will see that this is a common issue on some servers and can maybe be fixed by your hosting provider.

Sign in to reply to this post
Did this help? Tips are appreciated...

wdtp.com

Thanks! I do have email logging enabled. It looks like it is being sent multiple times. Attached is an example of a single recipient being sent the same email 3 times.

Does this mean SendGrid is the problem?

Sign in to reply to this post

Ray BorduinWebAssist

That implies your recordset is returning more than one result. What is the query you are using?

Sign in to reply to this post
Did this help? Tips are appreciated...

wdtp.com

SELECT * FROM mail_list

attachment shows structure

Sign in to reply to this post

Ray BorduinWebAssist

Is it possible people are pressing "send" more than once? I see the emailID has a goap of 6,000 between the first and second email, but only a gap of 270 between the second two. How is the email initiated? Maybe that is happening more than once.

Sign in to reply to this post
Did this help? Tips are appreciated...

wdtp.com

That's what I wondered also.

There is a standard Submit button but I'm using Progress Bar so hopefully it wouldn't be possible to click Submit more than once.

The trigger is:

if (isset($_POST["email_flyer_list_button"]) || isset($_POST["email_flyer_list_button_x"])) { //WA Universal Email

Sign in to reply to this post

Ray BorduinWebAssist

The first two are 23 minutes apart... the last one is only 1 minute and 15 seconds later.

It still doesn't seem like that would be a second press of the button. Maybe log the start of sending emails to identify if it is trying to send twice somehow.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...