Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Send a mail with an attachement of a file Post 25006 by gaddeg on Tuesday 23rd of July 2002 01:07:02 PM
Old 07-23-2002
Send a mail with an attachement of a file

I wanted to try sending a mail with an attachement at command prompt in unix. Some one please advise that how we can do it ?

Thanks, Smilie
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Send a mail with a subject and an attachement

Dear All: I want to send a message to a list of people with a subject and an attachement, currently I am using the following command into a shell script: uuencode $FILENAME.gz $FILENAME.gz | mail john.kennedy@mycompany.com m.m@mycompany.com With this command I can send the message for a... (1 Reply)
Discussion started by: josecollantes
1 Replies

2. Shell Programming and Scripting

How to send Mail with Attachement

Hi Can somebody help me in wirting shell script in the following way.Desperately i have poseted this.. 1.How can I connect to Oracle(Sqlplus) from UNIX. 2.After connecting to it I have to execute an oracle proceudure.. 3.Execution of the procedure will give some set of rows.. 4.The set of... (6 Replies)
Discussion started by: chgopi
6 Replies

3. UNIX for Dummies Questions & Answers

Send email with attachement-Getting connection refused by domain

Hi all, I am a newbie to unix. I need to send an email with an attachment in unix to some id like abc@some_company.com Code i have used is ------------Code--------------------------- #!/bin/ksh set -x #set -n #cript: unix_mail_withattachments.ksh # Aurthor: Ravin Maharaj #... (1 Reply)
Discussion started by: samuelc
1 Replies

4. Shell Programming and Scripting

How to send a mail with attachement as well as message Body..?

Hi all, i am working with CSH, i want to know that how to send a mail in UNIX shell script (CSH) with attachment as well as message body. i know that how to send a mail with attachment and message body. but i want know both things in a single mail Suggession would be appreciate. ... (1 Reply)
Discussion started by: psiva_arul
1 Replies

5. Shell Programming and Scripting

query about Attachement in mail

Hi All, I have general query that ...in my script i used uuencode option like below. cd /location (cat test.txt uuencode test.csv test.csv ) | mail -s "test mail" "mail_id" but whenever i run the above command its giving error like below ./testscript.sh: uuencode not found: ... (1 Reply)
Discussion started by: Shahul
1 Replies

6. Shell Programming and Scripting

attachement through mail command

Can't attach text files to 'mail' command. I dont have mutt or mailx to use on my server. so i have to use mail command any help would be great. Regards, Kiran (1 Reply)
Discussion started by: dddkiran
1 Replies

7. Shell Programming and Scripting

sending attachement in mail

Hi , I am using the below code to send mail through a script which run as a cron job. msgdate=`date +"%a, %e %Y %T %z"` daemail=$(cat <<! From: $from To: $emailtarget Subject: $subject Mime-Version: 1.0 Content-Type: multipart/mixed; Content-Disposition: inline $priority $CONTENT !)... (2 Replies)
Discussion started by: ahamed
2 Replies

8. UNIX for Dummies Questions & Answers

How to send html file in a mail not as an attachment but it should display in the mail in table for

Hi The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment . cat Employee.sql SET VERIFY OFF SET PAGESIZE 200 SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON - HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies

9. Solaris

Send file attachement in mail

Hello, I am able to attache the file in UNIX/LINUX script using following code. MAILFORMAT="Please do not replay this mail.This mail is auto generated." echo -e $MAILFORMAT | mailx -r autoreplay@gmail.com -a filename -s "status" xyz@gmail.com But same I am not able attache... (6 Replies)
Discussion started by: nes
6 Replies
mbot.conf(5)							File Formats Manual						      mbot.conf(5)

NAME
mbot.conf -- mbot configuration file SYNOPSIS
mbot.conf Description mbot.conf is organized in sections where you can associate handlers to mails. When mbot receive a mail, it will search for a section having a name which match the mail subject, then use the associated handler. So the name of the section will depend on the subject to use, and the parameters to be defined in this section will depend on the selected han- dler. Here is a list of available handlers: GoogleHandler Used to perform some search with the well known search engine UrlHandler This one allows to download some url and attach its content to the return mail, with the mime type properly set. NewsHandler You can also send some news (with images) to mbot, it will fill your database with it. Currently supported RDBMs are PostgreSQL and MySQL, so you will have to choose between PgNewsHandler and MyNewsHandler. PipeHandler This one will make mbot call an arbitrary given command! Default and common options For each section we have a common option who's: HANDLER This option define for the current section which Handler will be used. WHITE_LIST Here we define which are the e-mail addresses allowed to use associated Handler. Only e-mails are stored here, like this: name@domain.tld. If no BLACKLIST is defined then the sender MUST be in this list otherwise mail will be rejected BLACK_LIST This list contains blocked emails. If sender is in this list, mbot won't be allowed to handle the request. If BLACK_LIST exists but not WHITE_LIST then every sender who's not in this list will be allowed to use this Handler. The format of the list is: ["email@domain.tld", "email2@anotherdom.tld"]. It's the same as WHITE_LIST. Default options: MBOT_ADDRESS Email address used in the response. LOG_LEVEL Here we tell the Logger which level we want to log to syslog. Those levels are, from lower to higher, emerg - alert - crit - err - warning - notice - info - debug. Handler's options GoogleHandler's options: HOST This is the first for this Handler, it define the host for the searching engine. BASE_URL Define here the string that is usually used by the searching engine. UrlHandler's options: MAILSIZE This option define the maximum mail size while mbot fetch url, sender will receive error message if mail size exceed this value. ATTSIZE For each attachement we define a size behind which mbot will raise an error. NewsHandler's options: HOST This is the FQDN for the database server. DB The name of the database. DB_USER Username to add entry into database. NEWS_TBL Name of the table used by the Handler. NEWS_TBLSQ Name of the sequence table used by the Handler. Usually used with Postgres server's. ATTACH_PATH Used if sender attach an image with his mail, in this directory mbot will resize image to store it as normal and thumb- nail size into database. tnX and tnY These are the options for thumbnail resizing. SITE This is a list in which mbot will select the site according to the receiver email. It will be used to feed the data- base. PHOTO_TBL This option is optionnal, it will be used only if you want to have pictures associated to news. PHOTO_TBLSQ Name of the sequence table used by the Handler for the photo table. Usually used with Postgres server's. Note that there is no option for PipeHandler. Bugs Please report bugs to the authors. See Also mbot(1) Authors mbot was writen by Dimitri Fontaine dim@tuxfamily.org and Christophe Truffier nah-ko@tuxfamily.org. mbot.conf(5)
All times are GMT -4. The time now is 05:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy