Send out an email by using the DoCmd.SendObject : Email « Outlook « VBA / Excel / Access / Word






Send out an email by using the DoCmd.SendObject

 
Sub SendEmail
    DoCmd.SendObject acSendNoObject, , , "d@yahoo.com", , , "This is cool!", "an email.", False
End Sub

 








Related examples in the same category

1.Send email for all records in an Access table
2.Send email by Using POP3
3.Display the information in a list of mails
4.Searching for Items
5.Adds an addressee, a subject, and body text; applies the HTML format; sets the importance to high; and sends the message:
6.Sending a Message
7.Send a table through email
8.Using the CreateItem Method to Create Default Items