close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Passing Dynamic Variables

Thread began 1/04/2011 5:04 pm by Me | Last modified 1/12/2011 8:39 am by Me | 2670 views | 20 replies


UE Ignoring Dyanmic Settings in Dialogue

I have used this same thread as the problem is the same but in another area of this extension. On the page sending the email I have a recordset that pulls the replyto, returnto, fromname and from email..from a mysql table. However, I sent myself the emails as a test and looking at the message content, it looks as though it is igoring the settings and simply replacing it with the senders email...which it does if the above settings are not made...but its also doing it even though I specify the settings. Pay attention below to the way the behaviour inserted the "additional headers", they look wrong to me, I tried removing the <?php echo ?> manually just leaving (for example) .$row_rsMailSettings['replyto']; BUT...that did not work either. Here's the code, that the extension created when I completed the UE dialogues...

$MailAttachments = "";
$MailBCC = "";
$MailCC = "";
$MailTo = "";
$MailBodyFormat = "";
$MailBody = "";
$MailImportance = "";
$MailFrom = "".$row_rsMailSettings['mailfrom'] ." <".$row_rsMailSettings['mailfrom'] .">";
$MailSubject = "".$row_rsContent['emailsubject'] ."";

//Global Variables

$WA_MailObject = WAUE_Definition("","26","My Organization","My X-Mailer","1","");

if ($RecipientEmail) {
$WA_MailObject = WAUE_AddRecipient($WA_MailObject,$RecipientEmail);
else {
//To Entries

//Additional Headers
$WA_MailObject->ReplyTo = "<?php echo $row_rsMailSettings['replyto']; ?>";
$WA_MailObject->ReturnPath = "<?php echo $row_rsMailSettings['returnpath']; ?>";

//Attachment Entries

//BCC Entries

//CC Entries

//Body Format
$WA_MailObject = WAUE_BodyFormat($WA_MailObject,0);

//Set Importance
$WA_MailObject = WAUE_SetImportance($WA_MailObject,"1");

//Start Mail Body
//End Mail Body

$WA_MailObject = WAUE_SendMail($WA_MailObject,$MailAttachments,$MailBCC,$MailCC,$MailTo,$MailImportance,$MailFrom,$MailSubject,$MailBody,"waue_mailer_1");

if (isset($_SESSION["waue_mailer_1_Status"])) {
$MailLogBindings = new WAUE_Log_Bindings();
//Start Log Bindings
//Success Or Failure
$MailLogBindings->SuccessOrFailure->ToDo = "create";
$MailLogBindings->SuccessOrFailure->Connection = "db";
$MailLogBindings->SuccessOrFailure->TableName = "email_log";
$MailLogBindings->SuccessOrFailure->EmailColumn = "EmailTo";
$MailLogBindings->SuccessOrFailure->ColumnList = array("EmailTo", "EmailFrom", "EmailSubject", "EmailBody", "EmailHeader", "EmailError", "EmailStatus");
$MailLogBindings->SuccessOrFailure->TypeList = array("',none,''", "',none,''", "',none,''", "',none,''", "',none,''", "',none,''", "',none,''");
$MailLogBindings->SuccessOrFailure->ValueList = array("".$_SESSION["waue_mailer_1_To"] ."", "".$_SESSION["waue_mailer_1_From"] ."", "".$_SESSION["waue_mailer_1_Subject"] ."", "".$_SESSION["waue_mailer_1_Body"] ."", "".$_SESSION["waue_mailer_1_Header"] ."", "".$_SESSION["waue_mailer_1_Log"] ."", "".$_SESSION["waue_mailer_1_Status"] ."");
//Success Only
$MailLogBindings->Success->ToDo = "none";
$MailLogBindings->Success->Connection = "";
$MailLogBindings->Success->TableName = "";
$MailLogBindings->Success->EmailColumn = "";
$MailLogBindings->Success->ColumnList = array();
$MailLogBindings->Success->TypeList = array();
$MailLogBindings->Success->ValueList = array();
//Failure Only
$MailLogBindings->Failure->ToDo = "none";
$MailLogBindings->Failure->Connection = "";
$MailLogBindings->Failure->TableName = "";
$MailLogBindings->Failure->EmailColumn = "";
$MailLogBindings->Failure->ColumnList = array();
$MailLogBindings->Failure->TypeList = array();
$MailLogBindings->Failure->ValueList = array();
//End Log Bindings
$MailLogBindings->SuccessOrFailure->MailRef = "waue_mailer_1";
$MailLogBindings->Success->MailRef = "waue_mailer_1";
$MailLogBindings->Failure->MailRef = "waue_mailer_1";
$MailLogBindings->processLog(($_SESSION["waue_mailer_1_Status"] == "Failure"));
$WA_MailObject = null;

Am I right...this wrong yes? Please note also...the $mailfrom does not work either, it does not show the persona name...only their email address. TO CONFIRM AGAIN...this code was generated by UE...I have not edited this manually.

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





Ease of use


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