wayan has asked for the wisdom of the Perl Monks concerning the following question:
Everything displays correctly, but I don't receive the e-mail. Can someone either tell me what stupid mistake I've made, or suggest a way to check what sendmail is actually doing?#!/usr/bin/perl $from="don\@canzona.com"; $to="don\@canzona.com"; $subject="I\'m sending myself a test e-mail!"; $sendmailpath="/usr/sbin/sendmail"; if (open (SENDMAIL, "| $sendmailpath -t")) { print SENDMAIL "Subject: $subject\n"; print SENDMAIL "From: $from\n"; print SENDMAIL "To: $to\n"; print SENDMAIL "This is a test e-mail.\n\n"; close (SENDMAIL); print "Content-type: text/html \n\n"; print "Subject: $subject\n"; print "<BR>"; print "From: $from\n"; print "<BR>"; print "To: $to\n"; print "<BR>"; print "This is a test e-mail.\n\n"; print "<BR>"; print "e-mail sent.\n"; } exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: seeking sendmail enlightenment
by mpeppler (Vicar) on Jun 20, 2002 at 18:03 UTC | |
|
Re: seeking sendmail enlightenment
by stajich (Chaplain) on Jun 20, 2002 at 16:56 UTC | |
|
Re: seeking sendmail enlightenment
by mirod (Canon) on Jun 20, 2002 at 16:57 UTC | |
|
Re: seeking sendmail enlightenment
by d4vis (Chaplain) on Jun 20, 2002 at 16:59 UTC | |
|
Re: seeking sendmail enlightenment
by RMGir (Prior) on Jun 20, 2002 at 17:04 UTC | |
|
Re: seeking sendmail enlightenment
by Anonymous Monk on Jun 20, 2002 at 21:23 UTC | |
by spacewarp (Pilgrim) on Oct 01, 2002 at 21:04 UTC | |
|
Re: seeking sendmail enlightenment
by ajdelore (Pilgrim) on Jun 20, 2002 at 18:55 UTC | |
|
Re: seeking sendmail enlightenment
by blahblahblah (Priest) on Oct 02, 2002 at 04:27 UTC |