close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

add fields from recordset in the emails body

Thread began 11/03/2011 12:36 pm by info316330 | Last modified 11/03/2011 3:41 pm by Massimo | 849 views | 6 replies |

info316330

add fields from recordset in the emails body

I want to create a page that automatically sends an email to all records in the recordset, and so far is ok.
Now I would like to add in each email body more data from the recordset. Es. name,address...and more.
The emails must be sent automatically (page load before I think).
I am not clear how and where to insert the data from the recordset, if it takes a form with hidden fields or other.
Can you tell me the right procedure?

Sign in to reply to this post

Jason ByrnesWebAssist

see this thread for details:
showthread.php?t=17869

Sign in to reply to this post

Massimo

I have read and try but not work! surely something wrong. Att. the email files

Sign in to reply to this post

Jason ByrnesWebAssist

1) You have added that change to the webassist/email/templates/block_3.php file, but it needs to be added in the webassist/email/templates/templates.php instead

2) in the block 3 file, you are using this code:

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

to reference the recordset, it should be:

php:
<?php echo($RecipArray[$RecipIndex][0]["nome]"); ?>
Sign in to reply to this post

Massimo

I have done as you say, but it does not work. I am attaching the new files

Sign in to reply to this post

Jason ByrnesWebAssist

in the in the webassist/email/templates/templates.php file, you are still using the standard recordset syntax:

php:
<?php echo $row_rs_annscaduti['nome']; ?>





you need to change this to:

php:
<?php echo $RecipArray[$RecipIndex][0]['nome']; ?>
Sign in to reply to this post

Massimo

Now Work! Thanks

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