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);