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

Emails cc's and bcc's fail

Thread began 1/15/2010 2:49 pm by robert180269 | Last modified 1/21/2010 6:33 pm by Eric Mittman | 1874 views | 9 replies |

robert180269

Emails cc's and bcc's fail

UE. Set to send to 3 recipients AND 2cc's AND 1 bcc
Sends to 3 recipients
Does not send to ANY cc's
Does not send to ANY bcc's

The email addresses are ALL GOOD email addresses { tested today }

Here is the page: Report-A-Leak.php

And here is the WAUE_ file:
<?php
$MailAttachments = "";
$MailBCC = "";
$MailCC = "";
$MailTo = "";
$MailBodyFormat = "";
$MailBody = "";
$MailImportance = "";
$MailFrom = "BobMWorks|WA|bobmworks@milburnworks.net";
$MailSubject = "Reporting A Leak from Pioneer Roofing";
$_SERVER["QUERY_STRING"] = "";

//Global Variables

$WA_MailObject = WAUE_Definition("mail.milburnworks.net","25","","","","");

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

//Attachment Entries

//BCC Entries
$WA_MailObject = WAUE_AddBCC($WA_MailObject,"robert@bobmilburn.com");

//CC Entries
$WA_MailObject = WAUE_AddCC($WA_MailObject,"thewebmastewr@skeetrap.com");
$WA_MailObject = WAUE_AddCC($WA_MailObject,"thewebmaster@responsiblethinking.com");

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

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

//Start Mail Body
$MailBody = $MailBody . "NAME: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_Name"]))?$_POST["fieldset_group_Name"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "LEAK LOCATION: \r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_Comments"]))?$_POST["fieldset_group_Comments"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . " \r\n";
$MailBody = $MailBody . "PHONE: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_Phone"]))?$_POST["fieldset_group_Phone"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "EMAIL: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_Email"]))?$_POST["fieldset_group_Email"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "ROOF TYPE: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_Type_of_roof"]))?$_POST["fieldset_group_Type_of_roof"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "COMPANY: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_Company"]))?$_POST["fieldset_group_Company"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "ADDDRESS: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_Street"]))?$_POST["fieldset_group_Street"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "CITY: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_City"]))?$_POST["fieldset_group_City"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "ST: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_State"]))?$_POST["fieldset_group_State"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "ZIP: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_Postal_Code"]))?$_POST["fieldset_group_Postal_Code"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
//End Mail Body

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

$WA_MailObject = null;
?>

Sign in to reply to this post

Eric Mittman

Please give this a try by testing this out with only a single recipient for the email, then add in a single cc so that a total of two messages should be sent, one for the to and one for the cc. This will help us to determine if this is a problem with the multiple emails or if there is a general problem when using the cc to send emails.

Sign in to reply to this post

robert180269

Emails cc's contiune to fail

OK: I adjusted the UE to send 1 recipient AND 1 cc AND no bcc.
The result is that the recipient was sent BUT the cc WAS NOT sent.
cc's contiune to fail...Here is the new WAUE_ file..

<?php
$MailAttachments = "";
$MailBCC = "";
$MailCC = "";
$MailTo = "";
$MailBodyFormat = "";
$MailBody = "";
$MailImportance = "";
$MailFrom = "BobMWorks|WA|bobmworks@milburnworks.net";
$MailSubject = "Reporting A Leak from Pioneer Roofing";
$_SERVER["QUERY_STRING"] = "";

//Global Variables

$WA_MailObject = WAUE_Definition("mail.milburnworks.net","25","","","","");

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

//Attachment Entries

//BCC Entries

//CC Entries
$WA_MailObject = WAUE_AddCC($WA_MailObject,"robert@bobmilburn.com");

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

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

//Start Mail Body
$MailBody = $MailBody . "NAME: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_Name"]))?$_POST["fieldset_group_Name"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "LEAK LOCATION: \r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_Comments"]))?$_POST["fieldset_group_Comments"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . " \r\n";
$MailBody = $MailBody . "PHONE: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_Phone"]))?$_POST["fieldset_group_Phone"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "EMAIL: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_Email"]))?$_POST["fieldset_group_Email"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "ROOF TYPE: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_Type_of_roof"]))?$_POST["fieldset_group_Type_of_roof"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "COMPANY: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_Company"]))?$_POST["fieldset_group_Company"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "ADDDRESS: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_Street"]))?$_POST["fieldset_group_Street"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "CITY: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_City"]))?$_POST["fieldset_group_City"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "ST: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_State"]))?$_POST["fieldset_group_State"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "ZIP: ";
$MailBody = $MailBody . ((isset($_POST["fieldset_group_Postal_Code"]))?$_POST["fieldset_group_Postal_Code"]:"");
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
$MailBody = $MailBody . "\r\n";
//End Mail Body

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

$WA_MailObject = null;
?>

Sign in to reply to this post

Eric Mittman

Toward the bottom of the code is this line:

php:
$WA_MailObject = WAUE_SendMail($WA_MailObject,$MailAttachments,$Mai lBCC,$MailCC,$MailTo,$MailImportance,$MailFrom,$Ma ilSubject,$MailBody);



Add in this code just before this line:

php:
die("the values for cc and bcc are: " . $MailCC . " and " .  $Mai lBCC . "");



This should stop the mail from being sent and let you see the values that are being specified for the cc and bcc. If you can see the values here then it would indicate there may be a problem with the mail server allowing you to send the cc and bcc emails. If the values do not appear here then we will need to do a little more debugging to determine why the values are not being set. Please do this test and let us know what the results are.

Sign in to reply to this post

robert180269

cc's and bcc's fail

Below is what appeared...

the values for cc and bcc are: and


After adding> the values for cc and bcc are: " . $MailCC . " and " . $MailBCC . "")

END

Sign in to reply to this post

Eric Mittman

It seems that the cc and bcc are not getting set properly. Please post back with the page that has the Universal Email server behavior on it as well as a copy of your WA_Universal_Email folder from your site in a zip archive. I will take a look at the pages to see if I can spot the problem. If not I will post back with the pages and some code that we can use to help us determine where the problem is.

Sign in to reply to this post

robert180269

cc's and bcc's fail

Page: Report-A-Leak.php - As requested

Below is a link to a self extracting ZIP of the UE folder - As requested

WA_Universal_Email.exe

END

Sign in to reply to this post

Eric Mittman

I will need the report a leak php page itself so that I can view the source code on the page. I have opened a ticket for you on this issue so that we can exchange the files in private. To update your ticket login to WebAssist.com and visit your support history.

Sign in to reply to this post

robert180269

cc's and vcc's fail

Here is the link to the actual Report a leak web page file in self extracting ZIP

Report-A-Leak.exe

Bob Milburn

Sign in to reply to this post

Eric Mittman

I have updated the ticket with a request for these files in their native format or in a zip archive, downloading the exe creates a security issue. I will be looking for an update to your ticket.

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