I'm working on a registration page using perl/cgi. Part of the registration process involves sending the user an email with a confirmation code. In my tests, this email frequently gets dumped into the spam folder! Here's a snippet to illustrate what I'm doing to send the email:
use strict; my $sendmail = "/usr/sbin/sendmail -t"; my $from = 'me@mycompany.com'; my $to = 'you@yourcompany.com'; my $reply_to = 'me@mycompany.com'; my $subject = "Subject goes here"; my $body = "Body goes here."; open(SENDMAIL, "|$sendmail") or die "Cannot open $sendmail: $!"; print SENDMAIL "From: $from\n"; print SENDMAIL "To: $to\n"; print SENDMAIL "Reply-to: $reply_to\n"; print SENDMAIL "Subject: $subject\n"; print SENDMAIL "Content-type: text/plain\n\n"; print SENDMAIL $body; close(SENDMAIL);
I apologize if this seems off-topic, but perl is used a lot for this type of thing, and I'm hoping someone here knows a tip or trick (maybe some obscure field to use in the header?) that would make a short confirmation email look more legitimate, and less like spam.
Thanks!
In reply to How can I prevent my email from looking like spam? by scorpio17
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |