tanc02
asked on
PERL in Win32
Where can I find Attachment module for Sendmail ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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 !
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 !
ASKER
Adjusted points to 50
ASKER
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 !
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 !
# 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';
ASKER
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 .
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 .
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";
$filepath = "some_path";
$filename = "some_name";
Then:
attach $msg Type =>'image/gif',
Path =>"$filepath",
Filename =>"$filename";
ASKER