close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Sending Multiple Emails

Thread began 12/29/2012 9:00 am by acaciasd344844 | Last modified 2/15/2013 4:23 pm by Jason Byrnes | 710 views | 5 replies |

acaciasd344844

Sending Multiple Emails

Hi Jason

I'm having trouble sending multiple emails. What is actually happening is that the same customers details are being sent multiple times. So the recordset is displaying 6 customers with emails but only sending the 1st customers details out 7 times.

Ive had a look at numerous posts and they all seem to be for a different issue. I tried adding the code <?php global $RecipArray; global $RecipIndex; ?>, which Ive seen a few times as a suggestion for fixing the problem. It didnt work, but then maybe I was doing it wrong.

Thanks in advanced

John

Attached Files
John Henderson.zip
Sign in to reply to this post

Jason ByrnesWebAssist

you are using about 3 different recordsets in the email body, this wont work.

to pull information specific to the person being emailed in the email body, you need to use the same recordset that is used for the to address loop, that is the only recordset that will advance through each record, the other recordsets will not.

Since you are trying to use data from 3 tables, you will need to use a join query to return the related data from each table in one recordset.

Sign in to reply to this post

acaciasd344844

Using Left Joins in recordset

Hi Jason

Thanks for your reply, I went over everything with a fine tooth comb. I removed all but one recordset and then updated it to include the Left Joins. It is much tidier, but unfortunately it is still not looping through all the records. It is just reproducing the first record every time. I have attached the updated files so you can see the changes that I have made.

I did test it without the left joins altogether but it was still doing the same thing

Thanks


John

Attached Files
John Henderson Multiple Emails.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

Brainthief

I'm having the same problem??

Sign in to reply to this post

Jason ByrnesWebAssist

In the to settings, try increasing the amount of time between emails

if you continue to have a problem, send a copy of your page please.

Sign in to reply to this post

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