Technote Details :: My website does not send e-mail messages
Issue
When adding a Send E-mail trigger to a page created with MX Kollection 3 or higher, no e-mail message is sent, even though the correct settings have been entered in the InterAKT Control Panel.
Reason
This may occur due to one of the following causes:
- Your scripting server is set up to use SMTP in order to send e-mail messages, and the username and password provided in the InterAKT Control Panel > E-mail Settings are not correct or missing.
- The scripting server only allows simple e-mail sending through the mail() function. You have entered a name and password in the InterAKT Control Panel > E-mail Settings section.
- There is a firewall between the web server and the e-mail server (if not on the same machine) that does not allow SMTP request to pass through.
Solution
MX Kollection supports two ways of sending e-mail messages:
- By using the mail() function that is built in PHP. This does not allow authentication, or using a remote e-mail server.
- By using a PEAR implementation (specific classes are provided with the extension), in order to allow the use of remote e-mail servers and SMTP authentication.
Although it sounds secure, using SMTP with authentication means that the username and passwords are secure, not the content that is passed for the e-mail message (subject, body, etc). Using SMTP with authentication simply provides a way for the e-mail server to restrict e-mail sending capabilities to specific users.
When sending an e-mail message, the code will decide on which method to use, based on the existence of the username and password in the InterAKT Control Panel. If they have not been provided, the mail() function will be used.
The solutions for the three scenarios mentioned above are:
- In the first case, check that the username and password have been correctly entered in the InterAKT Control Panel.
- For the second scenario, in order to be able to send e-mail messages, remove the username and password from the InterAKT Control Panel and reload the page. The e-mail message should be sent correctly.
- For the third case you must check that SMTP requests can exit from the web server. To do so, check the e-mail server logs for incoming connections from the web server's address.