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

rating

Update Universal Email to Send Mail

Thread began 11/01/2018 7:28 am by eric284736 | Last modified 11/13/2018 5:09 pm by Ray Borduin | 145 views | 12 replies |

eric284736

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

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

Ray BorduinWebAssist

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.

Sign in to reply to this post

eric284736

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

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post

eric284736

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

Sign in to reply to this post

Ray BorduinWebAssist

That page isn't even used anymore with the latest version. All of the code is on the page itself and the body file.

Sign in to reply to this post

eric284736

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

Sign in to reply to this post

Ray BorduinWebAssist

No that shouldn't be an issue. The code runs independently.

Sign in to reply to this post

eric284736

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

Sign in to reply to this post

eric284736

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

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