1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Simple sending mail fails

Discussion in 'ASP' started by rag84dec, Apr 8, 2008.

  1. rag84dec

    rag84dec New Member

    Joined:
    Jul 17, 2007
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    0
    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
    
    
    
     
  2. subashini

    subashini New Member

    Joined:
    Apr 6, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    I think you should create object for your smtpmail.
     
  3. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:

Share This Page