p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: Sending Email Messages with ASP


Message #1 by "Neethling, Dirk BYNI/PLM" <Dirk.Neethling2@h...> on Wed, 13 Sep 2000 11:53:49 +0200
Do you get something in the bad mail folder?

Cheers
Ken

----- Original Message ----- 
From: "Neethling, Dirk BYNI/PLM" <Dirk.Neethling2@h...>
To: "Code Clinic" <proasp_codeclinic@p...>
Sent: Thursday, September 14, 2000 4:30 AM
Subject: [proasp_codeclinic] Sending Email Messages with ASP


> Hi Imar
> 
> Sorry to bother you about this again!
> I've configured the SMTP service as stated in an article in the link 
> you
> sent (Sending Email Messages with ASP
> by Alex Homer). Now I use the following to test the service:
> 
> dim objMail
> Set objMail =3D Server.CreateObject("CDONTS.NewMail")
> objMail.To =3D "dirk.neethling2@h..."              'set 'To' 
> address
> objMail.From =3D "dirk.neethling2@h..."               'set 
> 'From'
> address
> objMail.Value("Reply-To") =3D "dirk.neethling2@h..."  'set 
> 'Reply to'
> address
> objMail.Subject =3D "Hi there from me"         'set the subject line
> objMail.Body =3D "This is a test message"      'set the message content
> objMail.Send                               'and send the message
> Set objMail =3D Nothing                      'then destroy the 
> component
> 
> The .asp runs ok but won't send a mail. What's up?
> Thanks in advance.
> 
> Dirk



  Return to Index