hey, i am sending an email to the user when they register containing an activation link. the problem is that it gets marked as spam (hotmail) and goes into the bulk mail folder or if they user has thier settings to delete spam automatically, then it never gets delievered. its not the contents as it also happens with the code below. i am not sure what i am doing wrong.
thanks
pedge
my $adminmail = 'OwnAgent <register@***.com>'; #also tried this without the angle brackets and name.open MAIL, "|$mailprog" || die &error('$!');
print MAIL "To: ****\@hotmail.com\n";
print MAIL "From: $adminmail\n";
print MAIL "Subject: test\n";
print MAIL "Content-type: text/plain\n\n";
print MAIL "test";
close MAIL;
thanks
pedge
Code:
my $mailprog = "/usr/sbin/sendmail -t"; my $adminmail = 'OwnAgent <register@***.com>'; #also tried this without the angle brackets and name.open MAIL, "|$mailprog" || die &error('$!');
print MAIL "To: ****\@hotmail.com\n";
print MAIL "From: $adminmail\n";
print MAIL "Subject: test\n";
print MAIL "Content-type: text/plain\n\n";
print MAIL "test";
close MAIL;