Outlook (1 Viewer)

accessman2

Registered User.
Local time
Today, 01:09
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?
 

NigelShaw

Registered User.
Local time
Today, 09:09
Joined
Jan 11, 2008
Messages
1,573
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

Top Bottom