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: crisis Perl
    ... As to writing good code to begin with, ... the top of the script. ... the "use warnings;" line won't actually change ... recommended declaring variables IN AS SMALL AS SCOPE AS POSSIBLE. ...
    (comp.lang.perl.misc)
  • Marginally archaeaology: Eight scripts that still cant be read
    ... WRITING is one of the greatest inventions in human history. ... literate civilisation at the time of the ... So how do you decipher an unknown script? ... there must be some link to a known language. ...
    (sci.archaeology)
  • 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)