taskhill Posted July 11, 2008 Share Posted July 11, 2008 Hello all, Am just learning php and wrote a script using the mail () function. As is usually the case with others in this situation it did not work. While looking at the php configuration file on the php.info file I create, found at http://www.riverglenpatrol.com/phpinfo.php , I see that one of the disabled funcitons is the mail function. When I called my hosting provider they told me I could turn this one using php_ini within my code. The source I am using to learn php does not cover this, it only covers how to set up the php ini file when installed on my system. How do I set the mail() function to work poperly using php_ini? I have searched the forums for the answer and the closest I came was some had asked the same question but there was no reply. Any and all help is greatly appreciated. Task Link to comment https://forums.phpfreaks.com/topic/114326-mail-function-help/ Share on other sites More sharing options...
craygo Posted July 11, 2008 Share Posted July 11, 2008 you would have to use the ini_set function to do this. Place this anywhere BEFORE your mail functions ini_set("SMTP", "smtp.yourdomain.com"); ini_set("smtp_port", "25"); If that doesn't work you can always try phpmailer. Ray Link to comment https://forums.phpfreaks.com/topic/114326-mail-function-help/#findComment-587899 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.