From: Tarek Demiati on
I've written a little function in NAV 5.0 which does that :

1/ SAVEASHTML a Report which contains 2 logo --> MYDOC.HTM

2/ I Use codeunit 400 to send the E-mail via SMTP

2.a I basically read the text file MYDOC.HTM and each line of the file
is then passed to CU400.AppendBody ( FileRecord)

2.b I then add 2 attachments : mylogo1.bmp mylogo2.bmp


Result in OUTLOOK 2003 : I can see my HTML Body including the 2 logos

Result in GMAIL.COM, HOTMAIL.COM : I cannot see the 2 logo in the HTML body,
I've got 2 red cross appearing instead of the logo

The other problems I've got is that if I put some blank lines in the report
I've this:

&NBSP

which appears in the body

I hope someone out here has got a cure for this ...

From: Luc Van Dyck on
Concerning the images, I advise you to put the images somewhere on-line, on a
website (eg: http://mysite.com/images/mylogo1.bmp and
http://mysite.com/images/mylogo2.bmp). When you are reading the textfile
(HTML) to put in your message body, replace the mylogo1.bmp and mylogo2.bmp
references with <img src="http://mysite.com/images/mylogo1.bmp"> etc.

This way, the images can be retrieved from the site, when the mail is view
in hotmail, gmail.

Luc Van Dyck
webmaster http://mibuso.com
"Your favourite knowledge base"
From: Tarek Demiati on
Thanks for the feedback Luc,
that's what I have tought, I will give it a try

From my recollection CDO allows you to crete a MHTML file, which is quite a
neat format, since all the images are packed into the file MHT file, the con
is that Mac and Linux users won't be able to read the content. So I've ruled
out this option

The other option would be to convert the HTML into a JPG, and put the single
JPG into the body of the mail.

Anyone know if it's possible to "paste" a JPG file into the body of a mail
using CU400 ?
(I cannot use MAPI, my customer uses a Linux based mail server)

Best Regards from France,
Tarek Demiati

Freelance Consultant
Dynamics NAV (Navision) Developer & International Project Manager

"Luc Van Dyck" <LucVanDyck(a)discussions.microsoft.com> a écrit dans le
message de news:E9ADC307-3977-43F0-85E2-4E07F52A0FFA(a)microsoft.com...
> Concerning the images, I advise you to put the images somewhere on-line,
> on a
> website (eg: http://mysite.com/images/mylogo1.bmp and
> http://mysite.com/images/mylogo2.bmp). When you are reading the textfile
> (HTML) to put in your message body, replace the mylogo1.bmp and
> mylogo2.bmp
> references with <img src="http://mysite.com/images/mylogo1.bmp"> etc.
>
> This way, the images can be retrieved from the site, when the mail is view
> in hotmail, gmail.
>
> Luc Van Dyck
> webmaster http://mibuso.com
> "Your favourite knowledge base"