mailx is less complicated - the body1 variable is a dummy == empty
exp_file is the attachment
mailx is a simplified frontend for sendmail and talks to it directly after translating your command into sendmail-ese.
Hi,
Can some one help me with the syntax of the mailx that should send an attachment and also some text in the message body together.
When I am using the following syntax it is not sending the attachment but only the message body.
unix2dos -ascii $REPORTFILE | uuencode $PCFILE | mailx -s... (7 Replies)
I'm trying to script sending an e-mail message on an AIX 5.x server with the following requirements:
1. command line switch to specify file name containing message body in HTML format
2. command line switch to specify file name of a binary attachment
3. command line or input file to specify... (4 Replies)
hi
plz help me in sending a mail with some data in body and an attachment as some txt file.
currently i am able to send mail with some body content, i need an example how to send the same along with attachment.
thanks in advance
-bali (2 Replies)
Hi,
We have been trying to send mail with attachment and it is going fine, but when we try to attach a text to the body of the email, we find that the mail is going fine with the body text but the attachment is not going through. We are using ksh.
The command that is successfull without the... (6 Replies)
Hi
I want to able to attach a file to a email and send it with a body
the body of the email is within the "body" file, and the attachment in "atch"
if i send like below it will send the email correctly
/usr/sbin/sendmail me@you.com< body
And when i send the attachment alone... (3 Replies)
Hi,
I am trying to send email with attacment and body using "mailx"
(cat body.txt; uuencode attach.txt) | mailx -s "Attachment" abc@xyz.com
When i type this command, the shell is still waiting for me to enter something in standard input and press control D before it sends a mail and... (2 Replies)
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)
Hi,
Im having a bit of an issue with using the uuencode command and sending out an email.
My aim is to send an email out which has a body and also have attachments. Currently I can either get one or the other and not both on the same email.
uuencode... (4 Replies)
Hi All,
In my .ksh script, I am sending an email with body and attachment (.txt) using sendmail command. I am able to receive the attachement along with the body of the mail. But I am getting special characters along with the content in the .txt. Also the alignment is incorrect. Can you please... (7 Replies)
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 HPUX
smfi_replacebody
smfi_replacebody(3N)smfi_replacebody(3N)NAME
smfi_replacebody() - replaces the data in the sendmail message body
SYNOPSIS PARAMETERS
ctx Specifies the opaque context structure.
bodyp Specifies a pointer to the start of the new body data, which does not have to be null-terminated. If bodyp is set to NULL, the
length of the body is considered to be 0 (zero). The body data must be in CR or LF form.
bodylen Specifies the number of data bytes pointed by bodyp.
DESCRIPTION
replaces the body of the current message. can be called only from the routine and can be called more than once. When is called more than
once, the subsequent calls append data to the new body of the message.
Notes
o As the message body may be very large, setting may significantly affect filter performance.
o If a filter sets but does not call the original body remains unchanged.
o The filter order is important for the routine. Filters placed later in the sequence will observe the changes
RETURN VALUE
fails and returns due to the following reasons:
o The value of bodyp is equal to NULL and the value of bodylen is greater than 0.
o Changing the body in the current connection state is invalid.
o Network error occurs.
o The is not set when the function is called.
AUTHOR
was developed by the Sendmail Inc.
SEE ALSO smfi_chgheader(3N), smfi_insheader(3N), smfi_addrcpt(3N), smfi_addheader(3N), smfi_delrcpt(3N).
on
smfi_replacebody(3N)