Connection could not be established with host smtp.mailtrap.io

Home Forums PHP Connection could not be established with host smtp.mailtrap.io

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1545
    Mofizul
    Keymaster

    Current code:

    
    $transport = (new Swift_SmtpTransport('smtp.mailtrap.io', 2525))
            ->setUsername('xxxxxxx')
            ->setPassword('xxxxxxx');
    
    #1546
    Mofizul
    Keymaster

    If you are running the project from your Cpanel trying to use port 465 as a priority among other ports provide by Mailtrap, while running locally use 2525.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.