dpg78570 2019-05-30 11:28
浏览 67

Symfony 4 - 使用ionos发送电子邮件

For several hours, I can not send mail with Symfony 4. Currently, I am hosted at IONOS and I wish to send emails through my email present in the host. Symfony is sending me the following error:

Uncaught PHP Exception Swift_TransportException: "Connection could not be established with host localhost [Connection timed out # 110].

I want the emails to send directly so I commented on the content of the swiftmailer.yaml

#swiftmailer:
    # ...
    # spool: { type: memory }

#.env
    # APP_ENV=prod
    # MAILER_URL=smtp://imap.ionos.fr:993?encryption=ssl&auth_mode=login&username=mail&password=passwordmail


#Controller
    # $message = (new \Swift_Message('Youpi Email'))
    # ->setFrom(mail)
    # ->setTo('mail@gmail.com')
    # ->setBody($params['message'],'text/plain')
    # $this->get('mailer')->send($message);

IONOS email configuration is here :

Mail configuration IONOS

Thank you a lot for your responses !

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 关于#java#的问题,请各位专家解答!
    • ¥15 急matlab编程仿真二阶震荡系统
    • ¥20 TEC-9的数据通路实验
    • ¥15 ue5 .3之前好好的现在只要是激活关卡就会崩溃
    • ¥50 MATLAB实现圆柱体容器内球形颗粒堆积
    • ¥15 python如何将动态的多个子列表,拼接后进行集合的交集
    • ¥20 vitis-ai量化基于pytorch框架下的yolov5模型
    • ¥15 如何实现H5在QQ平台上的二次分享卡片效果?
    • ¥30 求解达问题(有红包)
    • ¥15 请解包一个pak文件