vijdev Posted July 19, 2007 Share Posted July 19, 2007 hi...someone pleeeeeeeease help me on php mail problem on WAMP. code: <?php mail("mymail@gmail.com","Hello World","Hi,this is my first php *****ofcourse i have used a proper mail id!******* mail!!"); ?> where do i set up the smtp port?...or what do i need to do.. i have modified php.ini as follows: [mail function] ; For Win32 only. SMTP = smtp.gmail.com ; For Win32 only. sendmail_from = mymail@gmail.com *****ofcourse i have used a proper mail id!******* ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ;sendmail_path = i get this error: Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first m24sm2469571waf in C:\wamp\www\play\firstmail.php on line 2 if am missing too much on basics....please help me from scratch..i am new and i ahve spent more than 10 days struggling now...! pleeeeeeeeeease! thanks, vk Quote Link to comment https://forums.phpfreaks.com/topic/60721-solved-php-mail-problem-on-wamp/ Share on other sites More sharing options...
Foser Posted July 19, 2007 Share Posted July 19, 2007 I am currently having the exact same issue. Quote Link to comment https://forums.phpfreaks.com/topic/60721-solved-php-mail-problem-on-wamp/#findComment-302475 Share on other sites More sharing options...
erichar11 Posted July 24, 2007 Share Posted July 24, 2007 Check out this thread on php.net http://www.php.net/manual/en/ref.mail.php#76014 I'm no php expert, but I think part of the problem is that gmail smtp doesn't work the same as others. Not to mention, your going to have to authenticate prior to sending mail which the default main() function doesn't have. Quote Link to comment https://forums.phpfreaks.com/topic/60721-solved-php-mail-problem-on-wamp/#findComment-306237 Share on other sites More sharing options...
Foser Posted July 26, 2007 Share Posted July 26, 2007 I think the problem is in the php.ini anyones gotten wamp to work with mail? thanks Quote Link to comment https://forums.phpfreaks.com/topic/60721-solved-php-mail-problem-on-wamp/#findComment-307955 Share on other sites More sharing options...
wildteen88 Posted July 26, 2007 Share Posted July 26, 2007 You cannot use gmail as an SMTP Server as mail() does not support authentication. GMail requires authentication in order for email to be sent from their servers. mail works fine. It's just you got to use a non-secured SMTP server in order for mail to work. Quote Link to comment https://forums.phpfreaks.com/topic/60721-solved-php-mail-problem-on-wamp/#findComment-308195 Share on other sites More sharing options...
vijdev Posted July 27, 2007 Author Share Posted July 27, 2007 i have finally got it working with swiftmailer! it works for wamp.. works for gmail too.. its an offshoot of phpmailer...but its better i guess...and i dont think phpmailer allowse TSL or SSL like swiftmailer, which is reqd for gmail.. needless to say abt the other zillion good features of swiftmailer! Quote Link to comment https://forums.phpfreaks.com/topic/60721-solved-php-mail-problem-on-wamp/#findComment-308819 Share on other sites More sharing options...
kfunny Posted August 16, 2007 Share Posted August 16, 2007 i have finally got it working with swiftmailer! it works for wamp.. works for gmail too.. its an offshoot of phpmailer...but its better i guess...and i dont think phpmailer allowse TSL or SSL like swiftmailer, which is reqd for gmail.. needless to say abt the other zillion good features of swiftmailer! Hi I have a problem with php doesn't support ssl and tls. I have seen many posts telling me to uncommented the extension=php_openssl. When I used the command php -m, it did show me the openssl. But when using phpinfo(), it only list udp and tcp. Do you know how to set it up? Please help. Quote Link to comment https://forums.phpfreaks.com/topic/60721-solved-php-mail-problem-on-wamp/#findComment-326217 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.