ter-pierre Posted February 13, 2006 Posted February 13, 2006 Hi guys Any one knows how can I send a mail with an attached file?
Chipbug Posted February 13, 2006 Posted February 13, 2006 Hi guysAny one knows how can I send a mail with an attached file?I used the command line utility MPACK to create a MIME attachment and then use BMAIL to send the email with the attachment.http://www.beyondlogic.org/solutions/cmdli...cmdlinemail.htm
ter-pierre Posted February 14, 2006 Author Posted February 14, 2006 thanks Chipbug. I was trying to use MPACK, but i cant foud the correct syntax. I am trying to send an CSV file attached. Can you help me with the syntax? Pierre
dabus Posted February 14, 2006 Posted February 14, 2006 You could use Blat to do that. There are already some udfs for that program around here.
Chipbug Posted February 14, 2006 Posted February 14, 2006 thanks Chipbug.I was trying to use MPACK, but i cant foud the correct syntax.I am trying to send an CSV file attached.Can you help me with the syntax?PierreHere is an example. Let's say you have a CSV file called "test.csv" and you have another text file called "msgbody.txt" that represents the body text of your email.mpack -s "Test Message" -d msgbody.txt -c application/csv -o encoded.txt test.csvThis would create an encoded file call "encoded.txt" that combined your body text with the attachment (MIME type application/csv) with the subjust line "Test Message".Then you could use BMAIL to send the encoded message:bmail -s mail_server -t to_address@nothing.com -h -f from_address@nothing.com -m encoded.txtPlease note that MPACK and BMAIL seem to have problem with long file name. So make sure you sue 8.3 file name for all files passed to these programs.
Helios Posted February 14, 2006 Posted February 14, 2006 I use sendEmailhttp://caspian.dotconf.net/menu/Software/SendEmail/You do not have to encode an attachment with this one.Hi guysAny one knows how can I send a mail with an attached file?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now