我想从一个cli应用程序使用symfony2与swiftmailer发送电子邮件。该应用程序托管在谷歌云,我试图使用的电子邮件服务是Sendgrid。使用sendmail发送电子邮件通过谷歌云swiftmailer
当我试图从它完美对当地环境发送电子邮件,但如果试图从谷歌云机器,我不断收到Exception occurred while flushing email queue: Connection could not be established with host smtp.sendgrid.net [Connection timed out #110]
我添加了端口2525和465的防火墙规则发送时云计算机。
telnet smtp.sendgrid.net 2525
完美地在机器上工作(并且是唯一可用的端口)。我已经尝试了所有sengrid邮件端口(465,2525,587)和加密类型(tls,ssl)成功的组合。
有没有人有过同样的问题或有任何想法?