09-08-2009
e-mail with multiple binary attachments!
Hi,
I have to send email from UNIX with multiple excel attachments and the sender name needs to be customized (sender name need not to be UNIX user).
I have checked many ways from this forum and other sources. But, nothing did work for me.
Please help me!
thanks,
Raja.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm writing scripts on HP-UX. Is there a way to attach a file to a mail message. I don't want to imbed the data in the mail message. (1 Reply)
Discussion started by: Multithreaded
1 Replies
2. UNIX for Dummies Questions & Answers
Hi ,
i have tried the following command to send an email with an attachment
its working fine but i am getting mail with the embeded content inside the mail that too truncated.
i wanted it as an attachment.
/usr/lib/sendmail -F "MAC SIA" address "rajendra@abc.com.sg" -t <... (6 Replies)
Discussion started by: rajendragora
6 Replies
3. AIX
Hi,
How can I send mail attachments from shell script (AIX) and have a mail body as well ?
Thanks in advance. (1 Reply)
Discussion started by: shibajighosh
1 Replies
4. Solaris
I want to send a mail with three attachments, but nothing happened. I tried it with mail and mailx.
Are there special options for these commands or is it not possible to send mails under Solaris with attachments? Must there be special adjustments in the environment?
Can anyone give an... (6 Replies)
Discussion started by: ninjadan
6 Replies
5. UNIX for Advanced & Expert Users
Hi ,
Whenever I try to send mails with attachments to external email Id's the attachment is not encoded properly which appears along with body (text) of the mail.
The attachement is always getting corrupted. Can anyone please suggest a solution.
Regards,
Sandipan (1 Reply)
Discussion started by: Sandipan
1 Replies
6. Shell Programming and Scripting
Hi everyone...
I am facing problem with the multiple mail attachments.
cd /work/mohan/pi_log/
mail_file='uuencode ahmedabad.csv ahmedabad.csv ; uuencode ahmedabad_devrpt_20110530.csv ahmedabad_devrpt_20110530.csv'
( $mail_file ) | mailx -m -s"test" domain@website.com
its giving me error... (1 Reply)
Discussion started by: mohanm
1 Replies
7. Shell Programming and Scripting
:wall:hi all,
please somebody can help me out in reading the pop3 mail attachments or saving it locally
i have a mail account where i receive .csv attachments i need to read that attachments and process them.
any sample code can be much appriciated
Removed email
:wall: (3 Replies)
Discussion started by: srikanthkadapal
3 Replies
8. Shell Programming and Scripting
Hi,
I need to send a mail with html code in body and an attachment along with the body and subject.
The html code must display a table with data in it in the mail.
I have tried the 'sendmail' command, but I am am able to display the table in the mail and unable to attach an attachment.
... (5 Replies)
Discussion started by: Durga Prasad NK
5 Replies
9. Red Hat
We don't have uuencode installed in our machines..... Please tell me how to send mail with multiple attachments ??? URGENT !!!!!
Please tell me using command line (or) scripts..........
please......
Thanks in Advance.... (1 Reply)
Discussion started by: vamshigvk475
1 Replies
10. Shell Programming and Scripting
Hi,
i try to send two (multiple) files by the mail-console-command
mail -s TEST -a f1.pdf f2.pdf n.ame@ms123.de
but it doesn't work. can someone give me a hint?
Thanks in advance,
IMPe (2 Replies)
Discussion started by: IMPe
2 Replies
LEARN ABOUT DEBIAN
mail::sendeasy
Mail::SendEasy(3pm) User Contributed Perl Documentation Mail::SendEasy(3pm)
NAME
Mail::SendEasy - Send plain/html e-mails through SMTP servers (platform independent). Supports SMTP authentication and attachments.
DESCRIPTION
This modules will send in a easy way e-mails, and doesn't have dependencies. Soo, you don't need to install libnet.
It supports SMTP authentication and attachments.
USAGE
OO
use Mail::SendEasy ;
my $mail = new Mail::SendEasy(
smtp => 'localhost' ,
user => 'foo' ,
pass => 123 ,
) ;
my $status = $mail->send(
from => 'sender@foo.com' ,
from_title => 'Foo Name' ,
reply => 're@foo.com' ,
error => 'error@foo.com' ,
to => 'recp@domain.foo' ,
cc => 'recpcopy@domain.foo' ,
subject => "MAIL Test" ,
msg => "The Plain Msg..." ,
html => "<b>The HTML Msg...</b>" ,
msgid => "0101" ,
) ;
if (!$status) { print $mail->error ;}
STRUCTURED
use Mail::SendEasy ;
my $status = Mail::SendEasy::send(
smtp => 'localhost' ,
user => 'foo' ,
pass => 123 ,
from => 'sender@foo.com' ,
from_title => 'Foo Name' ,
reply => 're@foo.com' ,
error => 'error@foo.com' ,
to => 'recp@domain.foo' ,
cc => 'recpcopy@domain.foo' ,
subject => "MAIL Test" ,
msg => "The Plain Msg..." ,
html => "<b>The HTML Msg...</b>" ,
msgid => "0101" ,
) ;
if (!$status) { Mail::SendEasy::error ;}
METHODS
new (%OPTIONS)
%OPTIONS:
smtp
The SMTP server. (Default: localhost)
port
The SMTP port. (Default: 25)
timeout
The time to wait for the connection and data. (Default: 120)
user
The username for authentication.
pass
The password for authentication.
send (%OPTIONS)
%OPTIONS:
from
The e-mail adress of the sender. (Only accept one adress).
from_title
The name or title of the sender.
reply
E-mail used to reply to your e-mail.
error
E-mail to send error messages.
to Recipient e-mail adresses.
cc Adresses to receive a copy.
subject
The subject of your e-mail.
msg The plain message.
html
The HTML message. If used with MSG (plain), the format "multipart/alternative" will be used. Readers that can read HTML messages will
use the HTML argument, and readers with only plain messages will use MSG.
msgid
An ID to insert in the e-mail Headers. The header will be: Msg-ID: xxxxx
anex
Send file(s) attached. Just put the right path in the machine for the file. For more than one file use ARRAY ref: ['file1','file2']
** Will load all the files in the memory.
zipanex
Compress with zip the ANEX (attached) file(s). All the files will be inside the same zip file.
If the argument has the extension .zip, will be used for the name of the zip file. If not, the file will be "anex.zip", and if exist
only one ANEX, the name will be the same of the ANEX, but with the extension .zip.
** Need the module Archive::Zip installed or the argument will be skipped.
** This will generate the zip file in the memory.
SEE ALSO
Mail::SendEasy::SMTP, Mail::SendEasy::AUTH, HPL.
This module was created to handle the e-mail system of HPL.
AUTHOR
Graciliano M. P. <gm@virtuasites.com.br>
I will appreciate any type of feedback (include your opinions and/or suggestions). ;-P
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.4 2011-09-18 Mail::SendEasy(3pm)