Showing results for 
Show  only  | Search instead for 
Did you mean: 

Emails sent by Godaddy LAMP sendmail gets filters as spam in gmail

Hello there, I am running LAMP stack and have sendmail send email to my customers. Recently I found Gmail filters those emails sent by sendmail as Spam. A quick web research indicates I need to enable SPF, which I did on DNS:


TXT@v=spf1 mx -all1 Hour


and my sendmail script is pretty much straightforward, such as:


my $sendmail = "/usr/sbin/sendmail -t -f'info\'";
my $from = "From: Sharpened Flat <info\>";
my $send_to = "To:"};
my $subject = "Subject: Sharpened Flat Newsletter";

open(SENDMAIL, "|$sendmail") or die "Cannot open $sendmail: $!";
print SENDMAIL $from."\n";
print SENDMAIL "Reply-to: info\\n";
print SENDMAIL $send_to."\n";
print SENDMAIL $subject."\n";
print SENDMAIL "Content-type: text/html\n\n";
print SENDMAIL $content."\n";


What should I do in order to pass Gmail's Spam filter?