SwiftMailer Connection could not be established with host smtp.mailgun.org [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . If i use $transport = Swift_SmtpTransport::newInstance('localhost', 25); then it's working fine but when i'm using this settings it's not working $transport = Swift_SmtpTransport::newInstance('smtp.mailgun.org', 465, 'ssl') ->setUsername('mailegun username') ->setPassword('mailgun password'); This problem is in