Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2007
    Location
    Hong Kong
    Posts
    111
    Plugin Contributions
    0

    Default PHP5.4, Email Stopped Sending

    Not sure whether this is a bug, or a problem on my setup or the server.

    But I have spent 3 days searching for solutions, testing, troubleshooting with my host support which was very helpful. But problem persists.

    I upgraded (from 1.3.7 to 1.5.4) about a month ago, and the email was working perfectly on SMTPAuth after some struggle (see the thread that got me there: https://www.zen-cart.com/showthread....30#post1285030).

    However, about a week ago, I suddenly started to see orders in the Admin CP that I did not receive copy of the email confirmations. I did testing, and found that now I am not receiving any email - account creation, order confirmation, contact us form email. I tested as a fake customer, and am not receiving any email as well.

    I have tried different SMTP Auth setup, used different email accounts as the "send from" and the "SMTP Email Account Mailbox" with respective mail server login info. None worked. Invariably I get a green notice saying "email sent", and a red notice on top saying "Called Mail() without being connected".

    I have been checking with the hosting server's support. They see nothing unusual on my account.

    When I switch to PHP Email Transport method, I get same green "email sent", and then red error "Could not instantiate mail function.". In this case, the server support report the following PHP error: PHP Warning: Illegal string offset 'EMAIL_FROM_ADDRESS' in MYSTORE/includes/functions/functions_email.php on line 103, and the line's content in my file:
    PHP Code:
    if (!isset($block['EMAIL_FROM_ADDRESS']) || $block['EMAIL_FROM_ADDRESS'] == ''$block['EMAIL_FROM_ADDRESS'] = $from_email_address
    The server PHP version is 5.4 and has not changed recently.

    That's all info I can come up with. I need to fix this problem. Thanks a lot in advance for your attention.

    Jeff

  2. #2
    Join Date
    Oct 2007
    Location
    Hong Kong
    Posts
    111
    Plugin Contributions
    0

    Default Re: PHP5.4, Email Stopped Sending

    I did a fresh install of a test store ZC154, and the email was not sending, too. Guess this rules out problem on Zencart and points right back at the host server side. While I installed the test store, at the server check step, I got some server issues flagged (these issues were not present when I installed my live store a month ago). See screen captures below. If anyone can pinpoint which of these issues are causing me the grieves (so that it makes it easier to communicate with my host support), it would be much appreciated.

    Capture1.jpg
    Capture2.PNG

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: PHP5.4, Email Stopped Sending

    You can/should enable email archiving in your admin
    If ZenCart is creating the emails then this is where it's responsibility ends and your mail server responsibility begins
    Called Mail() without being connected
    You should check with your host about what smtp port they recommend as I suppose you have been using port 25
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Oct 2007
    Location
    Hong Kong
    Posts
    111
    Plugin Contributions
    0

    Default Re: PHP5.4, Email Stopped Sending

    Thank you Kobra. I enabled email archiving, and see all emails in the database, as well as the Email Archive Manager plugin in Admin CP.

    For email server port, I used to use 25 when it worked and stopped. I tried 587 later (recommended by host support), but no luck.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: PHP5.4, Email Stopped Sending

    see all emails in the database
    Unfortunately, if ZenCart is creating them and passing them off to your host's MTA (mail transport agent) then this is not directly a ZenCart issue - take it up with your host
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: PHP5.4, Email Stopped Sending

    If it helps in debugging, you can make a temporary change in the top section of the functions_email.php file:
    Code:
    /**
     * Set email system debugging off or on
     * 0=off
     * 1=show SMTP status errors
     * 2=show SMTP server responses
     * 4=show SMTP readlines if applicable
     * 5=maximum information, and output it to error_log
     * 'preview' to show HTML-emails on-screen while sending
     */
      if (!defined('EMAIL_SYSTEM_DEBUG')) define('EMAIL_SYSTEM_DEBUG', 0);
    Change the defined value from 0 to something higher like 1 or 2.
    This will cause a bunch of text to be output to reveal more of what's happening in the background.

    Be sure to put it back to 0 quickly, as this information could be dangerous if left visible to customers.

    Then give the error message information to your hosting company so they can use it to help sort out their problem.
    .

    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.

  7. #7
    Join Date
    Sep 2005
    Location
    Ocala, FL
    Posts
    494
    Plugin Contributions
    0

    Default Re: PHP5.4, Email Stopped Sending

    Quote Originally Posted by DrByte View Post
    If it helps in debugging, you can make a temporary change in the top section of the functions_email.php file:
    Code:
    /**
     * Set email system debugging off or on
     * 0=off
     * 1=show SMTP status errors
     * 2=show SMTP server responses
     * 4=show SMTP readlines if applicable
     * 5=maximum information, and output it to error_log
     * 'preview' to show HTML-emails on-screen while sending
     */
      if (!defined('EMAIL_SYSTEM_DEBUG')) define('EMAIL_SYSTEM_DEBUG', 0);
    Change the defined value from 0 to something higher like 1 or 2.
    This will cause a bunch of text to be output to reveal more of what's happening in the background.

    Be sure to put it back to 0 quickly, as this information could be dangerous if left visible to customers.

    Then give the error message information to your hosting company so they can use it to help sort out their problem.
    Hi Doc


    I too discovered my emails not being sent today. After I sent an email I get 'The following From address failed: [email protected] : Called Mail() without being connected'

    I did what you suggested and got a server error so I had to switch back.

    I did not change files in a week so I am confused. PHP 5.4 (Single php.ini) and zc 1.54


    I do have another zc 1.54 site successfully sending emails.
    So can this mean I may have screwed my files?

    thanks

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: PHP5.4, Email Stopped Sending

    Quote Originally Posted by spawnie69 View Post
    I did what you suggested and got a server error so I had to switch back.
    What error exactly?
    .

    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.

  9. #9
    Join Date
    Sep 2005
    Location
    Ocala, FL
    Posts
    494
    Plugin Contributions
    0

    Default Re: PHP5.4, Email Stopped Sending

    I changed the 0 to 1 and it gave server error. Since then i restored my files now I'm battling the white screen problem.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: PHP5.4, Email Stopped Sending

    Quote Originally Posted by spawnie69 View Post
    I changed the 0 to 1 and it gave server error.
    But, that's the whole point. Changing it to 1 is *supposed to* expose server errors. And then you use that error message to understand more specifically how to fix the problem.
    But, you didn't tell us what the error message was, so we can't help you.


    Your new issue of blank pages is unrelated, and should be discussed in the other thread you've started about that.
    .

    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.

 

 

Similar Threads

  1. v138a Site has stopped sending outgoing email
    By kamokid in forum General Questions
    Replies: 5
    Last Post: 1 Feb 2014, 09:10 AM
  2. order emails stopped sending
    By indigobnb in forum General Questions
    Replies: 3
    Last Post: 22 Sep 2010, 05:08 PM
  3. MySQL Syntax error stopped my sending
    By josee225 in forum General Questions
    Replies: 1
    Last Post: 24 May 2009, 04:22 AM
  4. New Customer signup stopped sending to my e mail
    By boston in forum General Questions
    Replies: 8
    Last Post: 15 Apr 2008, 10:09 PM
  5. Sending HTML email with ZenCart using PHP5
    By kimhuff in forum General Questions
    Replies: 5
    Last Post: 18 Nov 2007, 09:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR