Nice, but I don't have "/path/to/mail/program" to fill in! I don't have it installed!
I tried replacing it with mail.myisp.net, and nothing changed. Still no mail <🙁
Is there a way to SMTP directly to, mail.isp.com, bypassing the local machine?
There's this NEAT little command-line program called "smtpclient" that does just that... but it's at the SHELL level, something I'd like to avoid, if at all possible.
-Ben
John wrote:
Ben,
Here is something you can try:
<?php
// declare variables
$to = "someone@somewhere.com";
$from = "someone@somewhere.com";
$replyto = "someone@somewhere.com";
$subject = "Your subject";
$body = "Your Body";
$fd = popen("/path/to/mail/program -t","w");
fputs($fd, "To: $to\n");
fputs($fd, "From: $from\n");
fputs($fd, "Reply-to: $replyto\n");
fputs($fd, "Subject: $subject\n");
fputs($fd, "$body\n\n");
pclose($fd);
?>
This will open a connection to your mail program -OR- the isp you're trying to use, and attempt to send the email. Change the address' accordingly, and see if you get anything. Let me know the result.