473,395 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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
Jul 22 '05 #1
1 2102
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.
Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: maher | last post by:
Hi I am using the CDONTS.newmail object to send file as an attachment so I used attachfile method. it seems the attach file wont work if the file size more than 100 KB , does anybody know if...
3
by: Ryan McLean | last post by:
Hello everyone! I have a question for ya'll. In a web-based asp application I am creating and (attempting to) attach a file. The email sends correctly, but when I try to open the attachment, it...
2
by: Kyle Pula | last post by:
I am using CDONTS to send email from an ASP script. Attached to each of these emails is a 34K PDF file. 90% of the time the file arrives intact. 10% of the time, however, users are unable to...
1
by: Dave Karmens | last post by:
<% Set theMail = server.CreateObject("CDONTS.NewMail") theMail.From = "user -at- domain -dot- com" theMail.To = "user -at- domain -dot- com" theMail.Subject = "Requested Form"...
2
by: Jammer | last post by:
Can someone give me some sample code to use CDONTS.new to send email with an attachment? I've got sample code from the following website; ...
1
by: mrique | last post by:
hi My readers that are lotus note user receive the mails I send using cdonts with image displayed as attachement in place of inline. I read...
4
by: Jason Steeves | last post by:
I am using cdonts to send mail messages with an attachment. The problem I am having is the messages are going through OK but the attachments are not there. Any ideas? I have tried my code elsewhere...
7
by: Paul | last post by:
I have just started work on a system using CDONTS to mail out. Whilst this is fine on the server, my local development machine is using XP Pro with IIS5.1 installed. Is there a way I can get the...
0
by: jbguernsey | last post by:
I am hoping to be able to avoid the Outlook security problem by using CDONTS and I tried using the code below (with appropriate change to the address etc): Dim oEMail As New CDONTS.EMail ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.