Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
April 6, 2005, 7:35 am
rate this thread
i am getting following error.
Warning: mail() [function.mail]: Failed to connect to mailserver at
"smtp.gmail.com" port 465, verify your "SMTP" and "smtp_port" setting
in php.ini or use ini_set() in D:\LUGUBA\root\site\temp5.php on line 8
i have done the following
(1) in php.ini file
SMTP = smtp.gmail.com
smtp_port = 465
sendmail_from = firstname.lastname@example.org
i am sendig mail using mail() function and i am passing only defaulst
is it enough to send a mail or something is missing??
and do not i need to give password of my above email address
thxs for help in advance.......
Re: i am getting error while sending mail using mail() function
*** vishal wrote/escribió (6 Apr 2005 02:35:56 -0700):
Gmail's SMTP server only allows encrypted connections; it also requires a
username and password. I don't think that mail() function can do such a
job. You should find a different function to send mail. There're some
clases in pear.php.net that may do the trick.
-- Álvaro G. Vicario - Burgos, Spain
-- Don't e-mail me your questions, post them to the group
- R. Rajesh Jeba Anbiah
April 7, 2005, 1:02 am