mail and php.ini problems

the mail() function

Moderators: macek, egami, gesf

Post Reply
gerhardt
New php-forum User
New php-forum User
Posts: 6
Joined: Wed Jul 16, 2003 10:49 pm

mail and php.ini problems

Post by gerhardt » Tue Aug 19, 2003 4:28 am

Hey,
I still have the problem with the mail function and I cannot get it to work.
I am using this code:
mail( "xxx@web.de", "test", "test", "From: yyy@web.de" )
the php.ini looks like this:

[mail function]
SMTP=smtp.web.de
sendmail_from=xxx@web.de

When i run this code I get this error message:

Warning: Failed to Connect in c:\programme\easyphp\www\ilka1
\templates\sendmail.php on line 19

Does anyone has an idea what the problem here could be. Thanx for your answer..

YOGI

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Re: mail and php.ini problems

Post by swirlee » Tue Aug 19, 2003 6:44 am

gerhardt wrote:[mail function]
SMTP=smtp.web.de
sendmail_from=xxx@web.de

When i run this code I get this error message:

Warning: Failed to Connect in c:\programme\easyphp\www\ilka1
\templates\sendmail.php on line 19


Does your server have access to send mail through smtp.web.de? The vast majority of SMTP servers (particularly on big sites like Web.de) refuse connections from people they don't know, so unless it "knows" your server, you're not going to have any luck.
Last edited by swirlee on Thu Aug 21, 2003 6:06 am, edited 1 time in total.

sigix
php-forum Active User
php-forum Active User
Posts: 364
Joined: Mon Jul 14, 2003 9:39 pm
Location: /Earth/Xion

Post by sigix » Wed Aug 20, 2003 11:10 pm

yah i agree swirlee ... it is authentication problem... :arrow:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest