06-14-2013
Well, awk and sed can do that: awk can collect data in variables for later printing, and sed can get the whole block in the buffer using N. then pick out values with an s to build the shell wrapper with mail command.
We need requirements that define the subject and email address.
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
cufilter
CUFILTER(1p) User Contributed Perl Documentation CUFILTER(1p)
NAME
cufilter - Filter emails through Mail::CheckUser
SYNOPSIS
Add the following lines to your ~/.procmailrc:
# Filter mail through Mail::CheckUser
:0f
| /usr/bin/cufilter
DESCRIPTION
When email messages are filtered through this program using the procmail settings as outlined in the SYNOPSYS, the email address in the
"From:" header is passed through Mail::CheckUser to ensure validity. If there is a problem with the email address, the "Subject:" header
is modified to show which email address failed along with the failure reason. No messages are lost, but it provides an easy way for the
mail client to organize, sort, or filter based on the subject tweaks.
EXAMPLES
Lets say a spammer sends a message with the following headers:
From: god@heaven.org
To: you@host.com
Subject: Happy Pill
Then the new headers might change to the following:
From: god@heaven.org
To: you@host.com
Subject: [CU!god@heaven.org!DNS failure: SERVFAIL] Happy Pill
This makes it easy to filter for mail clients.
INSTALL
This file can be installed into /usr/bin/cufilter and is intended to be utilized through the procmail functionality by adding the following
lines to your ~/.procmailrc configuration.
# Filter mail through Mail::CheckUser
:0f
| /usr/bin/cufilter
AUTHORS
Rob Brown bbb@cpan.org
COPYRIGHT
Copyright (c) 2003 Rob Brown bbb@cpan.org. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
$Id: cufilter,v 1.3 2003/09/18 15:36:26 hookbot Exp $
SEE ALSO
Mail::CheckUser(3), procmail(1).
perl v5.14.2 2012-03-10 CUFILTER(1p)