Simple sending mail fails

rag84dec's Avatar, Join Date: Jul 2007
Go4Expert Member
Hi i am using the folllowing code to send a simple mail but it is failing i mean it is not sending any mail.I have SMTP installed on my machine...
Code:
Set objMessage = CreateObject("CDO.Message") 
objMessage.Subject = "Subject"
objMessage.Sender = "some@gmail.com"
objMessage.To = "some@gmail.com"
objMessage.TextBody = "e-mail message"
objMessage.Send
0
subashini's Avatar, Join Date: Apr 2008
Newbie Member
I think you should create object for your smtpmail.
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
Try CDONTS, www.go4expert.com/forums/showthread.php?t=1565