Question : CDO , not  mail sending !

Hello,

I am trying to send mails using the CDOSYS object.
But it says , mail sent but mail does not reach me, instead it gives delivery notification (failed),
the mail cud not b delivered to the following email address.

Please help me fast.
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
'THE MAIL OBJECT 
 Dim ObjMail 
 Set ObjMail = Server.CreateObject("CDO.Message") 
sendUrl="http://schemas.microsoft.com/cdo/configuration/sendusing"
smtpUrl="http://schemas.microsoft.com/cdo/configuration/smtpserver"
 
 
' Set the mail server configuration
Set objConfig=CreateObject("CDO.Configuration")
objConfig.Fields.Item(sendUrl)=cdoSendUsingPickup ' cdoSendUsingPort
objConfig.Fields.Item(smtpUrl)="relay-hosting.secureserver.net"
objConfig.Fields.Update
' Use the config object created above
Set objMail.Configuration=objConfig
 
 
 objMail.From =  "[email protected]" 
 objMail.To = "[email protected]"
 objMail.Subject = "Mahesh Tutorials"
 objMail.HTMLBody = a1
 objMail.Send 
 
 Set objMail = Nothing 
 Set objConfig = Nothing

Answer : CDO , not  mail sending !

Random Solutions  
 
programming4us programming4us