[b][red]This message was edited by lionb at 2006-2-28 6:1:3[/red][/b][hr]
[b][red]This message was edited by lionb at 2006-2-28 6:0:24[/red][/b][hr]
I used it thousands times years ago and it did work perfectly. For some reason it did not work now. Does somebody now why it it did not work
Code:
[Code]
Dim email As New CDONTS.NewMail
With email
.From = "test@test.com" '[blue]I do have real email address in real code[/blue] :-D
.To = "test@test.com"
.Subject = "Test"
.BodyFormat = 1
.Send
End With
Set eMail - nothing
[/code]
No Errors or messages. [b]It simply does not send email. In other words, it does nothing![/b]
The same about this code
[code]
With eM
Dim eM As New CDO.Message
.To = "test@test.com"
.From = "test@test.com"
.Subject = "Test"
.TextBody = "Test"
.Send
End With
[/code]
Comments
:
I figured out the reason. It's quite stupid :-( - CDONTS works by default with Outlook Express and company uses Microsoft Outlook. All my mesages are sitting in C:InetpubmailrootPickup folder ...Is there way to use CDONTS with Microsoft Outloook? I really do not want to use MAPI or Outlook.Application even though those two works relatively smooth on my machine.