Disadvantages of the PHP
mail()
functionIn some cases, mails send via
PHPmail()
did not receive the
recipients although it was send by WB
without any error message. The most
common reasons for that issue are
listed below.
- wrong format of mail header or content
(e.g. differences in line break
between Windows/Unix)- sendmail not
installed or configured on your server
(php.ini)- the mail provider of the
recipeint does not allow mails send by
PHPmail()
; common spam protectionErrors in the format of header or
content can cause that mails are
treated as SPAM. In the best case,
such mails are transfered to the spam
folder of your recipient inbox or send
back to the sender. In the worst case,
such mails are deleted without any
comment. If sendmail is not installed
or not configured, no mails can be
send at all.It is common practice by free mail
provider such as GMX, to reject mails
send via the PHP functionmail()
. Very
often such mails are deleted without
any information of the recipient.