Knowledgebase: How To
PHP Mail function
Posted by Joe Rebis on 27 June 2013 11:31 AM

If your PHP application does not specify a from address, many just reply on the generic settings in the PHP.ini file, it will not work on our platform.

Please see this article below for a code solution OR using the option below.

This option establishes a from address by default when sending email using PHP if it is not otherwise done in the code

1) Create a file called .user.ini in the wwwroot folder of your website.
2) Put the following in the file and save it.

sendmail_from =

3) Reload your application. e.g. open, edit and save the web.config file. To edit just put a few spaces and then delete them.

You can use this as a drop in replacement for overriding many php.ini settings.

(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Copyright © 2015 EPhost, Inc. All rights reserved.