VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Send email with Microsoft Office Outlook 2000 - 2003 without the Warning A program is trying to sen

by Elton House (1 Submission)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 24th May 2006
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Send email with Microsoft Office Outlook 2000 - 2003 without the Warning A program is trying to send mail. Includes attachment coding.

API Declarations


'Hope this is helpful!

Rate Send email with Microsoft Office Outlook 2000 - 2003 without the Warning A program is trying to sen



Const olByValue = 1
    Set OutlookItem = Application.CreateItem(0)
    OutlookItem.To = "[email protected]"
    OutlookItem.Subject = "This will work!"
    OutlookItem.Body = "This works great, no warning message from Outlook!"
    Set ColAttach = OutlookItem.Attachments
    strPath = App.Path & "\simple.txt"
    ColAttach.Add strPath, olByValue, 1, "File Attachment"
    OutlookItem.Display
    SendKeys "%{s}", True

Download this snippet    Add to My Saved Code

Send email with Microsoft Office Outlook 2000 - 2003 without the Warning A program is trying to sen Comments

No comments have been posted about Send email with Microsoft Office Outlook 2000 - 2003 without the Warning A program is trying to sen. Why not be the first to post a comment about Send email with Microsoft Office Outlook 2000 - 2003 without the Warning A program is trying to sen.

Post your comment

Subject:
Message:
0/1000 characters