Jump to content

sojan

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.