Sponsored Content
Full Discussion: Mailx empty body message
Top Forums UNIX for Dummies Questions & Answers Mailx empty body message Post 302436279 by bbbngowc on Saturday 10th of July 2010 10:50:45 AM
Old 07-10-2010
Quote:
Originally Posted by methyl
This works:

Code:
echo ""|mailx -s "This is my subject" myemail@domain.com


Some spam filters will eat an email which contains no message.
You're right. This does work. Sweet.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

mailx error message : mailx: NUL changed to @

If I use the "Mail" link instead of the "mail" link to ../mailx I get this error. Mail so-n-so @whatever.com mailx: NUL changed to @ Unknown command: "postmaster" The email still goes through but i get the error. If I use "mail" it goes thru without the error. Any ideas?? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

2. UNIX for Dummies Questions & Answers

MAILX Body containing SQL results

I have a KSH script that runs a SQL script, then sends an email to me indicating that it's completed. I would like to modify it so that the body of the email will contain a count of the number of records Added, Changed, Deleted as a result of the SQL script. Here's what I was trying, but it's... (2 Replies)
Discussion started by: dstinsman
2 Replies

3. Shell Programming and Scripting

mailx: concatenating strings for message body (KSH)

Hi all, Think this is a pretty simple problem, but I've been thinking about it for a few days. Let's say that I'm going to have to output the contents of a file as the body of a mailx message. I'll probably do this: cat <filename> | mailx <extra commands> However, how do I go about doing... (1 Reply)
Discussion started by: rockysfr
1 Replies

4. UNIX for Dummies Questions & Answers

Mailx : can we have the body to be a binary file ?

Hi I am totally dummy as far as UNIX is concerned, so please apologize. I was just given the syntax to send multiple attachments with a body.txt message, it works great and we use it a lot. Now, my question is : can we have the body to be a Binary file (like a Word Document for example)? ... (5 Replies)
Discussion started by: CKIRCH
5 Replies

5. Solaris

mailx on solaris - How to add mail body

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. UNIX for Dummies Questions & Answers

mailx and html body messages

Hi, I'm working on Solaris 9 (SPARC) and I like to send an html body message to our users when something happen. The problem is that I can't find how to give mime type information with mailx. To be recognized as html I need to put in email header this information: Mime-Version: 1.0... (2 Replies)
Discussion started by: gbagagli
2 Replies

7. Shell Programming and Scripting

send attachment and body in one mail using mailx

Hi, Our requirement is to send an attachment and content in a single mail. I am using the below command to send attachement. --------------------- (uuencode $exp_file $exp_file) |mailx -s "$email_subject" $EmailRecipients -------------------- I m not able to send any message in the... (4 Replies)
Discussion started by: ashwin3086
4 Replies

8. Shell Programming and Scripting

The body of the Email -- mailx

Hi, I am using mailx command to send an email and i took the body of the email from a file, mailx -r gtt.org -s "Status Report " ss@org.com < $ProcessStatisticsFile but now i want to declare the body of the email in the command itself. I have tried with the following command but... (4 Replies)
Discussion started by: chinnu01
4 Replies

9. Shell Programming and Scripting

Need to print body of content using mailx

Hi, I'm a perl developer. I need to attach a file from my perl cgi script and send mail to our users whoever using our website. I have used mailx command to attach a file.. it is working fine for me. The problem I'm facing is I'm not getting body of the mail. I have a function called... (0 Replies)
Discussion started by: bheeshmaraja
0 Replies

10. Shell Programming and Scripting

Mailx with attachment and message body

i have to attach the 'body in the email' along with attachment below code is throwing errors, how can i do it ? here body file contains message, it should display in email, please help i am using HP-UX (cat body ;) (uuencode attch1 attch1 ;) | mailx -m -s "testing" "abc@gmail.com" ... (4 Replies)
Discussion started by: only4satish
4 Replies
newsbody(1)							   User Manuals 						       newsbody(1)

NAME
newsbody - Run a program on the body of a mail or news message SYNOPSIS
newsbody [-fhqsv] [-k headername ] -n message -p program [-- [ arguments... ]] DESCRIPTION
newsbody copies the body of a news or email article in message to a temporary file (called the bodyfile) and then calls program with its arguments. program is supposed to somehow change the bodyfile. It can for instance be a spell checker. Afterwards the possibly changed body is remerged with the headers and copied back into the message. If message is specified as - then newsbody will act as a filter, i.e. standard input and standard output will be used. %f in the arguments will be expanded to the name of the bodyfile, or - if the -f option is used. Use %% for a real % character. OPTIONS
-f The called program is a filter so don't make a temporary file, but pipe the body to its standard input and read it back from its standard output. -h Keep the entire header. This flag can also be used if newsfile doesn't have a header at all. -q Also remove quotes before filtering the body. Lines starting with > are considered quotes. -s Also remove signature before filtering the body. -k headername Keep these header lines in the bodyfile. Multiple -k flags are allowed. -v Print the version and exit. FILES
newsbody uses one or two temporary files with names given by the mkstemp(3) or the tmpnam(3) function. BUGS
If some system call gives an unexpected error newsbody will stop immediately with an error message leaving its temporary files. AUTHOR
Byrial Jensen <byrial@image.dk> SEE ALSO
pospell(1). Unix APRIL 2000 newsbody(1)
All times are GMT -4. The time now is 10:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy