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: [email protected]"); fputs($fd, "From: [email protected]"); 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); Link to comment https://forums.phpfreaks.com/topic/279499-sending-mail/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.