发送邮件感谢ionos主机(1and1)的smtp服务
Send mail thanks to the smtp service of ionos host (1and1)
我有一个由 ionos 托管的网站(在它被命名为 1and1 之前)。本网站使用 symfony 4 框架。除了发送电子邮件外,一切正常。我已经像这样配置我的 .env
文件:
MAILER_URL=smtp://contact@mysite.com:password@smtp.ionos.fr:465
但这不起作用,我收到此错误:
Exception occurred while flushing email queue: Connection could not be established with host smtp.ionos.fr [Connection timed out #110]
我已经尝试使用 587 端口 (TLS),但没有成功。此外,我尝试将用于用户名的第一个 @
编码为 %40
以避免冲突。我认为问题可能来自 SMTP 配置。
对于那些正在苦苦挣扎的人,即使在阅读了这篇文章之后:
https://www.ionos.com/help/email-office/general-topics/settings-for-your-email-programs-imap-pop3/
我使用了下面的配置(使用端口 25),并且有效!
MAILER_URL=smtp://smtp.ionos.fr:25?auth_mode=login&username=emailAddress&password=myPassword
我有一个由 ionos 托管的网站(在它被命名为 1and1 之前)。本网站使用 symfony 4 框架。除了发送电子邮件外,一切正常。我已经像这样配置我的 .env
文件:
MAILER_URL=smtp://contact@mysite.com:password@smtp.ionos.fr:465
但这不起作用,我收到此错误:
Exception occurred while flushing email queue: Connection could not be established with host smtp.ionos.fr [Connection timed out #110]
我已经尝试使用 587 端口 (TLS),但没有成功。此外,我尝试将用于用户名的第一个 @
编码为 %40
以避免冲突。我认为问题可能来自 SMTP 配置。
对于那些正在苦苦挣扎的人,即使在阅读了这篇文章之后: https://www.ionos.com/help/email-office/general-topics/settings-for-your-email-programs-imap-pop3/
我使用了下面的配置(使用端口 25),并且有效!
MAILER_URL=smtp://smtp.ionos.fr:25?auth_mode=login&username=emailAddress&password=myPassword