I tried this now with no luck. Like the previous one it works on another host but not on the one I use for my project. This one uses the sendmail directly but does not work too.
<?php
$fd = popen("/usr/sbin/sendmail -t","w");
fputs($fd, "To: some@email.com\n");
fputs($fd, "From: Me \n");
fputs($fd, "Subject: Test message from my web site\n");
fputs($fd, "X-Mailer: PHP3\n");
fputs($fd, "Testing.\n");
pclose($fd);
?>
How can I go about with this script referencing the SMTP server?
If the smtp server is mail.aserver.com how can I embbed it to my script?
Thanx very much!