close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Recordset Data in Email Templates

Thread began 7/02/2012 2:11 pm by wdtp.com | Last modified 7/03/2012 11:17 am by Jason Byrnes | 1449 views | 3 replies |

wdtp.com

Recordset Data in Email Templates

I have a recordset on the page where the Universal Email server behavior resides ($rsProps). I want to use data from that recordset in the email template that Universal Email uses (Blank_2.php). I have followed the advice of previous threads with no luck.

It seems that it all hinges on defining the recordset variable scope as global.

What is the proper procedure?

1. My recordset is rsProps
2. The Universal Email behavior resides on the same page as rsProps
3. My email template is Blank_2.php
3. I have added both "global $row_rsProps" and "global $rsProps" to the top of Blank_2.php with no luck getting the data to show when the email is sent

What am I doing wrong?

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of your page please, and a copy of the Blank_2.php
template file so I can examine the code.

Sign in to reply to this post

wdtp.com

Files Attached

Thanks for the replay!

I've attached the files you requested. The "Blank_2.php" email template is very simple and based on the default layout. I was just trying to get something to work. Ultimately I would like "Blank_2.php" to use a repeat region for "rsProps" and also include data from two additional recordsets that are used in teaser_create.php (rsAgent, rsAgent2).

Basically, "teaser_create.php" displays a preview of the email I would like to send. It uses 3 recordsets - rsProps, rsAgent, rsAgent2. My goal is to have "Blank_2.php" send an email identical to what is displayed on "teaser_create.php".

Attached Files
Archive.zip
Sign in to reply to this post

Jason ByrnesWebAssist

Since you are looking to create a more complex email, I recomend not using the template.

instead, unselect the Create a file for the email option, then click the DW edit button to open a new tempalte that you can use to design the email body in dreamweaver.

In the bindings panel, you will have access to the recordset binfdings that you can add to your email message.

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