Does anyone know how/if you can send Outlook Email from an ASP page? I've searched and found the code listed below but this causes my IIS to hang (no error messages, just hangs). Thank you in advance for any help!
Sub SendMailOutlook(aTo, Subject, TextBody)
'Create an Outlook object
Dim Outlook 'As New Outlook.Application
Set Outlook = CreateObject("Outlook.Application"
'Create e new message
Dim Message 'As Outlook.MailItem
Set Message = Outlook.CreateItem(olMailItem)
With Message
.Subject = Subject
.Body = TextBody
'Set destination email address
.Recipients.Add (aTo)
'Send the message
.Send
End With
End Sub
Sub SendMailOutlook(aTo, Subject, TextBody)
'Create an Outlook object
Dim Outlook 'As New Outlook.Application
Set Outlook = CreateObject("Outlook.Application"
'Create e new message
Dim Message 'As Outlook.MailItem
Set Message = Outlook.CreateItem(olMailItem)
With Message
.Subject = Subject
.Body = TextBody
'Set destination email address
.Recipients.Add (aTo)
'Send the message
.Send
End With
End Sub