Skip to content

A collection of VBA functions for sending email through IBM Lotus Notes.

License

Notifications You must be signed in to change notification settings

PatrickCarriello/LotusNotes-VBA-Email-Sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

LotusNotes-VBA-Email-Sender

A collection of VBA functions for sending email through IBM Lotus Notes.

When looking for more complete functions for sending e-mail through Lotus Notes, i realized that there is a lot of information mismatched and loose on the internet. I found many pieces, but nothing too complex. So I decided to program my own module with functions that not only meet me, but also meet those who seek them.

Feel free to use it in the best way possible and contribute to what you discover new. You can also enhance the functions present here.

Tests

All tests were done (and worked) in the following versions:

  • Microsoft Office 2013
  • IBM Lotus Notes (now just IBM Notes) 9
  • Microsoft XML, v6.0

  • Probably the functions also work in other versions or just need a few changes.

    Using Functions

  • SendEmail(subject As String, body As String, emails() As Variant)
  • Dim emailsendto() as String
    Dim index as Integer
    index = 2
    ReDim emailsendto(index)
    emailsendto(0) = "me@email.com"
    emailsendto(1) = "example@example.com"
    SendEmail "Hello", "Good Morning!", emailsendto
  • SendEmailString(subject As String, body As String, emails As String)
  • SendEmailString "Hello", "Good Morning!", "me@email.com,example@example.com"
  • SendEmailStringCC(subject As String, body As String, emails As String, Optional emailCC As String = "", Optional emailBCC As String = "")
  • SendEmailStringCC "Hello", "Good Morning!", "me@email.com,example@example.com", "emailcc@copyto.com", "emailbcc@blindcopyto.com"
  • SendEmailStringCCAttach(subject As String, body As String, emails As String, Optional emailCC As String = "", Optional emailBCC As String = "", Optional attachment As String = "")
  • SendEmailStringCCAttach "Hello", "Good Morning!", "me@email.com,example@example.com", "emailcc@copyto.com", "emailbcc@blindcopyto.com", "C:\folder1\folder2\file.txt"
  • SendEmailStringHTML(subject As String, body As String, emails As String, Optional emailscc As String, Optional emailsbcc As String, Optional attachment As String, Optional signature As Boolean = True, Optional save As Boolean = True, Optional editable As Boolean = False)
  • SendEmailStringHTML "Hello", "<html><body><font size=""+5"" color=""red"">Good Morning!</font></body></html>", _
      "me@email.com,example@example.com", "emailcc@copyto.com", "emailbcc@blindcopyto.com", "C:\folder1\folder2\file.txt", True, True, False

    Note: SendEmailStringHTML function depends on the EncodeFile function (last function on the module). This one requires Microsoft XML, v6.0 (or v3.0) reference.

    About

    A collection of VBA functions for sending email through IBM Lotus Notes.

    Resources

    License

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published