S
Sivas
Hi all...
I'm getting a run-time error when I try to send an email from my VB 6
app on an Win NT server. It works perfectly on Win XP. Any idea why?
==================================
'Create an Outlook object
Dim Outlook As Outlook.Application
Set Outlook = CreateObject("Outlook.Application")
'Create e new message
Dim Message As Outlook.MailItem
Const olMailItem = 0
Dim oRecipient As Outlook.Recipient
Set Message = Outlook.CreateItem(olMailItem)
With Message
'You can display the message To debug And see state
'.Display
.Subject = "WARNING FROM..."
.Body = "The application has stopped..."
'Set destination email address
.Recipients.Add("(e-mail address removed)")
'Send the message
.Send
End With
==========================
Thanks,
Sivas
I'm getting a run-time error when I try to send an email from my VB 6
app on an Win NT server. It works perfectly on Win XP. Any idea why?
==================================
'Create an Outlook object
Dim Outlook As Outlook.Application
Set Outlook = CreateObject("Outlook.Application")
'Create e new message
Dim Message As Outlook.MailItem
Const olMailItem = 0
Dim oRecipient As Outlook.Recipient
Set Message = Outlook.CreateItem(olMailItem)
With Message
'You can display the message To debug And see state
'.Display
.Subject = "WARNING FROM..."
.Body = "The application has stopped..."
'Set destination email address
.Recipients.Add("(e-mail address removed)")
'Send the message
.Send
End With
==========================
Thanks,
Sivas