Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
TLS support for smtp
  • Hi,

    I am trying to figure out how to send authenticated emails using outlook.com where my free custom domain email is hosted. smtp.live.com only supports TLS protocol and the mail package documentation has no mention about TLS.

    Is it supported by the mail package of latest FuelPHP 1.x distribution? Can anyone show a quick example ?

    If not, any help on how to integrate PHPMailer into Fuel for accomplishing the same?


  • Is that similar to what Google uses? SMTP + TLS on port 465?
  • As far as I know, Google supports SSL and TLS but Outlook.com (smtp.live.com) only supports TLS on port 587.

    In FuelPHP documentation at http://fuelphp.com/docs/packages/email/troubleshooting.html , there is an example smtp host configuration as "ssl://smtp.gmail.com". I am just wondering if TLS also supported this way. In CodeIgniter, it doesn't.
  • It seems like this:
    http://www.php.net/manual/ja/transports.inet.php#95022

    I got the error from tls://smtp.live.com port 587:
    Fuel\Core\PhpErrorException [ Warning ]:
    fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
    PKGPATH/email/classes/email/driver/smtp.php @ line 122

    class Email_Driver_Smtp, line 116:
    $this->smtp_connection = @fsockopen(

    The at mark conceals the error above, so you must remove it.

  • It's probably best to create a ticket for this at https://github.com/fuel/email/issues, with a short description of the problem and a link to this thread, so Frank can look at it.
  • @mmn357157

    1.8/develop branch could send via smtp.live.com.

    See: https://github.com/fuel/email/issues/55


  • I am getting this error when sending emails via smtp-mail.outlook.com, port 587. I figured backporting this patch would solve it, but it still spits out the same error. Suggestions?

    ERROR - 2014-05-12 21:20:09 --> Error - Got an unexpected response from host on command: [QUIT] expecting: 221 received:  in /home/demo/fuel/packages/email/classes/email/driver/smtp.php on line 259
  • Problem here is no response from the mailserver.

    The RFC states that the mailserver MUST respond to each command with a status code and an optional response text. Code 221 is expected here, but none is returned.

    This could also be an incorrect line-end configuration (LF vs CR vs CRLF).
  • Awesome, thanks for the info Harro.

    Edit: Well I'll be a monkey's uncle, it in fact was an incorrect line-end configuration!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion