close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Whats in a name? - Putting field from one recordset into emailbody

Thread began 9/01/2011 11:30 am by karen.marley367377 | Last modified 9/02/2011 1:40 pm by Jason Byrnes | 1198 views | 3 replies |

karen.marley367377

Whats in a name? - Putting field from one recordset into emailbody

Hi,

I have created an email with the email body info coming from the recordset on a details.php page.

The emails sent comes from another recordset, which lists the contact details.

My question is....

How do I include the name from the second recordset in the email body?

i.e. if you send to tom, dick and harry, I want the single emails to read:

Dear Tom
Dear Dick
Dear Harry

I do hope this makes sense ! X

Sign in to reply to this post

Jason ByrnesWebAssist

the second recordset should contain the email address and you should set Universal email up to loop through the that recordset to send the email.

then in the email template file, add the following code at line 1:

<?php
global $RecipArray;
global $RecipIndex;
?>





Now in the body you can reference columns from the recordset using:

php:
<?php echo($RecipArray[$RecipIndex][0]["[yourColumnName]"]); ?>



where [yourColumnName] is the name of the column from the recordset you want included in the email

Sign in to reply to this post

karen.marley367377

Hi Jason, thanks for your reply.

I tried what you said, but I can't get it to work. I have create a dreamweaver template for emails, which I then apply when creating my message through the "edit with DW" link in UA.

I put the first quote into the dwt template, and the second into the body where I want the names to appear.

When I open the email, the template replaces with waue html body. and the first snippet of code disappears. Am I doing this the wrong way?

If you want to see the files, then I will send them, but security would prefer them to be viewed by WA through a support ticket.

Many thanks

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

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