473,659 Members | 2,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

send an email with picture/rich text format in the body

Hey,
I have a certain problem and till now I didnt find an answer on the
web.

I want to send an email message with picture in it. I dont want to put
it as
attachment but make it in the body of the mail, so every one who open
the email will see the picture.. (it is possible that the solution will
be in any other format that will be opened i.e pdf, doc and I will put
this in the body )

Neither in MimeWriter nor using the definition of MymeTypes I was able
to do it ..

Does anyone have a solution?

Thanks

May 14 '06 #1
16 7023
"anya" <an****@gmail.c om> writes:
I want to send an email message with picture in it.
Please, reconsider. Email is a text medium.
I dont want to put it as attachment but make it in the body of the
mail, so every one who open the email will see the picture..
No, they won't; my email client displays only text, and that's the
case for a great many people on the net.
Does anyone have a solution?


If you want people to view something other than text, email is not
what you want. Give a URL to the place where they can view what you
want them to see; then they can choose a time when they are using a
graphically capable terminal.

--
\ "Why should I care about posterity? What's posterity ever done |
`\ for me?" -- Groucho Marx |
_o__) |
Ben Finney

May 14 '06 #2
Am Sonntag 14 Mai 2006 13:24 schrieb anya:
I want to send an email message with picture in it.
This...
I dont want to put
it as
attachment but make it in the body of the mail, so every one who open
the email will see the picture..
will...
(it is possible that the solution will
be in any other format that will be opened i.e pdf, doc and I will put
this in the body )
never...
Neither in MimeWriter nor using the definition of MymeTypes I was able
to do it ..


work.

That is, unless you design your own MIME standard, and get all email clients
out there to read your type of "structured document," which you inherently
need for including pictures directly in an email (body), as MIME (as we know
it today) only knows about stacked message parts, not about message content
and higher level formatting.

Basically, to include a picture in a body today, there's concensus that you
insert a HTML-document into one MIME part, and an <img> link refers to the
attachment that comes in another MIME part (by the filename, which is the
same as for the attached MIME part). But, as you see, this specifically
requires that the recipient is able to view HTML mails (which quite a lot of
people, even those using M$ Outlook, have turned off by default).

Anyway, read Ben Finney's response carefully. If you're trying to send out
commercial email, I'll be the first person to dump your mail if it doesn't at
least come in a format I can read (and understand!) text-only.

--- Heiko.
May 14 '06 #3
what about sending the mail as html instead of normal plain/text ?
anya wrote:
Hey,
I have a certain problem and till now I didnt find an answer on the
web.

I want to send an email message with picture in it. I dont want to put
it as
attachment but make it in the body of the mail, so every one who open
the email will see the picture.. (it is possible that the solution will
be in any other format that will be opened i.e pdf, doc and I will put
this in the body )

Neither in MimeWriter nor using the definition of MymeTypes I was able
to do it ..

Does anyone have a solution?

Thanks

May 14 '06 #4
Hello Anya,

See http://docs.python.org/lib/node597.html
IMO if you'll place the picture as 1'st MutliMime part the *some* email
readers will show it like you want.

HTH,
Miki

May 14 '06 #5
"Miki" <mi*********@gm ail.com> writes:
See http://docs.python.org/lib/node597.html
IMO if you'll place the picture as 1'st MutliMime part the *some* email
readers will show it like you want.


And most good spam filters will recognise it for the junk that it is,
and flag it appropriately. Messages that contain little plain text get
flagged as likely spam.

If there's useful information for the recipient to see in an email,
put it in as text. If you want to distribute files, put them online
for fetching -- and then feel free to send an email containing the URL
to the people who want those files, so they can get them at an
appropriate time, with appropriate tools.

--
\ Contentsofsigna turemaysettledu ringshipping. |
`\ |
_o__) |
Ben Finney

May 14 '06 #6
Ten
On Sunday 14 May 2006 12:24, anya wrote:
Hey,
I have a certain problem and till now I didnt find an answer on the
web.

I want to send an email message with picture in it. I dont want to put
it as
attachment but make it in the body of the mail, so every one who open
the email will see the picture.. (it is possible that the solution will
be in any other format that will be opened i.e pdf, doc and I will put
this in the body )

Neither in MimeWriter nor using the definition of MymeTypes I was able
to do it ..

Does anyone have a solution?

Thanks


The problem with doing this, programmaticall y or otherwise, is that however
you implement it, it's not going to work everywhere.

