Send HTML graph using sendmail


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Send HTML graph using sendmail
# 1  
Old 12-21-2011
Send HTML graph using sendmail

Hi all.
Urgent help required. I am trying to send and HTML/PNG fromat graph from UNIX using sendmail. The graph needs to be in the body of the HTML email and NOT an attachment.Smilie

Any ideas and help will be really appreciated.

Best regards,
Willz
# 2  
Old 12-21-2011
you need to put the png file in some of the location, so that, you can access it through a URL

eg : http://ipaddress.com/somefolder ( use any httpdocs if you installed apache in your server )

and provide the URL in your html code

Code:
<img src = "http://bla...bla....">

# 3  
Old 12-21-2011
Hi Itkamaraj
Thanks for the reply.
I have tried img src = 'and pointed it to a unix location'
It send a blank email with the red 'X', like the one we see when the image can not be loaded.
I am sending the email from UNIX to a windows email address.
Thanks once a gain, really appreciate the help ths far.
Enjoy the rest of the day.
Regards
Willz
# 4  
Old 12-21-2011
I have tried img src = 'and pointed it to a unix location'

This will not work ( if you provided the location as /home/user/abc/xyz.png

the link you provided should be access through the normal web browser also. ( it should be accessed by everyone )
# 5  
Old 12-21-2011
Hi,
Even if its just a .gif thats static?
Basically I just want to copy and paste the mage into the email like i would do if sending the mail from windows.
Sorry for all the questions, you have been a great help thus far.
Regards
Willz
# 6  
Old 12-21-2011
no, you cant do like that..

you need a proper url and give that url link in <img> tag.
# 7  
Old 12-21-2011
Hi,
I am using SAS to create the PNG and it saves the file in my UNIX home direcctory.
I am not doing it from a WEB development persepective, I want to acomplish this purely from UNIX, as well I dont have access to the website to add the image to the repository. Basically my SAS code runs in a batch job on a UNIX box.

Now I am really sorry.
Thanks though, really appreciate it.
Regards,
Willz
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Html output with awk/sendmail

Hello All, I inherited maintenance of a script that uses awk on an input file (space delimited) and formats it into an html table and send out using sendmail. I know how to manipulate the print statements to add columns and rows, however that is the extent of my html knowlege. I've searched... (5 Replies)
Discussion started by: Big-J
5 Replies

2. Shell Programming and Scripting

Sendmail cmd for html body and attachment not working

Hi, I am having trouble in sending a mail with html body and attachment (csv file). We don't have uuencode or mutt (not allowed to install as well) The below code is perfectly working for sending the html body alone: export MAILTO=abc@xyz.com export CONTENT="/home/abc/list.html"... (2 Replies)
Discussion started by: close2jay
2 Replies

3. UNIX for Dummies Questions & Answers

Sendmail with HTML body and attachment code issues

Hi, I was working on getting an HTML file in the mail body along with attaching a "csv" file to the mail. Below are the 2 parts of the code. I need help with the second part where I'm sending the mail. The HTML file as an attachment is perfect without any issues and with proper formatting.... (6 Replies)
Discussion started by: aster007
6 Replies

4. Shell Programming and Scripting

Email body not formatted with html and sendmail

Hi All, I am trying to send the contents of a file as email body. I am using html email and sendmail option of unix. I am using the below piece of code for the same : #!/usr/bin/ksh export MAILTO="email@domain.com" export SUBJECT="Report" export BODY="file_directory_path/test_file.txt"... (1 Reply)
Discussion started by: rockygsd
1 Replies

5. Shell Programming and Scripting

Sendmail with header and footer logo in HTML body

Hello, I need help with my script that will send email via sendmail command that will shows both the header and footer logo once the recepient receive the email (e.g. MS Outlook). When I tested to ran the script it will successfully send the email BUT UNFORTUNATELY it doesn't displayed the... (8 Replies)
Discussion started by: lawrence88
8 Replies

6. Shell Programming and Scripting

Send SAS Graph in Email Body from UNIX

Hi Friends, I am trying to send a graph in Body of HTML Email which is generated using a SAS Code. But, I am not able to see the picture, Instead seeing a red cross mark in Email Body. Could you please help me in fixing this problem? Also, I do not have a Shared Place (or) a web server to... (0 Replies)
Discussion started by: Samuels
0 Replies

7. Shell Programming and Scripting

Sendmail with HTML body and attachment

I have an HTML file I am currently sending in the body of an email. I now have a need to send a csv attachment along with it. I can ONLY use sendmail as mutt and xmail etc are not on the server. Here is what I am currently using: It is possible to add code to add an attachment ??!? { ... (8 Replies)
Discussion started by: atelford
8 Replies

8. Shell Programming and Scripting

Problem in sending inline html with an attachment using sendmail

MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=border --border Content-Type: text/html Content-Disposition: inline <html><body><h2>This text should be displayed with html formatting</h2></body></html> --border Content-Type: text/plain Content-Disposition: attachment This text... (2 Replies)
Discussion started by: thulasidharan2k
2 Replies

9. Red Hat

Send HTML body and HTML attachment using MUTT command

Hi there.. I need a proper "mutt" command to send a mail with html body and html attachment at a time. Also if possible let me know the other commands to do this task. Please help me.. (2 Replies)
Discussion started by: vickramshetty
2 Replies

10. Shell Programming and Scripting

Sendmail with html attachment and html body

Hi folks, I have a perl script which sends out email after successful completion of job as inline html, I want to send it out as two parts now as html inline and html attachment. see the attached script. Thanks in advance (1 Reply)
Discussion started by: sol_nov
1 Replies
Login or Register to Ask a Question