HELP anyone? SMTP problem using PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
komhico
Forum Newbie
Posts: 1
Joined: Mon Jul 26, 2010 8:13 pm

HELP anyone? SMTP problem using PHP

Post by komhico »

hi there...Can anyone please help me on SMTP using php.

Whenever I test this function for my system, I always end up seeing an error.

Why is that my system always display an error where it says:

Warning: fsockopen() [function.fsockopen]: unable to connect to mail.katropa.com:25 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\xampp\htdocs\mail\testmail.php on line 35

Warning: fgets(): supplied argument is not a valid stream resource in C:\xampp\htdocs\mail\testmail.php on line 36


...got any idea what's wrong?

Can anyone please explain to me what's the matter whenever this happen?
:banghead:
Gargoyle
Forum Contributor
Posts: 130
Joined: Wed Jul 14, 2010 12:25 am

Re: HELP anyone? SMTP problem using PHP

Post by Gargoyle »

well, the error message is quite clear, isn't it?

could be a firewall issue.
Post Reply