Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   cdonts attachfile as inline (http://www.velocityreviews.com/forums/t797655-cdonts-attachfile-as-inline.html)

inja 01-18-2005 03:04 PM

cdonts attachfile as inline
 
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

inja 01-19-2005 09:13 AM

Re: cdonts attachfile as inline
 
inja wrote:
> 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.


All times are GMT. The time now is 05:25 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.