A few months after I got it figured out, something went wrong!
This is the code I got:
This is not working, or maybe it is... It's not sending emails. In the mail.log, I got this:
$to = "$firstname.lastname@example.org";
$subject = "Welcome!";
$message = "Hello! blah....";
$from = "email@example.com";
$headers = "From: The EmailFriend Team" . $from;
echo "Mail Sent.";
postfix/sendmail: fatal: Recipient addresses must be specified on the command line or via the -t option
However, if I make a simple mail() php script using an existing email address, it works!
This is what is including it:
It does enter stuff into the database but not sending the emails!
mysql_query("INSERT INTO users(id, name, maildir, crypt)VALUES('$firstname.lastname@example.org', '$lname', '$fname/', ENCRYPT('$address') );");
mysql_query("INSERT INTO aliases (mail,destination) VALUES