Home » Infrastructure » Unix » Sending attachment and body in Email
Sending attachment and body in Email [message #97775] Mon, 20 January 2003 06:56 Go to next message
Raghu K
Messages: 1
Registered: January 2003
Junior Member
I am using AIX system. I am trying to send an Attachment to
an Email with some text in the body. I could manage to send
attachment with an Empty Email body or Email body with no
attachment.

Can somebody help me out!!!

Thanks in advance :)
Re: Sending attachment and body in Email [message #97797 is a reply to message #97775] Mon, 03 February 2003 22:00 Go to previous message
Ra
Messages: 5
Registered: March 2001
Junior Member
Here is an example... I tried to clean up the unwanted items... so hopefully it helps... if not... I can give you a more thorough example:

email_with_attachment () {
uuencode attachment_file.txt > attachment.txt
cat email_msg.txt attachment.txt > combined.txt
mailx -s "email with attachment" $DBAMAIL < combined.txt
rm attachment.txt
# rm combined.txt
}
Previous Topic: Re: Upgrade from 5.0 to 8.0
Next Topic: how not to use unix2dos
Goto Forum:
  


Current Time: Thu Apr 25 04:25:11 CDT 2024