[H-GEN] Email "from"
Christopher Biggs
chris at stallion.oz.au
Mon May 10 23:11:48 EDT 1999
(Note reply-to: being general at humbug.org.au vs Christopher Biggs <chris at stallion.oz.au>)
Luke Grant <skywalke at webexpress.net.au> moved upon the face of the 'Net and spake thusly:
> (Note reply-to: being general at humbug.org.au vs "Luke Grant" <skywalke at webexpress.net.au>)
>
> hey guys,
>
> I have written an email CGI for this particular customer and he specificaly
> wants it in perl so he can update it.
>
> Anyways, i need to be able to get the from:blah at host.blah to be
> configurable.
> unfortunately i can't work out how to do this in perl.....
>
> i currently have the email being sent in the following format.
bypass /bin/mail.
Inject your message straight to sendmail.
open (PIPE,"|sendmail -t");
print PIPE "To: Someluser\n";
print PIPE "From: someotherluser\n";
print PIPE "Subject: blah\n";
# etc. etc.
close PIPE; # mail gets sent now
Surely there's a Perl module to do this already! Check CPAN.
cjb
--
------------------ Linux hackers do it in protected mode -------------------
| Christopher Biggs - Software Engineer, Stallion Technologies, Australia |
| chris at stallion.oz.au - CEO, J.Random Deadguy Institute for Weird Studies |
------- Mathematics and alcohol don't mix --- Never drink and derive -------
--
This is list (humbug) general handled by majordomo at lists.humbug.org.au .
Postings only from subscribed addresses of lists general or general-post.
More information about the General
mailing list