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

Universal Email not sending all fields in recordset

Thread began 2/04/2014 5:03 pm by sandy170299 | Last modified 2/05/2014 8:09 pm by Jason Byrnes | 887 views | 15 replies |

sandy170299

Universal Email not sending all fields in recordset

I have a "forgot password" form on a web site, and I want the user to fill out their email address, and their password will be emailed to them. I cannot use Security Assist, as the code (javascript and CSS) caused formatting issues within the DW template I am using, so I had to build it manually. There are conditional statements in place, and those are working, and if the email address IS located, it DOES send an email to the user. The problem is, it only sends their email address, not the password. How an I get it to send the password to the user? The trigger is Recordset: getUser is not empty. Is there a different trigger I should be using? I have attached my page. Thank you!

Sign in to reply to this post

sandy170299

I am also sending the email file as an attachment.

Sign in to reply to this post

Jason ByrnesWebAssist

the email body is set in the templates/Blank_2.php file, send a copy of the template file please.

Sign in to reply to this post

sandy170299

See attachment.

Sign in to reply to this post

Jason ByrnesWebAssist

there is nothing in the email template to inlcude the recordset details


at line 1 of the template add the following code:

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


then in the body, where you want to show the password us:

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


where [passwordColumn] is the name of the password column

Sign in to reply to this post

sandy170299

This is what I'm getting in the email now:

Dan's Consulting
Forgotten Password
Form Submitted: 2-4-2014 | 4:31 PM CST
password:
Password
Warning: Illegal string offset '[password]' in /home/dcotherc/public_html/webassist/email/templates/Blank_2.php on line 64
s
email: sandy@websailer.com
Password
Warning: Illegal string offset '[password]' in /home/dcotherc/public_html/webassist/email/templates/Blank_2.php on line 64
s
submit: Submit
Password
Warning: Illegal string offset '[password]' in /home/dcotherc/public_html/webassist/email/templates/Blank_2.php on line 64
s

Sign in to reply to this post

Jason ByrnesWebAssist

what is the code in the Blank_2.php on line 64?

Sign in to reply to this post

sandy170299

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

Sign in to reply to this post

Jason ByrnesWebAssist

it should be:
<?php echo($RecipArray[$RecipIndex][0]["password"]); ?>

Sign in to reply to this post

sandy170299

Jason, it's still not working. I'm still getting errors:

Form Submitted: 2-5-2014 | 8:47 AM CST
password:
Warning: Illegal string offset 'password' in /home/dcotherc/public_html/webassist/email/templates/Blank_2.php on line 64
s
email: sandy@websailer.com
Warning: Illegal string offset 'password' in /home/dcotherc/public_html/webassist/email/templates/Blank_2.php on line 64
s
submit: Submit
Warning: Illegal string offset 'password' in /home/dcotherc/public_html/webassist/email/templates/Blank_2.php on line 64
s

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