VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Send email with attachment with Microsoft Outlook 2007 & 2003!

by Fortunato Estorgio Jr. (1 Submission)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 26th October 2007
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Send email with attachment with Microsoft Outlook 2007 & 2003!

API Declarations


' Just make sure that Microsoft Outlook 2000 or 2003 is installed.
' Outlook Error parser by: Elton House

Rate Send email with attachment with Microsoft Outlook 2007 & 2003!




Function SendMail(Recipient, MailSubject, TextBody, FileAttachment)
Set Outlook = CreateObject("Outlook.Application")
Set OutlookMail = Outlook.CreateItem(0)
Set Attachment = OutlookMail.Attachments
OutlookMail.To = Recipient
OutlookMail.Subject = MailSubject
OutlookMail.Body = TextBody
Attachment.Add FileAttachment, 1, 1, "File Attachment"
'OutlookMail.Send
OutlookMail.Display
SendKeys "%{s}", True
End Function



Download this snippet    Add to My Saved Code

Send email with attachment with Microsoft Outlook 2007 & 2003! Comments

No comments have been posted about Send email with attachment with Microsoft Outlook 2007 & 2003!. Why not be the first to post a comment about Send email with attachment with Microsoft Outlook 2007 & 2003!.

Post your comment

Subject:
Message:
0/1000 characters