Error sending Mail Cakephp 3.x

3

How are you ?, maybe someone around here had the same problem when sending an email configuring an email account created in hostgator for which I have the following in my application

'EmailTransport' => [
    'default' => [
        'className' => 'Mail',
        // The following keys are used in SMTP transports
        'host' => 'localhost',
        'port' => 25,
        'timeout' => 30,
        'username' => 'user',
        'password' => 'secret',
        'client' => null,
        'tls' => null,
        'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null),
    ],
    'nuevostyle'=>[
        'className' => 'Smtp',
        'host' => 'gator4230.hostgator.com',
        'port' => 587,
        'timeout' => 60,
        'user' => '[email protected]',
        'password' => 'xxxxxxx',
        'tls' => true
],
'Email' => [
    'default' => [
        'transport' => 'default',
        'from' => 'you@localhost',
        //'charset' => 'utf-8',
        //'headerCharset' => 'utf-8',
    ],
    'nuevostyle-profile' => [
        'transport' => 'nuevostyle',
        'from' => '[email protected]',
        'charset' => 'utf-8'
    ]
],

When I send it, it shows me the following error

SMTP Error: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1) Cake \ Network \ Exception \ SocketException Documentation API If you want to customize this error message, create src \ Template \ Error \ error500.ctp

Maybe I'm missing something more help please Thank you!

    
asked by Jonathan Cunza 25.09.2016 в 00:46
source

1 answer

0

The problem was that within my local server (that is, my hosting did not allow access to the account while inside the local server) so I tested from the hosting and everything was fine, of course the configuration was fine

    
answered by 03.10.2016 / 16:15
source