Source language: Translate to:

SendMail

Post your suggestions for future versions of NeoBook

Moderator: Neosoft Support

Postby HPW » Tue Feb 06, 2007 9:14 am

1) What do I code in place of {???? code for abc.jpg} and {???? code for xyz.jpg} ?

2) Do I also need to specify files abc.jpg and xyz.jpg in the "attachments" parameter of the SendMail command ?


1:
Code: Select all
<p>
<img src="abc.jpg">
<img src="xyz.jpg">
</p>


2: Yes
Code: Select all
abc.jpg|xyz.jpg


This is for embedding the image as a visibel attachment and not as MIME-stream.

The exact HTML template for MIME-embedding has to be found now.
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby HPW » Tue Feb 06, 2007 11:43 am

Found a sample mail which might give us some hints:

Code: Select all
 Date:
 From:
 Message-Id:
 To:
 Subject: MyPhoto
 MIME-Version: 1.0
 Content-Type: multipart/mixed; boundary ="b7e73f764cb05852c94488561e931041"
 --b7e73f764cb05852c94488561e931041
 Content-Type: text/html; charset="iso-8859-1"
 Content-Transfer-Encoding: 8bit
 <h1>Hi</h1>
 --b7e73f764cb05852c94488561e931041
 Content-Type: image/jpeg; name=test.jpg
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment; filename=test.jpg
 /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAC8gIykjHS8pJik1Mi84R3ZMR0FBR5BnbVV2q5azsKiW
 paK81P/lvMj/y6Kl6//u////////tuL/////////////2wBDATI1NUc+R4pMTIr/wqXC////////
 ////////////////////////////////////////////////////////////wAARCABpAI8DASIA
 AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA
 AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3
 ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm
 p6ipqrKztLW2t7i5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XJMRxR+pLH/AD+NalZWoWc9zeqVX93gDdnpQBowf6iP/dH8qkpA
 AoAHQcUyeVYIWlboooAp6xOEthED8zn9KuQJ5cEaHqqgfpWLbCS/1AO/IBy3oB6VvUAV723+02zR
 g4bqM+tQaXb3FurrNwpPyjOav0UAY+tyZlijHYZP4/8A6q2Kybiynn1Ley/usj5s9q1qACiiigAo
 oooAKKKKACiiigAooooAKayq6lWAKnqDTqKAGRxRxLiNFUewp9FFABRRRQAUUUUAFFFFABRRRQAU
 UUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQB//9k=

 --b7e73f764cb05852c94488561e931041--
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

embedding images

Postby FM » Wed Feb 07, 2007 1:33 am

Outlook HTML messages with attached images are normal HTML, without visible MIME code. The image reference uses the "CID:" tag (Content ID)

It seems to be a diferent kind of attachment.
FM
 
Posts: 90
Joined: Tue Nov 21, 2006 12:50 am

Postby HPW » Wed Feb 07, 2007 3:19 am

The image reference uses the "CID:" tag (Content ID)
It seems to be a different kind of attachment.


But how does this work?
There must be a definition of this technology somewhere.

Edit:

http://www.faqs.org/rfcs/rfc2111.html
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby David de Argentina » Tue Mar 18, 2008 12:05 pm

I tryed to put images on the html body.
I think the easy way is "save as" the html file in MHT format.
MHT format is a html unique file that generate the mime and base 64 encoding file in one file.
After some tricks, I can send html body e-mails with images.

My devaluated cent,

David de argentina
User avatar
David de Argentina
 
Posts: 1559
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina

Previous

Return to NeoBook Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron