06-14-2013
You want to forge a remote sender? I just wanted a recipient and subject.
In my experience, a time stamp somewhere in the subject is nice, for selecting email by subject, perhaps for sorting, too, "<General_topic>-Hostname-YYYY-MM-DD_HH:MM".
So, in awkish, you need to collect all lines of the block in a body variable and collect bits for the subject and recipient in two or more variables, and the after collecting the Created line, spit out the mail command and input data and maybe clean your variables. Or you can clear your variables on the first line of the block. If your recipient variable ends up empty, you might want to send to a default address with a 'DefectiveBlock:' prefixed subject.
Last edited by DGPickett; 06-14-2013 at 03:24 PM..
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi, I am trying to include a message along with an attachment with an email using mailx on AIX.
uuencode Test.dat Test.dat| mailx -s 'Testing' mymail@yahoo.com < MESGFILE
This only gives me the contents of MESGFILE as my message.
If I remove the < FILE I recieve the attachment.
What... (4 Replies)
Discussion started by: edog
4 Replies
2. UNIX for Dummies Questions & Answers
Friends,
I have a datafile that have unknown a number of CHARACTERS.
if the datafile have more than 1 character and less than 20
email me the file
rm datafile
if the datafile have more than 20 characters
split the datafile into 20 characters in each file
email datafileaa
email... (4 Replies)
Discussion started by: bobo
4 Replies
3. UNIX for Dummies Questions & Answers
I'm trying to install : Procmail 3.22
onto a : E10K domain
running : Solaris 2.6 Generic_105181-35
I untar the file to /stage/procmail-3.22.
When I run the command: /usr/ccs/bin/make install
I get the following message, then the install aborts:
License Error : Cannot find license... (2 Replies)
Discussion started by: antalexi
2 Replies
4. Shell Programming and Scripting
Hi All,
I want to send a message through email.
I have written below code. But it is not worling. Anybody has idea, why it is not working?.
export $file1=$home1/pip1.$$
mailx -s "This Message from unix" abc@yahoo.com< $file1
thanks,Mary. (5 Replies)
Discussion started by: MARY76
5 Replies
5. Shell Programming and Scripting
i have a file new1.txt
i want to send the contents of that file as a message to email ali@sms.com
i m using ksh script.........
plz help me (5 Replies)
Discussion started by: ali560045
5 Replies
6. Shell Programming and Scripting
I have created a script which will monitor disk space in unix, it will send an email alert that will notify the specified receipients. I used echo in the mailx command but the email doesnt contain any message. I have used printf to store the message ($message2) and when tried to display on the... (2 Replies)
Discussion started by: lscanaleta
2 Replies
7. UNIX for Dummies Questions & Answers
I am using mailx command to send emails from the Unix command prompt. Whenever email is not sent it is not giving me any message "Email not sent" or failure delivery notice for the wrong email addresses. When I give correct email address I am able to receive them correctly.
Can anyone please... (0 Replies)
Discussion started by: szc0025
0 Replies
8. UNIX and Linux Applications
ssmtp has been running well under Kubuntu 12.04.1 for plain text messages. I would like to send html messages with ssmtp -t < /path/to/the/message.txt, but I cannot seem to get the message.txt file properly formatted. I have tried various charsets,
Content-Transfer-Encoding, rearranging the... (0 Replies)
Discussion started by: Ronald B
0 Replies
9. Shell Programming and Scripting
I am making use of the following code to display the results of my txt file in an email:
mail -s 'Count Validation Test Comparison Results' Ronit@XYZ.com < Count_Validation_Results_`date +%m%d%Y`.txt
Email Output:
----------Query 1 Count Validation Results--------
Source count is 4
Target... (7 Replies)
Discussion started by: ronitreddy
7 Replies
LEARN ABOUT DEBIAN
net::dns::sec::tools::dnssectools
dnssectools(3pm) User Contributed Perl Documentation dnssectools(3pm)
NAME
Net::DNS::SEC::Tools::dnssectools - General routines for the DNSSEC-Tools package.
SYNOPSIS
use Net::DNS::SEC::Tools::dnssectools;
dt_adminmail($subject,$msgbody,$recipient);
$zspath = dt_cmdpath('zonesigner');
$ftype = dt_findtype($path);
DESCRIPTION
The dnssectools module provides a general set of methods for use with DNSSEC-Tools utilities.
INTERFACES
The interfaces to the dnssectools module are given below.
dt_adminmail(subject,msgbody,recipient)
This routine emails a message to the administrative user listed in the DNSSEC-Tools configuration file.
dt_adminmail() requires two parameters, both scalars. The subject parameter is the subject for the mail message. The msgbody
parameter is the body of the mail message.
A third parameter, recipient, may be given to specify the message's recipient. If this is not given, then the recipient will be taken
from the admin-email record of the DNSSEC-Tools configuration file. If recipient is "nomail", then no message will be sent and success
will be returned.
Return values:
1 - the message was created and sent.
0 - an invalid recipient was specified.
It relies on the the following dnssec-tools.conf configuration parameters:
admin-email
The email address that the mail should come from.
mailer-type
Should be one of: sendmail, smtp, qmail. This option is not required and will default to trying sendmail and qmail to deliever the
mail. If mailer-server is set to a defined value but mailer-type is not, then mailer-type will default to
mailer-server
The server, if admin-mail is set to smtp, that the mail should be delivered to.
dt_cmdpath(command)
This routine returns the path to a specified DNSSEC-Tools command. command should be the name only, without any leading directories.
The command name is checked to ensure that it is a valid DNSEC-Tools command,
Return values:
The absolute path to the command is returned if the command
is valid.
Null is returned if the command is not valid.
dt_filetype(path)
This routine returns the type of the file named in path. The rollrec and keyrec records contained therein are counted and a type
determination is made.
Return values:
"keyrec" - At least one keyrec record was found and no
rollrec records were found.
"rollrec" - At least one rollrec record was found and
no keyrec records were found.
"mixed" - At least one rollrec record and at least one
keyrec record were found.
This is most likely an erroneous file.
"unknown" - No rollrec records nor keyrec records
were found.
"nofile" - The specified file does not exist.
COPYRIGHT
Copyright 2006-2012 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details.
AUTHOR
Wayne Morrison, tewok@tislabs.com
SEE ALSO
Mail::Send.pm(3), Net::DNS::SEC::Tools::conf.pm(3)
POD ERRORS
Hey! The above document had some coding errors, which are explained below:
Around line 309:
=back without =over
perl v5.14.2 2012-06-28 dnssectools(3pm)