2.24.9. Correct sending mail from the site
There are three methods to send mail from a hosting site:
- Using the function mail.
- With sendmail
- By SMTP with authorization.
PHP mail
- The mail function works even without specifying a header
From
, but if you specify it, stick to the previous point.
sendmail
- Hosting sendmail path -
/usr/sbin/sendmail
. - In field "Sender address" (
From
) indicate the mailbox that is on the hosting, or do not indicate it at all.
SMTP
- Create mailbox.
- In the settings for sending mail on the site, use connection data to the created mailbox:
- Login and sender's address - full name of the created mailbox.
- Password — password for the created mailbox.
- SMTPServer —
mail.adm.tools
. - Port —
25
. - Encryption —
No
. - Use SMTP Authentication —
Yes
or if there is a choice, thenlogin
orplain
.