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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Problems with email template

Thread began 2/09/2011 6:06 am by info321189 | Last modified 2/17/2011 2:21 pm by Jason Byrnes | 1143 views | 4 replies |

info321189

Problems with email template

I use:
Dreamweaver CS4
Universal Email 4.0.1 (with xml fix)

When I send email with template I receive errors from database.
I attach the pages, the userdata_email.php is the page that have the extension UE, the waue_userdata_email_1.php is the page inside folder 'webassist/email', the user_data_template.php is the template inside dir 'webassist/email/templates'.

When the email is sended I receive this:

///////////////////////////////////////////////////////////////////////////////////////////
Hello
Notice: Undefined variable: row_rs_userdata in C:\wamp\www\mysite\webassist\email\templates\user_data_template.php on line 3

Your data Here
Name:
Notice: Undefined variable: row_rs_userdata in C:\wamp\www\mysite\webassist\email\templates\user_data_template.php on line 6

Email:
Notice: Undefined variable: row_rs_userdata in C:\wamp\www\mysite\webassist\email\templates\user_data_template.php on line 7

///////////////////////////////////////////////////////////////////////////////////////////

P.S. Inside the file mailformatting_php.php located in folder 'webassist/email' at line 55 I see 'require_once("../database_management/wa_appbuilder_php.php");' this directory and file doesn't exist.

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

Jason ByrnesWebAssist

Add this to the top of the email body template page:

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



and in the email body, use this syntax for referencing the recordset columns:

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

info321189

Hello Jason, with this way I got same errors ( I think to wrong the syntax )
I found a simple way like yours pre-built solutions, in the file 'waue_userdata_email_1.php'
I change around line 38...
////////////////////////////////////////////
//Start Mail Body
$MailBody = $MailBody . "";
$MailBody = $MailBody . (GetFromPage("templates/user_data_template.php"));
$MailBody = $MailBody . "";
//End Mail Body
////////////////////////////////////////////

with this
////////////////////////////////////////////
//Start Mail Body
$MailBody = $MailBody . "";

ob_start();
require_once(dirname(__FILE__) . ("/templates/user_data_template.php"));
$contents = ob_get_clean();

$MailBody = $MailBody . ($contents);
$MailBody = $MailBody . "";
//End Mail Body
////////////////////////////////////////////

Sign in to reply to this post

info321189

another problem...

Hello, another problem.. if I send the email to a recordset loop only the first email is received correctly, other emails sended have empty body...

Sign in to reply to this post

Jason ByrnesWebAssist

see this thread for details on how to fix this issue:
showthread.php?t=17869

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