I have a cgi script that auto responses after an appointment has been made. The sendmail seems to work fine with all other accounts but it wont make it to yahoo or aol accounts. here is the code:
open ( MAIL, "| /usr/lib/sendmail -t -i ") || die "Unable to open sendmail";
print MAIL "MIME-Version: 1.0\r\n";
print MAIL "Content-type: text/html; charset=iso-8859-1\r\n";
print MAIL "From: us\@domain.com\n";
print MAIL "Reply-To: us\@domain.com\n";
print MAIL "To: them\@domain.com\n";
print MAIL "Cc: us2\@domain.com\n";
print MAIL "Bcc: us3\@domain.com\n";
print MAIL "Return-Path: us\@domain.com\n";
print MAIL "Subject: Appointment Update\n\n";
print MAIL "Name: $showname<br>";
print MAIL "Sponsoring Attorney: $username<br>";
print MAIL "Phone number: $cphone<br>";
print MAIL "Notes: $cnotes<br>";
print MAIL "Appointment Date: $cbooked<br>";
print MAIL "Result: No Show<br>";
close ( MAIL );
I had some of the same problems with a php script and I read that you should add the reply and return path so I tried that with this script too and still does not work. Any suggestions? Thanks
open ( MAIL, "| /usr/lib/sendmail -t -i ") || die "Unable to open sendmail";
print MAIL "MIME-Version: 1.0\r\n";
print MAIL "Content-type: text/html; charset=iso-8859-1\r\n";
print MAIL "From: us\@domain.com\n";
print MAIL "Reply-To: us\@domain.com\n";
print MAIL "To: them\@domain.com\n";
print MAIL "Cc: us2\@domain.com\n";
print MAIL "Bcc: us3\@domain.com\n";
print MAIL "Return-Path: us\@domain.com\n";
print MAIL "Subject: Appointment Update\n\n";
print MAIL "Name: $showname<br>";
print MAIL "Sponsoring Attorney: $username<br>";
print MAIL "Phone number: $cphone<br>";
print MAIL "Notes: $cnotes<br>";
print MAIL "Appointment Date: $cbooked<br>";
print MAIL "Result: No Show<br>";
close ( MAIL );
I had some of the same problems with a php script and I read that you should add the reply and return path so I tried that with this script too and still does not work. Any suggestions? Thanks