For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > May 2006 > Attaching to an email









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Attaching to an email
cylurian@gmail.com

2006-05-18, 6:59 pm

I'm creating a CGI script for my webpage.

I'm using the Mail:Sendmail module

So far I have this:

%mail = (TO => \'fromero@csudh.org\', ;

message => \"Test\" );

sendmail(%mail);

Can someone tell me how to continue writing the script so I can attach
a file (file.txt) to this email.

Thanks

Jim Gibson

2006-05-18, 6:59 pm

In article <1147989565.081455.142830@i39g2000cwa.googlegroups.com>,
<cylurian@gmail.com> wrote:

> I'm creating a CGI script for my webpage.
>
> I'm using the Mail:Sendmail module
>
> So far I have this:
>
> %mail = (TO => 'fromero@csudh.org', ;
>
> message => \"Test\" );
>
> sendmail(%mail);
>
> Can someone tell me how to continue writing the script so I can attach
> a file (file.txt) to this email.


The documentation for Mail::Sendmail reveals the following reference:

<http://alma.ch/perl/Mail-Sendmail-FAQ.html#attachments>

I would also look on CPAN ( <http://search.cpan.org> ) for other mailer
modules that make sending attachments easier, such as MIME::Lite.

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com