dragonloong Posted April 14, 2007 Share Posted April 14, 2007 dis is my coding ... <?php mail("[email protected]", "Hello World", "Hi, world. Prepare for our arrival. We're starving!"); ?> but after i load it in my browsers... it showed below.... Warning: mail(): SMTP server response: 530 5.7.0 Must issue a STARTTLS command first a8sm4714968poa in c:\program files\easyphp1-8\www\new folder\firstmail.php on line 2 now the problem is i dun hav receive a mail .... pls help me to solve the prob.... i dunno wat i hav done wrong .... Link to comment https://forums.phpfreaks.com/topic/47019-help-i-couldnt-send-mail-by-php/ Share on other sites More sharing options...
Anzeo Posted April 14, 2007 Share Posted April 14, 2007 Are you sure you can send a mail through SMTP on your host? Not all hosts allow you to use their mailservers. Link to comment https://forums.phpfreaks.com/topic/47019-help-i-couldnt-send-mail-by-php/#findComment-229308 Share on other sites More sharing options...
dragonloong Posted April 14, 2007 Author Share Posted April 14, 2007 im not sure... im using smtp gmail ... can u tell me more how to setting up or how to send a mail through php coding.... thank you im newbie ...dunno what else can i do .... Link to comment https://forums.phpfreaks.com/topic/47019-help-i-couldnt-send-mail-by-php/#findComment-229313 Share on other sites More sharing options...
Anzeo Posted April 14, 2007 Share Posted April 14, 2007 I think ur coding is allright, but I'm learning php myself and I'm not sure on how to check if your host provides mail sending. Link to comment https://forums.phpfreaks.com/topic/47019-help-i-couldnt-send-mail-by-php/#findComment-229323 Share on other sites More sharing options...
dragonloong Posted April 14, 2007 Author Share Posted April 14, 2007 erm.... do u know how to make mail setting in php.ini file ... i jus edit my SMTP = smtp.gmail.com and other line i,i didnt edit... but i reference from book... smtp_post sendmail_from sendmail_path should b modify... but i dunno how to modify it ... do u know ? Link to comment https://forums.phpfreaks.com/topic/47019-help-i-couldnt-send-mail-by-php/#findComment-229328 Share on other sites More sharing options...
supermerc Posted April 14, 2007 Share Posted April 14, 2007 like Anzeo said, it is probably your host, I had the same problem and your code looks right. Do you have paid hosting? Because most free hosting dont allow php mail function, that could be it Link to comment https://forums.phpfreaks.com/topic/47019-help-i-couldnt-send-mail-by-php/#findComment-229334 Share on other sites More sharing options...
dragonloong Posted April 14, 2007 Author Share Posted April 14, 2007 no i dun hav nay paid hosting ... erm.... can u introduce some hosting that i can implement my coding?... Link to comment https://forums.phpfreaks.com/topic/47019-help-i-couldnt-send-mail-by-php/#findComment-229337 Share on other sites More sharing options...
supermerc Posted April 14, 2007 Share Posted April 14, 2007 Well theres yurx.com thats what I use, but it requires you to go in forum and post, you can get an okay plan for 0 post, a decent plan for 35 points (i think) and a good plan for 100 post. If you decide to use feel free to put me in the box who says who refered you. Link to comment https://forums.phpfreaks.com/topic/47019-help-i-couldnt-send-mail-by-php/#findComment-229366 Share on other sites More sharing options...
dragonloong Posted April 15, 2007 Author Share Posted April 15, 2007 thank your suggest..... i will try to use dis free hosting.... i hav put ur name as refered their site... thank you ... Link to comment https://forums.phpfreaks.com/topic/47019-help-i-couldnt-send-mail-by-php/#findComment-229557 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.