Outlook

accessman2

Registered User.
Local time
Today, 02:29
Joined
Sep 15, 2005
Messages
335
Code:
Function Sendmail() As Boolean        
    Dim oapp As Outlook.Application
    Dim mitem As Outlook.MailItem
    
    Set oapp = New Outlook.Application    
    Set mitem = oapp.CreateItem(olMailItem)
    
    With mitem
        .To = "mill@yahoo.com"
        .Subject = "Testing"
        .Body = "Test"        
        .send        
    End With      
End Function

Hi: I used above code to send email out.
How can we send email without saving the emails in the "Sent Items" folder in the code?
 
Hi

in the with section, when you press . for the outlook options, there is an option called save I think or something to that effect. Set it to false and your email will not be saved.

Regs

nigel
 

Users who are viewing this thread

Back
Top Bottom