-
Hello |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
PHPMailer doesn't get to choose what IP it connects from; that's set by the wider PHP configuration and the networking config in the container, in particular the default routes. This is outside PHPMailer's control. Separately, PHPMailer doesn't like single-word hostnames because they are indistinguishable from invalid public hostnames, so you may find it's effective to rename your instance from |
Beta Was this translation helpful? Give feedback.
PHPMailer doesn't get to choose what IP it connects from; that's set by the wider PHP configuration and the networking config in the container, in particular the default routes. This is outside PHPMailer's control.
Separately, PHPMailer doesn't like single-word hostnames because they are indistinguishable from invalid public hostnames, so you may find it's effective to rename your instance from
mailserver
to something likemailserver.local
, or whatever is workable for your config.