sojan Posted June 24, 2013 Share Posted June 24, 2013 what is wrong in this code, i want to send mail without changing php.ini as in code igniter. how can i do that. $fd = popen("/usr/sbin/sendmail","w"); fputs($fd, "To: sojan@abc.com"); fputs($fd, "From: admin@abc.com"); fputs($fd, "Subject: Test message from my web site"); fputs($fd, "X-Mailer: PHP3"); fputs($fd, "SMTP: 168.5.0.1"); fputs($fd, "smtp_port: 25"); fputs($fd, "Testing. "); pclose($fd); Quote Link to comment https://forums.phpfreaks.com/topic/279499-sending-mail/ Share on other sites More sharing options...
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.