close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

dynamic data not sent in email

Thread began 6/14/2013 3:40 pm by Ashok | Last modified 6/14/2013 5:15 pm by Ashok | 557 views | 12 replies |

Ashok

dynamic data not sent in email

I have a forgot password page. The logic is:
1. The form is submitted.
2. Data retrieved from db.
3. Dynamic data inserted in email body.
4. Email send.

I have tried http://www.webassist.com/forums/posts.php?id=17869 but just get letter "a" in dynamic fields.

Is it possible that the email triggers before the recordset?

What is the correct trigger in this case?

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of your page and the email template.

Sign in to reply to this post

Ashok

Here is the page and template.

Attached Files
password-recover.zip
webassist.zip
Sign in to reply to this post

Jason ByrnesWebAssist

since you are not using a template file to manage the email, you don't need to use the $RecipArray[$RecipIndex][0]['name']; syntax, you can use the standard $row__recoverpassword['name'] syntax instead.

Sign in to reply to this post

Ashok

In this case the dynamic data is missing in the email. It seems first the email is triggered and then data retrieved in recordset. Is this possible?

Sign in to reply to this post

Jason ByrnesWebAssist

the recordset is set to use the form element named email for filtering, but the text box on your page is named txtemail

Sign in to reply to this post

Ashok

Yep I noticed that and corrected.
Now the TO field gets data from recordset and email is sent.
But the dynamic data in email body is empty.

$MailBody = $MailBody . "<p>????????????, ";
$MailBody = $MailBody . $row__recoverpassword['name'];

May be I need to echo $row__recoverpassword['name']; ?

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

Ashok

sent

Sign in to reply to this post

Jason ByrnesWebAssist

Originally Said By: Ashok
  sent  
Sign in to reply to this post
loading

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