The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to send an email? aajan UNIX for Dummies Questions & Answers 1 06-12-2007 05:53 AM
send email to more users duke0001 UNIX for Dummies Questions & Answers 4 03-21-2006 12:58 PM
Send email where # is in the email address - Using Unix jingi1234 UNIX for Dummies Questions & Answers 1 05-23-2005 12:23 PM
Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win) Vetrivela UNIX for Advanced & Expert Users 2 02-15-2005 10:43 AM
Send email to another server on AIX owls UNIX for Dummies Questions & Answers 1 09-17-2001 01:02 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-28-2001
Thomas Thomas is offline
Registered User
  
 

Join Date: Jun 2001
Location: San Jose, CA
Posts: 3
Question How do I send pictures in email?

I know how send a html page through mailx, but how do I show the pictures(gif,jpeg,etc.) in the email?
  #2 (permalink)  
Old 06-28-2001
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
if you mean as an attachment then you can do a search on the board for that answer. or check in the faq for the answer.

if you are talking about inserting a picture into the body of an email. sounds like a good question.
  #3 (permalink)  
Old 06-28-2001
Thomas Thomas is offline
Registered User
  
 

Join Date: Jun 2001
Location: San Jose, CA
Posts: 3
Yeah, I mean in the body of the file.

I tried using MIME by inserting these lines in front of a gif file.

From: "user"
To: "To"
Subject: "subject"
Mime-version: 1.0
Content-Type: image/gif; name="name.gif"

The result is the gif file is unreadable. This was tried from sending email from solaris to outlook. I tried the Content-Transfer-Encoding line, but that doesn't seem to make a difference.
  #4 (permalink)  
Old 06-28-2001
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
You need to make encode the binary file into text, either with uuencode or (preferably) mimencode. You cannot send binary data directly through email.

Inserting a picture into the "body" of the email is the same as creating a MIME multi-part message. Some mailers will show the picture in-line. Others will just show it as an attachment. Check out the faq for info on how to create attachments, etc.

http://droflet.net/unix_dot_com_faq.html

Also search the board or the web for info on mimencode.

Also see my reply to recent thread titled "Using MIME to send html files". You need to use the same concept, except one of your sections will contain the mimencoded data (with appropriate Content-type)

Last edited by PxT; 06-28-2001 at 07:38 PM..
  #5 (permalink)  
Old 06-28-2001
Thomas Thomas is offline
Registered User
  
 

Join Date: Jun 2001
Location: San Jose, CA
Posts: 3
Thanks a lot! I just tried it out and it works, although it won't show the picture, you have to click on the icon to see it. That's probably mailx's fault so I'm not sure if there is much I can do about it.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0