cdonts attachfile as inline

I

inja

Hello,

How to attach a file to an email as an inline element ?

Code:

objMail.AttachFile Server.MapPath("./path_to/image.gif")

The result:

Content-Type: image/gif;
name="image.gif"
Content-Transfer-Encoding: uuencode
Content-Disposition: attachment;
filename="image.gif"

I'd like the content-disposition to be inline.

Any ideas ?

Thanks
 
I

inja

inja said:
Hello,

How to attach a file to an email as an inline element ?

Code:

objMail.AttachFile Server.MapPath("./path_to/image.gif")

The result:

Content-Type: image/gif;
name="image.gif"
Content-Transfer-Encoding: uuencode
Content-Disposition: attachment;
filename="image.gif"

I'd like the content-disposition to be inline.

Any ideas ?

Thanks

I finally got it.

objMail.AttachFile Server.MapPath("./path_to/image.gif")

has to be replaced by

objMail.AttachURL Server.MapPath("./path_to/image.gif"),"image.gif"

Thanks anyway to the group.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top