Hey there,
I want to send Emails via BCA. I have a small script which uses CDO library from MS Outlook. I am not able to send the Emails. I suspect the reason is that the emails are not being sent to right SMTP server. Could someone please tell me where does CDO send the emails to . How can I see the configurations of where "CDO.sent" is sending the Emails to ?? The script used is as follows:
Dim ObjMessage As CDO.Message
Dim strMessage, strSubject As String
strMessage = "You have got an Email"
strSubject = "Report " & docName & " is ready"
Set ObjMessage = New CDO.Message
ObjMessage.TextBody = strMessage
ObjMessage.Subject = strSubject
ObjMessage.From = """ABCD"" <abcd@xyz.com>"
ObjMessage.To = strEmailAddress
ObjMessage.Send
Else
End If
I want to send Emails via BCA. I have a small script which uses CDO library from MS Outlook. I am not able to send the Emails. I suspect the reason is that the emails are not being sent to right SMTP server. Could someone please tell me where does CDO send the emails to . How can I see the configurations of where "CDO.sent" is sending the Emails to ?? The script used is as follows:
Dim ObjMessage As CDO.Message
Dim strMessage, strSubject As String
strMessage = "You have got an Email"
strSubject = "Report " & docName & " is ready"
Set ObjMessage = New CDO.Message
ObjMessage.TextBody = strMessage
ObjMessage.Subject = strSubject
ObjMessage.From = """ABCD"" <abcd@xyz.com>"
ObjMessage.To = strEmailAddress
ObjMessage.Send
Else
End If