ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Cannot send email using any options, but email_test.php works [???]

August 27, 2014 1:52pm

Subscribe [1]
  • #1 / Aug 27, 2014 1:52pm

    benjivm

    5 posts

    Hi, so here’s what’s up: I’ve tried sending email via EE using PHP Mail, Sendmail, and SMTP, but nothing works. In the case of PHP Mail I get the following error:

    Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.

    In the case of sendmail I get the following error:

    Exit status code: 64
    Unable to open a socket to Sendmail. Please check settings.
    Unable to send email using PHP Sendmail. Your server might not be configured to send mail using this method.

    In the case of SMTP (using Google) I get the following error:

    220 mx.google.com ESMTP n4sm5847712pdk.57 - gsmtp 
    
    hello: 250-mx.google.com at your service, [xxx.xx.xxx.xxx]
    250-SIZE 35882577
    250-8BITMIME
    250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 PLAIN-CLIENTTOKEN
    250-ENHANCEDSTATUSCODES
    250-CHUNKING
    250 SMTPUTF8
    Failed to authenticate password. Error: 535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 <a href="http://support.google.com/mail/bin/answer.py?answer=14257">http://support.google.com/mail/bin/answer.py?answer=14257</a> n4sm5847712pdk.57 - gsmtp 
    Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

    I followed the ideas found here, here, and here to configure the server to use Gmail SMTP with the same results every time. As a side note a lot of the code in those threads does not look like the code in my corresponding files, though I assume that is just because they reference older versions of CI/EE than current..

    email_test.php, however, works perfectly. I am running EE 2.7.3. I am attempting to send mail via communicate (all of the errors up there are from the communicate page), but what I really need is to enable email sending via the Freeform module, as our company website relies on it (it is currently fully configured with the downside of not being able to forward incoming messages to the correct addresses because of the email issue).

    I also spoke with my hosting provider to see if everything is set up and was assured time and again that it is all good on their end (they ran some simple php scripts and say that PHP Mail, sendmail, and their SMTP configuration is working 100%).

    Please help :(

  • #2 / Nov 14, 2014 1:25am

    jordan-sowers

    2 posts

    Were you able to find any solutions to this? I’m getting the same sendmail error.

    SMTP is working correctly for me, but can’t figure out what this means:

    Exit status code: 64
    Unable to open a socket to Sendmail. Please check settings.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases