Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: How can I send HTML mail with CreateObject("CDO.Message") ??


Message #1 by Robbin Gille <robbin.gille@n...> on Thu, 5 Jul 2001 10:09:13 +0200
I have a problem, I want to send a mail from a remote SMTP server, but how

do I do that? I know how I do it width CreateObject("CDONTS.NewMail"). But

if I do it the same way it dosen't work! Why??



Plz help me.



Robbin

Message #2 by "Siegfried Weber" <sweber@c...> on Thu, 5 Jul 2001 11:32:29 +0200
Posted here more than once. Twice this week.



Having said that, here's the code again:



<!--METADATA TYPE=3D"typelib" 

UUID=3D"CD000000-8B95-11D1-82DB-00C04FB1625D"

NAME=3D"CDO for Windows 2000 Library" -->



Set objConfiguration =3D CreateObject("CDO.Configuration")

Set objFields =3D objConfiguration.Fields

With objFields

	.Item(cdoSendUsingMethod) =3D cdoSendUsingPort

	.Item(cdoSMTPServerPort) =3D 25

	.Item(cdoSMTPServer) =3D "YourMailServer.YourDomain.Com"

	.Update

End With

Set objMessage =3D CreateObject("CDO.Message")

With objMessage

	Set .Configuration =3D objConfiguration

	.From =3D "YourOriginator@Y..."

	.To =3D "TheRecipient@T..."

	.Subject =3D "YourSubject"

	'.TextBody =3D "YourTextBody"

	.Send

End With



<Siegfried/>



> -----Original Message-----

> From: Robbin Gille [mailto:robbin.gille@n...]

> Sent: Thursday, July 05, 2001 10:09 AM

> To: ASP CDO

> Subject: [asp_cdo] How can I send HTML mail with

> CreateObject("CDO.Message") ??

>

> I have a problem, I want to send a mail from a remote SMTP server, but

how

> do I do that? I know how I do it width CreateObject("CDONTS.NewMail").

But

> if I do it the same way it dosen't work! Why??

>

> Plz help me.

>

> Robbin




  Return to Index