scorpio17 has asked for the wisdom of the Perl Monks concerning the following question:
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How can I prevent my email from looking like spam?
by gamache (Friar) on Jan 03, 2008 at 15:50 UTC | |
|
Re: How can I prevent my email from looking like spam?
by moritz (Cardinal) on Jan 03, 2008 at 15:52 UTC | |
by scorpio17 (Canon) on Jan 03, 2008 at 16:46 UTC | |
by dsheroh (Monsignor) on Jan 03, 2008 at 18:21 UTC | |
|
Re: How can I prevent my email from looking like spam?
by kirillm (Friar) on Jan 03, 2008 at 15:45 UTC | |
|
Re: How can I prevent my email from looking like spam?
by grinder (Bishop) on Jan 03, 2008 at 20:47 UTC |