omi Posted February 18, 2007 Share Posted February 18, 2007 hi, I'm running a vbulletin board and my members are not recieving any emails from the board. I tried to do an email diagnosis and this error came up: "The mailing function returned an error while trying to send the mail. Check your mail server to ensure it is configured correctly to allow PHP to send mail from it. You should also check your mail server's error log for more diagnostic information." I contacted my server support team and they advised me to upload a small test script for php mail to check. And they gave me a code that my script should include to try: -------- <? $mes="Php mail is working"; $to="any working email mail ID"; mail($to,"Working",$mes,""); ?> ------------ I'm actually not familiar with uploading or creating my own script Does anyone know what I should do with this script, I don't even know where to upload it to. Help would be realy appreciated All I want to know is how do I create this script, and what directory do I upload it to. thanks for your time in reading this post thakns P.S: if this info is already included in the forum then sorry for waisting your time, I just could'nt find. kind regards omi Link to comment https://forums.phpfreaks.com/topic/39005-problem-with-testing-php-mail/ Share on other sites More sharing options...
superuser2 Posted February 18, 2007 Share Posted February 18, 2007 Just take that and save it as mailtest.php right inside your webroot (probably public_html). Then call it from your browser. Make sure you fill in your own email address under 'to'. Link to comment https://forums.phpfreaks.com/topic/39005-problem-with-testing-php-mail/#findComment-187931 Share on other sites More sharing options...
marcus Posted February 18, 2007 Share Posted February 18, 2007 You should give it some headers, because some email hosts will not receive them or will be listed under spam. Link to comment https://forums.phpfreaks.com/topic/39005-problem-with-testing-php-mail/#findComment-187942 Share on other sites More sharing options...
omi Posted February 18, 2007 Author Share Posted February 18, 2007 thanks for your reply's I've created the testmail.php file in my web root folder and put my email under 'to'. I just don't understand what you mean by calling it to my web browser do I type in the path www.mydomain.org/testmail.php or do I type in something else sorry I'm a beginer in this field. and thanks again for your support Link to comment https://forums.phpfreaks.com/topic/39005-problem-with-testing-php-mail/#findComment-188255 Share on other sites More sharing options...
superuser2 Posted February 18, 2007 Share Posted February 18, 2007 Yes that's what I mean. Just load it from your browser. Link to comment https://forums.phpfreaks.com/topic/39005-problem-with-testing-php-mail/#findComment-188256 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.