Send mail thru ASP goes to "C:\Inetpub\mailroot\Queue"

Discussion in 'C#' started by rag84dec, Apr 8, 2008.

  1. #1
    Hi,
    THe mail sent through the ASP code given below is going to "Queue" folder in "C:\Inetpub\mailroot"...And the code is
    
    Set objMessage = CreateObject("CDO.Message") 
    objMessage.Subject = "Subject"
    objMessage.from = "some@gmail.com"
    objMessage.To = "some@gmail.com"	
    objMessage.TextBody = "e-mail message"
    objMessage.Send
    
    Code (markup):
    
    From: postmaster@mymachinename
    To: some@gmail.com
    Date: Tue, 8 Apr 2008 12:06:24 +0530
    MIME-Version: 1.0
    Content-Type: multipart/report; report-type=delivery-status;
    	boundary="9B095B5ADSN=_01C893ACAADA63DA0000006Dmymachinename  "
    Message-ID: <NXRPmcarc0000002e@mymachinename>
    Subject: Delivery Status Notification (Failure)
    
    This is a MIME-formatted message.  
    Portions of this message may be unreadable without a MIME-capable mail program.
    
    --9B095B5ADSN=_01C893ACAADA63DA0000006Dmymachinename  
    Content-Type: text/plain; charset=unicode-1-1-utf-7
    
    This is an automatically generated Delivery Status Notification.
    
    Delivery to the following recipients failed.
    
           some@gmail.com
    
    
    Code (markup):

     
    rag84dec, Apr 8, 2008 IP
  2. saurabhj

    saurabhj Banned

    Messages:
    3,459
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you have authentication at your mail server?

    You can try following code also:
     
    saurabhj, Apr 8, 2008 IP