--sending email.
--when i look at the example from perldoc -q 'mail' i get
the example:
Use the `sendmail' program directly:
open(SENDMAIL, "|/usr/lib/sendmail -oi -t -odq")
or die "Can't fork for sendmail: $!\n";
print SENDMAIL <<"EOF";
From: User Originating Mail <me\@host>
To: Final Destination <you\@otherhost>
Subject: A relevant subject line
Body of the message goes here after the blank line
in as many lines as you like.
EOF
close(SENDMAIL) or warn "sendmail didn't close nicely";
--but when i try to use the example, my messages are:
[excerpt]
In string, @server now must be written as \@server at ./email_sys_users.pl
line 17, near "@server"
In string, @bcbsm now must be written as \@bcbsm at ./email_sys_users.pl
line 17, near "@server.fred.com
email: admin@fred"
Execution of ./email_sys_users.pl aborted due to compilation errors.
[/excerpt]
--so, even if i put the '\' in front of the '@', i get the same message.
which leads me to believe that just '\' isn't the answer. so ... i
must be missing something.
--the docu also says something about -oi stops sendmail from
thinking the '.' is the end of message.
-X
-----Original Message-----
From: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
On Wed, 12 Dec 2001, Johnson, Shaunn wrote:
> Where can i find documentation about using email
> addresses in perl scripts?
What is you are trying to do? Are you parsing email addresses, sending
email, harvesting email?
-- Brett