08-02-2011
Mail with body
Hello All,
I wish to mail after completion of code. I would like to include subject and body in it. I am not looking to read the body from other file but willing to provide the body in the command itself. Can i do this way?
I am looking to pass some parameters to body and this will be possible if i provide the body at command line only. If i read the body from other file, i would not be able to provide these parameters.
Thanks in Advane.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
First of all: Hi all, i´m a new unix user and i´m swedish so please bare with me.
When i generate an e-mail on a unix server and send it through novell netware 5, i loose the swedish characters å, ä and ö in the body of the message, however they remain in the subject row.
What to do? Anyone?... (4 Replies)
Discussion started by: de98luto
4 Replies
2. UNIX for Dummies Questions & Answers
Hi,
How to send send body along with attachment in a mail
given below is code to send mail with attachemnt.its working fine
but i need to send some message as body of the mail.
uuencode /prod/applc/ds_data/mac/working/nullctry.csv "nullctry.csv" | mailx -s "List Of Attendance"... (6 Replies)
Discussion started by: rajendragora
6 Replies
3. AIX
Hi,
How can I send mail attachments from shell script (AIX) and have a mail body as well ?
Thanks in advance. (1 Reply)
Discussion started by: shibajighosh
1 Replies
4. Shell Programming and Scripting
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. Solaris
hi,
Can anyone please tell me how to add some text in the mail body like I can add subject using the following syntax.
mailx -s "Hi - This is mail subject" xyz@abc.com
Many Thanks. (4 Replies)
Discussion started by: abovais
4 Replies
6. Shell Programming and Scripting
Hi,
i have a file ABC, i want to mail the contents of this file and i want to make the body of the mail per my choice like this:
Hi All,
This is the Report for today.
<Browse of the File ABC>
i am using :
mailx -s "Today's Report" abcd@xyz.com << EOT
Hi All,
This is... (1 Reply)
Discussion started by: Prat007
1 Replies
7. Shell Programming and Scripting
How can I send mail with attachment in HP-UX
I am able to send mail with specific body,but not successful while attaching a file.
I am using the below command however it stuck :
uuencode test.txt |mailx -s "Subject" <e-mail id> (5 Replies)
Discussion started by: gautamadak
5 Replies
8. Shell Programming and Scripting
HI,
After giving the mail -e name@domain.com its asking the subject : after this its enter in to the body of the mail i.e. (in edit mode)
How to end this edit process to send mail ? (2 Replies)
Discussion started by: thelakbe
2 Replies
9. Shell Programming and Scripting
Hi all,
My sample file is something like this,
ORA-00206: Message 206 not found; product=RDBMS; facility=ORA
ORA-00202: Message 202 not found; product=RDBMS; facility=ORA
ORA-27063: Message 27063 not found; product=RDBMS; facility=ORA
ORA-00206: Message 206 not found; ... (1 Reply)
Discussion started by: sri1977
1 Replies
10. Shell Programming and Scripting
I have jpg file in my server. I am facing difficulty while sending the image in body . appreciate your help to fix to below code.
echo "--FILEBOUNDARY"
echo "Content-Type: image/jpg"
echo "Content-Disposition: inline; filename=\"tick.jpg\""
echo... (3 Replies)
Discussion started by: Jewel
3 Replies
LEARN ABOUT MOJAVE
mail::dkim::algorithm::base
Mail::DKIM::Algorithm::Base(3) User Contributed Perl Documentation Mail::DKIM::Algorithm::Base(3)
NAME
Mail::DKIM::Algorithm::Base - base class for DKIM "algorithms"
SYNOPSIS
my $algorithm = new Mail::DKIM::Algorithm::rsa_sha1(
Signature => $dkim_signature
);
# add headers
$algorithm->add_header("Subject: this is the subject 15 12");
$algorithm->finish_header;
# add body
$algorithm->add_body("This is the body. 15 12");
$algorithm->add_body("Another line of the body. 15 12");
$algorithm->finish_body;
# now sign or verify...
# TODO...
CONSTRUCTOR
You should not create an object of this class directly. Instead, use one of the DKIM algorithm implementation classes, such as rsa_sha1:
my $algorithm = new Mail::DKIM::Algorithm::rsa_sha1(
Signature => $dkim_signature
);
METHODS
add_body() - feeds part of the body into the algorithm/canonicalization
$algorithm->add_body("This is the body. 15 12");
$algorithm->add_body("Another line of the body. 15 12");
The body should be fed one "line" at a time.
add_header() - feeds a header field into the algorithm/canonicalization
$algorithm->add_header("Subject: this is the subject 15 12");
The header must start with the header field name and continue through any folded lines (including the embedded <CRLF> sequences). It
terminates with the <CRLF> at the end of the header field.
finish_body() - signals the end of the message body
$algorithm->finish_body
Call this method when all lines from the body have been submitted. After calling this method, use sign() or verify() to get the results
from the algorithm.
finish_header() - signals the end of the header field block
$algorithm->finish_header;
Call this method when all the headers have been submitted.
sign() - generates a signature using a private key
$base64 = $algorithm->sign($private_key);
signature() - get/set the signature worked on by this algorithm
my $old_signature = $algorithm->signature;
$algorithm->signature($new_signature);
verify() - verifies a signature
$result = $algorithm->verify();
Must be called after finish_body().
The result is a true/false value: true indicates the signature data is valid, false indicates it is invalid.
For an invalid signature, details may be obtained from $algorithm->{verification_details} or $@.
SEE ALSO
Mail::DKIM
AUTHOR
Jason Long, <jlong@messiah.edu>
COPYRIGHT AND LICENSE
Copyright (C) 2005-2007 by Messiah College
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or,
at your option, any later version of Perl 5 you may have available.
perl v5.18.2 2012-11-28 Mail::DKIM::Algorithm::Base(3)