Sponsored Content
Top Forums UNIX for Advanced & Expert Users Attach a document in mail using sendmail command Post 302955468 by jgt on Thursday 17th of September 2015 01:25:20 PM
Old 09-17-2015
If you use the sendmail command to send an email, you have to build every line of the email yourself. Send yourself an email with an attachment from your regular mail client, then analyse the contents of your mailbox on the server (prior to retrieving it with either pop or imap.)
You will probably need the base 64 encoding and decoding programs. These are available in a variety of languages. https://en.wikipedia.org/wiki/Base64
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to attach a file in mail?

Hi, I want to know how to send a mail in unix using mailx or mail or sendmail to send a mail with a file attached. I have read the answers from the other threads but I still don't understand. I want to do it in the command line as well as in script. Can anyone help? DO I need to use... (1 Reply)
Discussion started by: firebirdonfire
1 Replies

2. UNIX for Dummies Questions & Answers

Howto Attach File with Sendmail

Hi, How can I attach a file using sendmail? I tried /A option like this: $ /usr/bin/sendmail toaddress@gmail.com /A afile.txt but doesn't seem to work. - Monkfan (2 Replies)
Discussion started by: monkfan
2 Replies

3. Shell Programming and Scripting

How to attach a file in Linux mail command

How to attach a file in Linux mail command Hi Guys, Is there any way to attach a file in Linux mail command without using "uuencode"? i.e. Code: file=/a/b/c/d/file.txtmail -s "Giga aks" abc@123.com <<HDoc`uuencode $file $file 2>/dev/null`HDoc Here, I don;t want to use 'uuencode'... (1 Reply)
Discussion started by: rohit22hamirpur
1 Replies

4. UNIX for Dummies Questions & Answers

How to set HIGH importance to a mail sent through mailx or sendmail command

I have written a script for sending automated email, reporting the running status of a cron scheduled work. Now, the issue is, my Project Manager wants, the mail should be received with HIGH IMPORTANCE. How can I do that, kindly anybody explain. Thank you so much. (3 Replies)
Discussion started by: mitte_dino
3 Replies

5. UNIX for Dummies Questions & Answers

Does the mail command use sendmail?

The question is, Does the mail comman actually send using sendmail or something else? So I am trying to test if sendmail is set up. I used... cat testemail.txt | mail -s "test mail" myemail@test.com I used my email though I didn't get an error, but didn't get the email either. ... (2 Replies)
Discussion started by: wondernate
2 Replies

6. Shell Programming and Scripting

Script to attach file to mail

Hello, I have a .dat file containing one line. I need a script to read that line and make it part of the body and send a mail... Let's say the line is $line. I need the script to send a mail with the body "The last disposal feed is $line". Thanks (4 Replies)
Discussion started by: sfetea
4 Replies

7. Shell Programming and Scripting

How to attach multiple file to send mail command

Hi, i want color effect on mail as well as multiple attachment.I have code but this code is used for single attachment. I am unable to attach more than one file.:wall: I want to send two attachments -ahmed.csv and ahmed1.csv . Sample content: <html> <body> <b> Hi...</b> </body> </html> ... (1 Reply)
Discussion started by: AhmedLakadkutta
1 Replies

8. UNIX for Dummies Questions & Answers

Sending mail in UNIX with body and attachment(.txt) using sendmail command

Hi All, In my .ksh script, I am sending an email with body and attachment (.txt) using sendmail command. I am able to receive the attachement along with the body of the mail. But I am getting special characters along with the content in the .txt. Also the alignment is incorrect. Can you please... (7 Replies)
Discussion started by: KRR
7 Replies

9. Shell Programming and Scripting

UNIX - how to send attach excel in mail

Hi Experts, i need your help here :confused: Need to send a report thru mail using unix shell script(AIX). can you help me to do this? . i tried "uuencode" with CSV format, but while reading report all values are in single column. i need each column values in separate cell. Thanks in... (9 Replies)
Discussion started by: newbieabc
9 Replies

10. Shell Programming and Scripting

Unable to attach a .txt file or .log file to mail and mailx command

Hi, I am trying to attach a .log file or .txt file to mail command to send an email once my ksh script executed. I am unable to use mutt command as it has been not installed and i am not supposed to install it. I have tried many ways by googling which has not helped me to succeed. Here is my... (5 Replies)
Discussion started by: Samah
5 Replies
Balsa(1)							   Gnome Manpage							  Balsa(1)

NAME
Balsa - the GNOME email client. DESCRIPTION
You can use Balsa to fetch, read, write and send e-mails. It supports * local mailboxes in maildir, mbox and/or mh format, * nested mailboxes, * protocols POP3, IMAP and SMTP, * multithreaded mail retrieval, * GnuPG/GPG encryption, LDAP, Kerberos and SSL, * MIME (view images, save parts), * multiple character sets, * GPE address book, * printing and spell-checking. Balsa is an integral part of the GNOME desktop environment, but it can also be used standalone though it may print some error messages then. For help on using Balsa, see the documentation in its help menu using Yelp Gnome 2 help/documentation browser. This man page tells about the options of the 'balsa' command, which is used to start Balsa. Most of these options let you tell Balsa that when it starts it should immediately open a mailbox, or the composer , and things like that. There is also an option to debug POP connections. When you start Balsa from the command line of an (x)terminal, not only can you use the command line options described below, any error messages are printed to that terminal too (whether you execute that command in the background or not). SYNTAX
balsa [ --help ] [ --version ] [ -c | --check-mail ] [( -m | --compose=)email-address ] [( -a | --attach=)filename ] [( -o | --open-mailbox=)mailbox[:mailbox]... ] [ -u | --open-unread-mailbox ] [ -d | --debug-pop ] [ -D | --debug-imap ] OPTIONS
-? , --help Displays a message describing command line syntax of Balsa, giving many more options than are presented in this man page; Balsa exits immediately after that. Some of these options work (and thus should be in this man page) for example --display , others may not - for example --disable-crash-dialog which is provided by GNOME GUI Library. --version Balsa prints its version and exits. -c , --check-mail Balsa starts and checks for new mail immediately. -i , --open-inbox Balsa starts and opens the Inbox. -m email-address , --compose=email-address When invoked with this option, Balsa will open its email-composer for a new message with the specified address in the To: field. The email-address parameter can be specified as user@host, e.g. balsa-list@gnome.org , or in URL format, e.g. "Balsa List <balsa-list@gnome.org>" . You can use Balsa as mailto protocol handler by, in the URL handlers section of the GNOME control center, setting the mailto protocol command to : balsa -m "%s" -a FILENAME , --attach=FILENAME When invoked with this option, Balsa will open its email-composer for a new message with the specified file already attached to the message. Example : balsa -a ~/balsa-new.1.gz -o MAILBOX, --open-mailbox=MAILBOX... This makes Balsa start and open the specified mailbox. The mailbox should be specified by its full URL. Example : balsa -o imap://user@mail.example.com/INBOX balsa -o file:///var/mail/user -u , --open-unread-mailbox Open all mailboxes that may contain unread messages. -d , --debug-pop Makes Balsa print the POP3 communication to stderr, including the full text of every message. The former can be useful for debugging POP3 connections. -D , --debug-imap Makes Balsa print the IMAP communication to stderr. This feature is useful for debugging IMAP problems. WEBSITE
Balsa's website is http://balsa.gnome.org SUGGESTIONS AND BUG REPORTS
Any bugs found in Balsa can be reported through the Balsa Developer mailing list at balsa-list@gnome.org , or the online bug-tracking system at http://bugzilla.gnome.org/ . See http://balsa.gnome.org/bugs.html for more information on reporting Balsa bugs. Before reporting bugs, please check to see if the bug is mentioned in the FAQ's or the mailing list archive http://mail.gnome.org/mailman/listinfo/balsa-list When reporting Balsa bugs, it is important to include * a reliable way to reproduce the bug, * version number of Balsa (as well as GTK and GNOME), * OS name and version, * any relevant hardware specs. If a bug is causing a crash, it is very useful if a stack trace can be provided. And of course, patches to rectify the bug are even better. AUTHORS
See the AUTHORS file included with Balsa, probably at /usr/share/doc/balsa-2.4.12/AUTHORS . FILES
~/.gnome2/balsa Balsa's preferences file. ~/.gnome2_private/balsa Balsa's POP and IMAP passwords file. /etc/sound/events/balsa.soundlist system-wide configuration file SEE ALSO
Package names given in parenthesis are Debian package names. mailcap (5) - metamail capabilities file (package: mime-support) metamail (1) - infrastructure for mailcap-based multimedia mail (package: metamail) sendmail (8) - a Mail Transfer Agent (package: exim4-daemon-light) yelp (1) - browse Gnome documentation (package: yelp) GNOME (1) - modern desktop environment (package: gnome-bin) COPYRIGHT
(c) 1997-2003 Stuart Parmenter and others, see AUTHORS for a list of people. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Version 2.4.12 03 January 2003 Balsa(1)
All times are GMT -4. The time now is 05:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy