Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 25th, 2009, 01:32 PM
Authorized User
Join Date: Sep 2008
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default CDO email Addattachment


I am using the CDo.Message object to send out emails with attachements. The email works but my problem is when I receive the email in my google mail inbox, the attachments shows and works but the name of the document shows "noname"?

I would like to see the email attachment with its proper name if possible (not noname). The attachments is there and is the correct document.

Also, When I send it to my hotmail account, the attachment paperclip icon shows but when I open the email, there is no attachement at all (or any indication of it being blocked).

I have used the standard code of:

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = "me@my.com"
objMessage.To = "test@someone.com"
objMessage.TextBody = "This is some sample message text."
objMessage.AddAttachment "c:\temp\newsletter.doc"

Could anybody point out if I have missed a parameter or doing something wrong?

My host is 1and1 if that may be of use to anyone.

I'm stumped.

Anybody help?

Many thanks to anyone who can offer help
Old June 12th, 2009, 02:46 PM
Friend of Wrox
Join Date: Dec 2006
Posts: 104
Thanks: 9
Thanked 1 Time in 1 Post




Similar Threads
Thread Thread Starter Forum Replies Last Post
CDO email - missing characters BananaJim Classic ASP Professional 3 May 2nd, 2007 10:31 AM
CDO Email error Treefarn Classic ASP Professional 10 February 20th, 2007 02:39 PM
CDO email BananaJim Classic ASP Professional 6 January 27th, 2007 08:04 PM
Sending Email from ADP using CDO Scripts82 Access VBA 2 March 29th, 2006 10:50 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.