Sponsored Content
Top Forums Shell Programming and Scripting Represent the data in table format as in mail content Post 302780841 by franzpizzo on Friday 15th of March 2013 07:17:03 AM
Old 03-15-2013
Hi: create a file.html and execute this code
Code:
DEST=address@dest.com
CC=address@cc.com
FROM="Sender"
SUBJECT="Subject"
BODY=`cat file.html`
cat << _MAIL_ | /usr/lib/sendmail -F "${FROM}" -f "${FROM}" "${DEST}"
Subject:${SUBJECT}
CC:$CC
Content-Type: text/html;
$BODY
_MAIL_

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Arrange Data in table and send by mail

Everybody, can you tell me how express about this; we have text data file as : parameter1 Parameter2 AA 55 BB 77 . . . . . . We want to draw table for this data as attached then send as body of Email (4 Replies)
Discussion started by: xjklop2009
4 Replies

2. 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

3. Shell Programming and Scripting

sending mail using Mailx with data from oracle table

Hi, i need to send emails to the mail ids i receive using the sql query . SELECT L.ALARM_DEF,L.CRITERIA,L.DISTANCE_METRE,L.EMAIL,L.LAC_ID,L.LAST_CHECK,L.RANGE, L.RESOURCE_MSISDN,LM.ADDRESS,LM.NAME FROM LANDMARK_ALARM_CONF l, LANDMARK lm WHERE L.LANDMARK_ID=LM.LANDMARK_ID AND... (0 Replies)
Discussion started by: aemunathan
0 Replies

4. Shell Programming and Scripting

Perl Script for reading table format data from file.

Hi, i need a perl script which reads the file, content is given below. and output in new file. TARGET DRIVE IO1 IO2 IO3 IO4 IO5 ------------ --------- --------- --------- --------- --------- 0a.1.8 266 236 ... (3 Replies)
Discussion started by: asak
3 Replies

5. Shell Programming and Scripting

Help with perl script to output data in table format...

Hello, I need help with a perl script that will process a text file and match virtual server name to profile(s). the rest will be ignored. Virtual server name follows the word "virtual" in the begging of the line. There could be multiple profiles assigned to one virtual server. For example, ... (3 Replies)
Discussion started by: besogon
3 Replies

6. Shell Programming and Scripting

Need to represent a number in 99999999 format(8 digits)

Hi all, i have to create a file having an 8-digit sequence number, that will start by name file_00000001.cvs at first time, the next day the file will be named file_00000002.cvs and so on. How can i do this in my script please, specially that i will need a counter that increments this number... (10 Replies)
Discussion started by: Eman_in_forum
10 Replies

7. Programming

C Data Structure to represent a Sparse Array

Which data structure will be most appropriate to represent a sparse array? (1 Reply)
Discussion started by: rupeshkp728
1 Replies

8. Shell Programming and Scripting

Mailx command - send mail as table format

I have to send a couple of rows that have been returned from a SQL query. I have written the output of the query to a file and while i try to print this in the mail body the formatting goes wrong. Intended Output in mail body: Col1 Col2 Col3 ------ ... (2 Replies)
Discussion started by: qwertyu
2 Replies

9. Shell Programming and Scripting

Take Data From a table and send it through mail

Hi can anyone help me in writing a code for taking data from a table and need to send that data through mail using mail -x command.. (3 Replies)
Discussion started by: ginrkf
3 Replies

10. Shell Programming and Scripting

Common Issue: Table to be displayed in mail content and not as an attachment

The requirement is to send a report from an UNIX server. I have a list of data to be shown on the report, say from database. I am using sendexchange to send mail and it always send in plain text fromat and the data displayed are not aligned properly. I have seperated all the columns with fixed... (14 Replies)
Discussion started by: PikK45
14 Replies
vacation(1)						      General Commands Manual						       vacation(1)

NAME
vacation - Informs senders of mail that recipient is absent SYNOPSIS
vacation -I The vacation command returns a message to the sender of a mail message, saying that the recipient is on vacation or otherwise absent. OPTIONS
Initializes the $HOME/.vacation.pag and $HOME/.vacation.dir files. Execute this option before you modify your $HOME/.forward file. DESCRIPTION
The vacation command accepts standard input and attempts to send a vacation message to the user specified in that input, which should be a mail message. The vacation command is usually invoked in your $HOME/.forward file, which is used to forward your mail to another username. When you want vacation messages to be sent to users who send you mail, enter the following in your $HOME/.forward file: user, "|vacation user" Replace user by your username. This allows mail sent to you to be both received by you and piped to the vacation command; vacation reads the mail message, determines the sender, and sends a reply. The sender receives a vacation message, and the original mail is waiting in your mailbox when you return. When vacation is invoked without the -I option, as in the file, it reads the first line from the standard input for a From line to deter- mine the sender. If this is not present, an error message is produced. (All properly formatted incoming mail should include a From line.) No vacation message is sent if the From header line indicates that the message is from Postmaster; from MAILER-DAEMON; if the initial From line includes the string -REQUEST@; or if a Precedence: bulk or Precedence: junk line is included in the header. You must initialize vacation for your username by issuing the command vacation -I before you can use the vacation command. The vacation command expects a $HOME/.vacation.msg file containing a message to be sent back to each sender. The file should be an entire message, including any desired headers, such as From or Subject. This message will be sent only once a week to each unique message sender. (If this file does not exist, vacation uses /usr/share/lib/vacation.def, a system-wide default vacation message, if it exists.) The names of people who have sent you messages are kept in the files $HOME/.vacation.pag and $HOME/.vacation.dir. These files are created when you initialize vacation for your username with vacation -I. EXAMPLES
If your username is myra and you want to send a message once a week to each person who has sent you mail, initialize vacation by entering: vacation -I Next, add the following line to your $HOME/.forward file (create this file if it does not exist): myra, "|vacation myra" If you want to send a vacation message other than the system default message in /usr/share/lib/vacation.def, create the file in your home directory and enter the message in it. For example: From: myra@k.table (Myra Louise Minter) Subject: I am on vacation. Delivered-By-the-Graces-Of: the Vacation program I am on vacation until October 1. If you have something urgent, please telephone Lucy or Sue. -- Myra FILES
System-wide default vacation message. Contains address to which mail is forwarded. Contains the names of people who have sent you mail while the vacation command was being used. Contains the names of people who have sent you mail while the vacation command was being used. Contains your personal vacation message. SEE ALSO
Commands: mail(1), mailx(1), sendmail(8) vacation(1)
All times are GMT -4. The time now is 08:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy