Save e-mail to *.msg on send

R

Raymond

Hi

I've got a userform with 2 textboxes and command_button

When I press the command_button

The fulling code will work:

[vb]
Private Sub CommandButton1_Click()
Set myOlApp = CreateObject("Outlook.Application")
Set myitem = myOlApp.CreateItem(olMailItem)
myitem.Subject = TextBox1.Text
myitem.To = TextBox2.Text
myitem.saves "c:\temp\" & item.subject & ".msg" , olmsg
Unload Me
myitem.Display
End Sub
[/vb]

How can i save this mail on the same name when is push the button send?


Greetings Raymond
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top