Forums / General Questions / Order Confirmation Emails Stopped (Host Monster Hosting)

Order Confirmation Emails Stopped (Host Monster Hosting)

Views: 3,344

Results 1 to 14 of 14
16 Jul 2016, 3:49 PM
#1
sle39lvr avatar

sle39lvr

Zen Follower

Join Date:
Jan 2011
Posts:
196
Plugin Contributions:
0

Order Confirmation Emails Stopped (Host Monster Hosting)

My order confirmation emails stopped coming in recently. I checked the log, it is clean.

I am using Host Monster hosting and these are my mail settings:

E-Mail Transport Method PHP
E-Mail Linefeeds LF Info
Use MIME HTML When Sending Emails true Info
Send E-Mails true Info
Email Archiving Active? true Info
E-Mail Friendly-Errors true Info
Email Address (Displayed to Contact you) xxxxxxxxxx###################### Info
Email Address (sent FROM) xxxxxxxxxx###################### Info
Emails must send from known domain? Yes Info
Email Admin Format? HTML Info
Send Copy of Order Confirmation Emails To xxxx <xxxxxx######################>, xxx <xxxx######################> Info
Send Copy of Create Account Emails To - Status 0 Info
Send Copy of Create Account Emails To xxxxxxxxxx###################### Info
Send Copy of Tell a Friend Emails To - Status 0 Info
Send Copy of Tell a Friend Emails To xxxxxxxxxx###################### Info
Send Copy of Customer GV Send Emails To - Status 0 Info
Send Copy of Customer GV Send Emails To xxxxxxxxxx###################### Info
Send Copy of Admin GV Mail Emails To - Status 0 Info
Send Copy of Customer Admin GV Mail Emails To xxxxxxxxxx###################### Info
Send Copy of Admin Discount Coupon Mail Emails To - Status 0 Info
Send Copy of Customer Admin Discount Coupon Mail Emails To xxxxxxxxxx###################### Info
Send Copy of Admin Orders Status Emails To - Status 0 Info
Send Copy of Admin Orders Status Emails To xxxxxxxxxx###################### Info
Send Notice of Pending Reviews Emails To - Status 0 Info
Send Notice of Pending Reviews Emails To xxxxxxxxxx###################### Info
Set "Contact Us" Email Dropdown List Info
Allow Guest To Tell A Friend false Info
Contact Us - Show Store Name and Address 0 Info
Send Low Stock Emails 0 Info
Send Low Stock Emails To xxxxxxxxxx###################### Info
Display "Newsletter Unsubscribe" Link? true Info
Audience-Select Count Display true Info
SMTP Email Account Mailbox YourEmailAccountNameHere Info
SMTP Email Account Password **************** Info
SMTP Email Mail Host mail.EnterYourDomain.com Info
SMTP Email Mail Server Port 25 Info
Convert currencies for Text emails £,£:€,€ Info
Send Notice of Newsletter-only Subscriptions To - Status 0 Info
Send Notice of Newsletter-only Subscriptions To Info
Newsletter Test Group Email

16 Jul 2016, 5:31 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Order Confirmation Emails Stopped (Host Monster Hosting)

You've indicated that you're running Zen Cart 1.5.1; what version of PHP is your store running on? You can tell by going to your admin's Tools->Server/Version Info.

16 Jul 2016, 10:13 PM
#3
sle39lvr avatar

sle39lvr

Zen Follower

Join Date:
Jan 2011
Posts:
196
Plugin Contributions:
0

Re: Order Confirmation Emails Stopped (Host Monster Hosting)

Zen Cart 1.5.1
PHP Version: 5.2.17 (Zend: 2.2.0)

17 Jul 2016, 12:01 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Order Confirmation Emails Stopped (Host Monster Hosting)

You'll need to edit your store's /includes/functions/functions_email.php to get some additional information.

