p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 (http://p2p.wrox.com/forumdisplay.php?f=160)
-   -   chapter 10 Emailing with php - firstmail.php (http://p2p.wrox.com/showthread.php?t=60252)

vijdev July 19th, 2007 01:12 AM

chapter 10 Emailing with php - firstmail.php
 
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 mail!!");
?>
*****ofcourse i have used a proper mail id!*******

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



All times are GMT -4. The time now is 03:06 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.