Sponsored Content
Top Forums Shell Programming and Scripting Difficulty to send image in mail body. Post 302956138 by Don Cragun on Sunday 27th of September 2015 12:56:14 AM
Old 09-27-2015
You have shown us 5 lines of data that will be printed to the standard output of your script (not included in the body of your message and not as an attachment).

You have said that the body of your message does not correctly display the image you want it to include, but you have not shown us the contents of the file test.html (which contains the text that makes up the entire body of the message you're sending).

So, about all that we can say is that something in the HTML code in test.html is not correctly displaying the image you want to display. But, you already know that...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to send body in a mail

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

2. UNIX for Dummies Questions & Answers

AIX send mail with HTML message body and a binary attachment

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)
Discussion started by: G-Man
4 Replies

3. AIX

Command line/Script to send E-mail with HTML body and binary attachment

I apoligize for the cross-post but I'm not getting much in the way of help in the dummies forum: 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... (3 Replies)
Discussion started by: G-Man
3 Replies

4. AIX

Send mail attachments and have a mail body

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

5. Shell Programming and Scripting

How to send a mail with attachement as well as message Body..?

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

6. Shell Programming and Scripting

how to send jpg as body

Hi, I ftp the .jpg file from windows to unix machine, now i need to send the jpg file as body to (not as attachment) outlook, can anyone send the sample code for this? (1 Reply)
Discussion started by: vasu.g
1 Replies

7. Shell Programming and Scripting

Send mail with rich text / HTML with image

Hi, Is it possible to send mail from my HP-Ux system with images, rich text? I would like to program in such a way that I have my company's logo(.jpg) image attached in the mail geeting triggered. I would like to send a rich text/HTML email instead of plain text mail to the recipients. Is it... (2 Replies)
Discussion started by: rythym05
2 Replies

8. 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

9. Shell Programming and Scripting

Embedding JPEG image to the body file

hi, I am trying to embed an image to the body of the email, but the image is not visible. echo "<html> <body> <style> body {background-color:blue} </style> <h1>hello</h1> <center> <img... (1 Reply)
Discussion started by: ATWC
1 Replies

10. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 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 12:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy