close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Email address from recordset, can emails be custom?

Thread began 7/30/2012 5:47 pm by dvolle228412 | Last modified 7/31/2012 9:28 am by Jason Byrnes | 853 views | 1 replies |

dvolle228412

Email address from recordset, can emails be custom?

Hello,
I'm using Universal email from Data Bridge (CS5.5 Windows 7)
I'm sending using Pear mail

Here is my issue, I would like to send an email to each email address from a recordset on the page. My problem is I would like to have text in the email that is custom for each addressee.
IE Recordset contains 2 fields
<email> <account>
JohnDoe@mail.com, Account JDoe1234
JaneDoe@mail.com, Account JDoe2345
MikeSmith@mail.com, Account MSmith9876
etc

My email needs to go to each address but the text needs to include
TO: <email>
Subject: Regarding <account>

Of course the product replaces the <email> token automatically when using a recordset.
Does the web assist product support any customization of the emails sent when using a recordset as the source for the email addresses?
IE can I also have it replace the <account> token or any other token with a value that is sourced from the same recordset as the email?

Any help would be appreciated.

Sign in to reply to this post

Jason ByrnesWebAssist

in universal Email, click the To button to go to the Advanced To settings,
Select to use a recordset loop and use the email address column.


for the subject, click the lightning bolt icon and select the account column from the recordset. Add the static text "Regarding " in front of the code that is added for the account column.

select the option to create a file for the email and use one of the teplates.

after the file is created, add the following code at line 1:

php:
<?php

global $RecipArray;
global 
$RecipIndex;
?>




then use this code where you would like to show the recordset information:

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




where [yourColumnName] is the name of the column to use

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