Locate the following section (it's the end of the zen_mail function) and add the highlighted code:

      $zco_notifier->notify('NOTIFY_EMAIL_AFTER_SEND_WITH_ALL_PARAMS', array($to_name, $to_email_address, $from_email_name, $from_email_address, $email_subject, $email_html, $text, $module, $ErrorInfo));
      // Archive this message to storage log
      // don't archive pwd-resets and CC numbers
      if (EMAIL_ARCHIVE == 'true'  && $module != 'password_forgotten_admin' && $module != 'cc_middle_digs' && $module != 'no_archive') {
        zen_mail_archive_write($to_name, $to_email_address, $from_email_name, $from_email_address, $email_subject, $email_html, $text, $module, $ErrorInfo );
      } // endif archiving
    } // end foreach loop thru possible multiple email addresses
    $zco_notifier->notify('NOTIFY_EMAIL_AFTER_SEND_ALL_SPECIFIED_ADDRESSES');

    if (EMAIL_FRIENDLY_ERRORS=='false' && $ErrorInfo != '') die('<br /><br />Email Error: ' . $ErrorInfo);

[B]//-bof-lat9-Create debug log if error occurs
    if ($ErrorInfo != '') {
      trigger_error ('Email Error: ' . $ErrorInfo, E_USER_WARNING);
    }
//-eof-lat9-Create debug log if error occurs[/B]

    return $ErrorInfo;
  }  // end function

That update will result in your store creating a myDEBUG-*.log file (in the /logs folder since you're running Zen Cart 1.5.1) that will contain the email error information.

17 Jul 2016, 1:28 PM
#5
sle39lvr avatar

sle39lvr

Zen Follower

Join Date:
Jan 2011
Posts:
196
Plugin Contributions:
0

Re: Order Confirmation Emails Stopped (Host Monster Hosting)

Updated the file.
Placed a test order

No error file created. Error logs folder is still empty :blush:

17 Jul 2016, 1:33 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Order Confirmation Emails Stopped (Host Monster Hosting)

Another approach you can take to isolate where the email transmission is failing is to enable Configuration->Email Options->Email Archiving Active. Perform a transaction on your site that should result in an email being sent, then log into your webhost's cPanel to locate the phpMyAdmin tool.

Use phpMyAdmin to view the email_archive table. Did your email get recorded in the database? If so, then Zen Cart's done its bit but there's something still amiss in your webhost's email configuration.

17 Jul 2016, 2:06 PM
#7
sle39lvr avatar

sle39lvr

Zen Follower

Join Date:
Jan 2011
Posts:
196
Plugin Contributions:
0

Re: Order Confirmation Emails Stopped (Host Monster Hosting)

Since email archiving was enabled all this long, all the test order emails are present in email_archive table. It's not missing any...

17 Jul 2016, 2:32 PM
#8
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Order Confirmation Emails Stopped (Host Monster Hosting)

Sorry, I should have seen that from your initial email-configuration posting:blush:. Does anything in this FAQ article about email issues help?

Is the email address that you're "sending from" an address within your store's domain or is it a gmail (or other service) -based one?

18 Jul 2016, 6:12 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Order Confirmation Emails Stopped (Host Monster Hosting)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Jul 2016, 4:09 PM
#10
sle39lvr avatar

sle39lvr

Zen Follower

Join Date:
Jan 2011
Posts:
196
Plugin Contributions:
0

Re: Order Confirmation Emails Stopped (Host Monster Hosting)

lat9:

Is the email address that you're "sending from" an address within your store's domain or is it a gmail (or other service) -based one?

All the email addresses, including 'sending from' are Gmails. May be I should create domain oriented addresses and use them?

18 Jul 2016, 4:19 PM
#11
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Order Confirmation Emails Stopped (Host Monster Hosting)

I'm grasping at straws here, but you might give that a try (it can't hurt).

19 Jul 2016, 6:12 PM
#12
sle39lvr avatar

sle39lvr

Zen Follower

Join Date:
Jan 2011
Posts:
196
Plugin Contributions:
0

Re: Order Confirmation Emails Stopped (Host Monster Hosting)

I changed all the Gmail accounts in to domain based address.

Voila!!! Seems to be working now!!

19 Jul 2016, 7:05 PM
#13
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Order Confirmation Emails Stopped (Host Monster Hosting)

Woo-hoo! I'm glad you got it sorted out, but I also wonder what your webhost changed in your store's configuration to make that change necessary.

20 Jul 2016, 2:11 PM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Order Confirmation Emails Stopped (Host Monster Hosting)

It's very possible that your old ZC version, which uses an old PHPMailer version, is incompatible with rules enforced by both your hosting company and gmail. Upgrading would be advised ;)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.