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

 

Very often php mail applications rely on the generic settings in the PHP.INI file, however this will not function with EPHost's Windows Platform.

A "from" address must be supplied, please see the follow article for a code solution... 

    See the Knowledge base Article on "Sending Mail using php mail function"

OR use the following option.

 

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 = info@your-email-address.com
  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.

 

ALSO SEE: Sending Mail using PHP Mail Function | How to Setup PHP Websites using .user.ini file

Also SeeEmail Settings POP3 / IMAP | Check email online | Email Troubleshooting | Adding an email to your hosting account WINDOWS / LINUX 

Contact Support

If you are still having issues, please contact us for further help.
1-877-EPHOST1 | support@ephost.com

 

 

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
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.