Discussion:
how to embed an image in email's body
(too old to reply)
massoud
2009-09-14 17:47:02 UTC
Permalink
Hi friends,

I want to have image of my invoice in email for customer. I don't want to
attach it because some email servers ignore the attached files. So I want to
insert image in email's body. Any idea?

Thanks
unknown
2009-09-14 18:13:26 UTC
Permalink
Hello,

Using DOTNET ?

Try :
http://www.systemnetmail.com/faq/2.6.aspx

Utlimately the image is part of the message and referenced using an <img
src="cid:<Identifier>"> tag...

--
Patrice
Post by massoud
Hi friends,
I want to have image of my invoice in email for customer. I don't want to
attach it because some email servers ignore the attached files. So I want to
insert image in email's body. Any idea?
Thanks
massoud
2009-09-14 18:35:01 UTC
Permalink
Not .NET. I am working on Dynamics Ax. in X++ do we have any feature to embed
image in email's body?

Thanks
Post by unknown
Hello,
Using DOTNET ?
http://www.systemnetmail.com/faq/2.6.aspx
Utlimately the image is part of the message and referenced using an <img
src="cid:<Identifier>"> tag...
--
Patrice
Post by massoud
Hi friends,
I want to have image of my invoice in email for customer. I don't want to
attach it because some email servers ignore the attached files. So I want to
insert image in email's body. Any idea?
Thanks
unknown
2009-09-15 08:57:25 UTC
Permalink
I'm still new to AX but don't see anything obvious in SysMailer classes...
If AX 2009, I would likely add a reference to the .NET assembly and would
use .NET to send those mails...

Sorry for the poor help.

--
Patrice
Jack
2009-10-07 11:39:01 UTC
Permalink
Hi,
Using templates you can insert images.
Goto basic-setup-email templates
create template and use insert-picture to insert image
Images have to be acessible from the server, so you might wanna use netowrk
share. Also, you have to specify "Allow embedded data and attached files
from" parameter in Administration-Email parameters. It's the folder where
attachments/embedded files must be located, otherwise they won't be attached.

Hope it helps.
Let me know if you have further queries.
Regards,
Jack

PS: as an alternartive of specifying that parameter you can put the
following line in SysEmailTable.isFromAttachmentsFolder()

if (!emailParams.AttachmentsPath) return true;
Post by massoud
Hi friends,
I want to have image of my invoice in email for customer. I don't want to
attach it because some email servers ignore the attached files. So I want to
insert image in email's body. Any idea?
Thanks
Thierry
2010-09-03 13:20:03 UTC
Permalink
Hi,

I'm just trying to send an E-mail including a customer logo.
I succeded to send an e-mail based on email templates, but the picture
doesn't appear on the received e-mail.

Allow embedded data parameter is well defined with the location of the
picture.
Using AX4.0 SP1

Could someone help me?

Thanks,

Thierry
Post by Jack
Hi,
Using templates you can insert images.
Goto basic-setup-email templates
create template and use insert-picture to insert image
Images have to be acessible from the server, so you might wanna use netowrk
share. Also, you have to specify "Allow embedded data and attached files
from" parameter in Administration-Email parameters. It's the folder where
attachments/embedded files must be located, otherwise they won't be attached.
Hope it helps.
Let me know if you have further queries.
Regards,
Jack
PS: as an alternartive of specifying that parameter you can put the
following line in SysEmailTable.isFromAttachmentsFolder()
if (!emailParams.AttachmentsPath) return true;
Post by massoud
Hi friends,
I want to have image of my invoice in email for customer. I don't want to
attach it because some email servers ignore the attached files. So I want to
insert image in email's body. Any idea?
Thanks
Loading...