How to setup PHP websites to be able to send email by creating a .user.ini file
Posted by Tegan King on 05 August 2013 03:03 PM
In order for PHP websites to be able to send email you will need to create a .user.ini file
In order for PHP based websites to send email out from our mail server, we require you to specify the FROM ADDRESS. In order to specify the FROM ADDRESS, you will need to create a .user.ini and add the following code:
1) Create File called .user.ini
2) Add this code to the file and save file:
sendmail_from = email@example.com
Make sure to switch firstname.lastname@example.org with your email address.
3) Upload file to your website files on the server.
Note - This file can also be created via the File Manager in the control panel.
Once you have this file in place, your PHP based website will once again be able to send out emails.