Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

mail and php.ini problems

the mail() function

Moderators: macek, egami, gesf

mail and php.ini problems

Postby 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
gerhardt
New php-forum User
New php-forum User
 
Posts: 6
Joined: Wed Jul 16, 2003 10:49 pm

Re: mail and php.ini problems

Postby 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.
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Postby sigix » Wed Aug 20, 2003 11:10 pm

yah i agree swirlee ... it is authentication problem... :arrow:
sigix
php-forum Active User
php-forum Active User
 
Posts: 364
Joined: Mon Jul 14, 2003 9:39 pm
Location: /Earth/Xion

Postby Jeremy » Wed Dec 17, 2003 7:29 am

It is an Auth problem. web.de requires POP before smtp. So if you don't login to POP3 within 10 mins before you send over SMTP it'll refuse the connection.

Jeremy
Jeremy
New php-forum User
New php-forum User
 
Posts: 3
Joined: Wed Dec 17, 2003 3:44 am


Return to PHP coding => Mail

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron