Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: Problem in sending an email with attachment using CDO library


Message #1 by "Magali Gonzalez" <magali@r...> on Wed, 15 Aug 2001 13:29:51 -0400
I'm using Windows NT Server 4.0 and Microsoft Exchange 5.5, and I need to

send an attachment file. I'm using this sentences:



ObjMessage.colAttachments.Add "Inventory Report", 0, CdoFileData,

"G:\DOCS\tapa-97-104-07748-1.JPG"

ObjMessage.Update

ObjMessage.send



I also tried using this sentence

Set objAttachment = ObjMessage.ColAttachments.Add ("Inventory Report", 0,

CdoFileData, "G:\DOCS\tapa-97-104-07748-1.JPG")

ObjMessage.Update



In both cases I receive the message with the correct subject and Text, but I

don't receive the attachment file. I would like to know why could this be.



Thank you very much,



Magali

----- Original Message -----

From: "Kalyan Ramji" <kalyan_ramji@h...>

To: "ASP CDO" <asp_cdo@p...>

Sent: Tuesday, August 14, 2001 4:04 PM

Subject: [asp_cdo] Re: Problem in Mailing





> Hey first of all, u cannot see any font changes here.. so i am not sure

> which line ur talking about.. but when u say that the error is it cannot

> connect to the mail server then there is something wrong with ur SMTP

> server settings in IIS.. Check this article out.. Its really useful and

> tells u how to connect to an SMTP server properly...

>

> http://msdn.microsoft.com/library/default.asp?url=/library/en-

> us/dnasdj99/html/asp9951.asp

>

> Good Luck!!

>

> -Kalyan.

>

> >

> > Hi Kalyan,

> >

> > Thanks for the reply, but it is giving error saying cannot connect to

> the mail

> > server. If you scroll down you will see that i have marked a line in red

> color

> > this is the error it is giving and the error message is in a .rtr file.

> >

> > Rajesh P.




  Return to Index