Within the WB development process, the mail function was updated several times. Up to WB v2.6.4, mails are send by the PHP function mail() .
In some cases, mails send via PHP mail() 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.
Errors 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 function mail(). Very often such mails are deleted without any information of the recipient.
Wrap up: PHP mail()
Sending mails via the PHP mail() function is not very reliable. Even if WebsiteBaker is able to send the mail corretly, it may not achieve your recipient. The only way which is promising for the future is using SMTP for outgoing mails.
Due to the bad experiences with the PHP mail() function, the new mailer class: PHPMailer was introduced with WB v2.6.5. Some features of this mail class are listed below.
The integration of the new PHPMailer class was done in a way to ensure backwards compatibility. As in the previous WB versions, the default setting for outgoing mails is set to PHP mail().
If your service provider does support outgoing mails via SMTP without authentification, you should change the default setting from PHP mail() to SMTP mail. The following information is required to use SMTP:
Replace the domain name by the SMTP host of your service provider.
To send mails via PHP mail() or SMTP from WebsiteBaker v2.6.5 onwards, the following premises needs to be fulfilled.
Some free mail provider like GMX reject all mails which uses a GMX address (e.g. name @gmx.net), but are not send via the GMX mail server.
Tip: To avoid such problems, one should use a FROM: address and Server mail following a syntax like: wbmailer @yourdomain.com
Since WB 2.7 it is allowed to configure the mailer settings viat the WebsiteBaker backend. In addition the support for authentification will be included by default.
If your server requires SMTP authentification, you have to configure the mail settings in
Settings > Show Advanced Options > Mailer Settings