mahe2310 Posted March 28, 2007 Share Posted March 28, 2007 I tried to send a mail using mail() method, But failed. $email = "[email protected]" ; $message = "Test Mail" ; ini_set("SMTP","xyz.com"); ini_set("smtp_port","25"); if(!(@mail( "[email protected]", "Email Subject", $message, "From: $email" ))) { $failed = 1; } Note: My application is running on my PC (with apache server). It is connected to the LAN which holds the mail server. Link to comment https://forums.phpfreaks.com/topic/44605-mail-in-php/ Share on other sites More sharing options...
monk.e.boy Posted March 28, 2007 Share Posted March 28, 2007 punch a hole through the firewall? Maybe? monk.e.boy Link to comment https://forums.phpfreaks.com/topic/44605-mail-in-php/#findComment-216659 Share on other sites More sharing options...
per1os Posted March 28, 2007 Share Posted March 28, 2007 You have to be careful because some ISPs block port 25. You may be SOL. Link to comment https://forums.phpfreaks.com/topic/44605-mail-in-php/#findComment-216739 Share on other sites More sharing options...
mahe2310 Posted March 29, 2007 Author Share Posted March 29, 2007 Hi al, I am new to php... Wat do SOL means? Can you tell me how i can find whether my firewall is blocking it... If port 25 is blocked, then can i use some other port for this... Link to comment https://forums.phpfreaks.com/topic/44605-mail-in-php/#findComment-217337 Share on other sites More sharing options...
NSW42 Posted March 29, 2007 Share Posted March 29, 2007 if your on a router make sure port 25 is open to send as well....as i have my doubts your isp has 25 blocked... Link to comment https://forums.phpfreaks.com/topic/44605-mail-in-php/#findComment-217375 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.