Matt Posted November 23, 2007 Report Share Posted November 23, 2007 I'm trying to send email though php. I'm on Ubuntu, I have apache2, and postfix installed. Here's my script and the chunk from my php.ini:<?php$to = "[email protected]";$subject = "Test mail";$message = "Hello! This is a simple email message.";mail($to,$subject,$message);echo "Mail Sent.";?>[mail function]; For Win32 only.SMTP = localhostsmtp_port = 25; For Win32 only.sendmail_from = [email protected]; For Unix only. You may supply arguments as well (default: "sendmail -t -i").sendmail_path = /usr/sbin/sendmail -t ; Force the addition of the specified parameters to be passed as extra parameters; to the sendmail binary. These parameters will always replace the value of; the 5th parameter to mail(), even in safe mode.;mail.force_extra_parameters =It echos 'Mail Sent' but I am not receiving anything.Let me know if you see any errors or need more information.Thanks. Quote Link to post Share on other sites
Matt Posted November 23, 2007 Author Report Share Posted November 23, 2007 looks like my isp blocks port 25, which is why it's not being sent Quote Link to post Share on other sites
Matt Posted November 23, 2007 Author Report Share Posted November 23, 2007 looks like my isp blocks port 25, which is why it's not being sent Quote Link to post Share on other sites
Martint Posted November 24, 2007 Report Share Posted November 24, 2007 Whose your ISP?Some ISP's block port 80 to prevent the setup of webservers (easy get around).If the SMTP port (25) is blocked, then you can use another port, cant' ya? Quote Link to post Share on other sites
Matt Posted November 24, 2007 Author Report Share Posted November 24, 2007 Probably. I may just set up and RSS feed instead. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.