You can easily send it, but if you do include binary data in the message body,
then however you do it most people will be seeing a garbled (and offensive to
the the eye) message body.

I think it's not the right thing to do, either, if you ever managed to do this
it would be by working around how email is supposed to work.

Eventually, unless you have a userbase that is happy to open things in a
particular way for you, you'll have to bite the bullet and use more orthodox
techniques, methinks.

(he says with an image in his headers)

Ten

--
There are 10 types of people in this world,
those who understand binary, and those who don't.
May 14 '06 #7
anya wrote:
I want to send an email message with picture in it. I dont want to put
it as attachment but make it in the body of the mail, so every one who
open the email will see the picture..


Step 1: convert image to ascii art
Step 2: send
Step 3: hope recipient uses a fixed-width font

--
Edward Elliott
UC Berkeley School of Law (Boalt Hall)
complangpython at eddeye dot net
May 14 '06 #8
Acctualy there is a solution:
see http://aspn.activestate.com/ASPN/Coo.../Recipe/473810
(thanks darrin massena for sharing)

and , if you will set all the neccessary parametrs, it won't be
recognized as a
spam,
thanks

May 28 '06 #9
Ten
On Sunday 28 May 2006 07:27, anya wrote:
Acctualy there is a solution:
see http://aspn.activestate.com/ASPN/Coo.../Recipe/473810
(thanks darrin massena for sharing)

and , if you will set all the neccessary parametrs, it won't be
recognized as a
spam,
thanks


Ahah - a slightly different thing to what I thought you were after.

I'd looked at "every one who open the email will see the picture" and
discounted html mail.

Glad you got what you wanted done, done.

Ten.

--
There are 10 types of people in this world,
those who understand binary, and those who don't.
May 28 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
14221
by: lucanos | last post by:
Hey All, I'm having trouble trying to create a PHP file which will generate a multipart email message (containing both an HTML formatted part and a Plain Text formatted part). I have Googled for it, and found previous entries in Google Groups, but I just can't get it to work. My PHP File contains the following:
5
4405
by: nate heaton | last post by:
I would like to do the following with C# in my asp.net app: Open the default email client of the user (just like a mailto: link would). Supply the subject line and put some HTML (including an image) into the body of the email. Any help would be greatly appreciated. -- Nate Heaton
6
11175
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I will include the code I originally used. I understand I should switch from CDONTS to CDO mail but after several sttempts I am finding a very hard time getting the new CDO mail to work properly. Any assistance with this would be greatly...
1
1363
by: Johnny Gee | last post by:
Hi All I have a macro that I use to send three reports every week to about 10 people by email via Lotus Notes.I use the "Send To" command to send the reports out in Rich Text Format. I used RTF because it was the most compatible way for everybody to open the report. For reasons unknown to me, one of the reports changed "itself" to .xls format. I have tried sending the report seperately but although I select Rich Text Format it still...
5
2319
by: Yossi Naggar | last post by:
Hello to everyone, Does anybody know how to send html formatted messages with asp.net? I tried to send such messages with the code below but the content type is wrong. The content type is multi-part and not html/text as expected. The code i use is: mailmsg.To = "XXX@XXXX.com" mailmsg.Subject = "some subject string" mailmsg.Body = <-- an html format body --> mailmsg.From = "XXX@XXXX.com"
7
2202
by: Rich Rekos | last post by:
I can't seem to get messages to be sent in HTML format. All of my test messages arrive in my inbox in text format. Please see code below. Am I missing something? I specified HTML as the body format: <script language="vb" runat="server"> Sub sendmessage_Click(sender as Object, e as EventArgs) Dim objMail as New MailMessage()
8
17053
by: John Brock | last post by:
I am currently using a VB.NET program to send out e-mails with plain text bodies (plus one attachment). The emails are being received as Rich Text messages (probably just my personal Outlook default, because I didn't do this in the program), but there is no actual formatting (italics, color, etc.) in the message body, which is passed to from VB.NET to Outlook as an unformatted text String. I want to start applying formatting to the...
2
1827
by: urbanedge | last post by:
I've just acquired a site and uploaded to godaddy and the email function won't work. I'm new to php and I'm not able to determine where the issue is. I've commented out $this->header .= $this->body; and I get a blank email to send. I've stripped down the body file but there still seems to be a problem. I'm not sure where to look now. This is the body file. <?php /******************** EMAIL ***************************/ $sRuta =...
0
8427
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8332
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8746
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8525
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7356
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2750
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.