PERL in Win32

Where can I find Attachment module for Sendmail ?
LVL 1
tanc02Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

guadalupeCommented:
Goto cpan and get MIME-Lite, it will handle all your attachment needs.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tanc02Author Commented:
do you mind give me the whole URL to that site ?
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

tanc02Author Commented:
ok, I saw the document, but can you tell me how to use this :

  attach $msg Type     =>'image/gif',
                      Path     =>'aaa000123.gif',
                    Filename =>'logo.gif';

Can you write a simple html or perl that can
send an attachment . Points will increase to 50.

Thanks !
0
tanc02Author Commented:
Adjusted points to 50
0
tanc02Author Commented:
ok, I saw the document, but can you tell me how to use this :

  attach $msg Type     =>'image/gif',
                      Path     =>'aaa000123.gif',
                    Filename =>'logo.gif';

Can you write a simple html or perl that can
send an attachment . Points will increase to 50.

Thanks !
0
guadalupeCommented:


    # Create a new multipart message:
    $msg = new MIME::Lite
                From    =>'me@myhost.com',
                To      =>'you@yourhost.com',
                Cc      =>'some@other.com, some@more.com',
                Subject =>'A message with 2 parts...',
                Type    =>'TEXT',
                Data    =>"Here's the GIF file you wanted";  
   
    # Attach a part:
    attach $msg Type     =>'image/gif',
                Path     =>'aaa000123.gif',
                Filename =>'logo.gif';
0
tanc02Author Commented:
Sorry ! I should make my point clear.



   attach $msg Type     =>'image/gif',
                       Path     =>'aaa000123.gif',
                     Filename =>'logo.gif';

the attachment is fixed based on above script, right ?
What I want is I can select the file. Like I hit the browse button, then an 'open' window will pop out
and from that open window, I can select the file .
0
guadalupeCommented:
Uploading a file is a whole other question but once you have it on your local file system and can identify it do this:

$filepath = "some_path";

$filename = "some_name";

Then:

attach $msg Type     =>'image/gif',
                       Path     =>"$filepath",
                     Filename =>"$filename";

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Perl

From novice to tech pro — start learning today.