Update Universal Email to Send Mail
Hi Ray,
I have an eCart 6 confirm page that I want to change over to use Send Mail.Do I need to update all of the server behaviors on this page? Do any of the includes go away?
thx
Eric
Hi Ray,
I have an eCart 6 confirm page that I want to change over to use Send Mail.Do I need to update all of the server behaviors on this page? Do any of the includes go away?
thx
Eric
The MailFormatting.php include may need to be deleted manually, but everything else should be taken care of just by reapplying the server behavior.
Just open the email server behavior and click "ok" and it should update the code. The only thing you would have to do is delete the reference to the include file I mentioned above.
Hi Ray,
I did the update but I am having issues with the email not being sent and it is not being logged into the database as a fail or success.
It seems the checkout success page does not load. It may be an issue with the email object on the waue_confirm_3.php page.
See the PM
Thanks,
Eric
Whenever you refer to a variable in the email body that is defined on the main page, you have to add a "global" declaration on the top of the email body page. In your case I think you just have to add:
<?php
global $loadTime, $eCart1;
?>
That should allow you to reference them in the email body. It would make sense that the email would not send with that line missing.
Thanks Ray!
On the waue... page where this is referenced:
//Global Variables
$WA_MailObject = WAUE_Definition("mailx2.newtekwebhosting.com","587","","","","");
if ($RecipientEmail) {
$WA_MailObject = WAUE_AddRecipient($WA_MailObject,$RecipientEmail);
}
else {
//To Entries
If I am using SMTP and I need to authenticate the email should this not be updated to include the email and password?
thx
Eric
That page isn't even used anymore with the latest version. All of the code is on the page itself and the body file.
Thanks Ray. I will be testing shortly.
One other question since I have a few sites running eCart and the UE. WIll it be problematic to just update the UE behavior only and keep the old eCart 6 mysql behaviors in place? I will update everything in time but there seems to be more and more email failures using the old UE.
Thanks,
Eric
No that shouldn't be an issue. The code runs independently.
Thanks Ray!
Ok I have tested the cart and send email but it is not working.
Once it goes to the checkout_success.php page the screen is blank. But it also fails to send the email and to log the failure in the email_log table.
Thanks,
Eric
I am testing the send email setup on another server account and it does send the email correctly but it does not enter a log entry for the email. These are two separate issues so would you prefer a different thread for this issue?
thanks
Eric
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.