Re: Attaching to an email



In article <1147989565.081455.142830@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
<cylurian@xxxxxxxxx> 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@xxxxxxxxx\', ;

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
.



Relevant Pages

  • Re: [WR] round tuits
    ... Jackson Pillock wrote: ... I do, too many projects going, not enough time, priorities lean toward ... I started writing a precinct drama set in a locked psychiatric ward. ... Sent off my script. ...
    (misc.writing)
  • Re: Vinca script, cross bar angle - Ki Ri Ke
    ... of the Goddess, since the English title of the second book ... sacred script in The Goddesses and Gods of Old Europe, ... not exactly a scholarly publisher. ... writing scholars call "ideograms," and hence not as writing. ...
    (sci.lang)
  • Re: Vinca script, cross bar angle - Ki Ri Ke
    ... writing to anyone who studies writing carefully. ... Numbers are part of every language, ... you read chapter 8, The Sacred Script, of The Civilization ... The Language of the Goddess is about symbols "only." ...
    (sci.lang)
  • DVD Burning Problem
    ... The script just takes the database entries as well as ... and transfers them into the DVD. ... backing up, I'm pulling up the recording.log to make sure that it's ... Writing: Primary Volume Descriptor Start Block 16 ...
    (RedHat)
  • Re: random selection
    ... into consideration when writing the querry. ... query requirement. ... >I'm also surprised that you're joining on posteddate... ... I have written the following script to select ...
    (microsoft.public.sqlserver.server)