+ Reply to Thread
Results 1 to 10 of 10

vba to send email and attachments via lotus 8.5

  1. #1
    Forum Contributor
    Join Date
    08-04-2010
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    143

    vba to send email and attachments via lotus 8.5

    Hi all,

    I have found a code at http://www.fabalou.com/VBandVBA/lotusnotesmail.asp. The code is supposed to send email and attachment using vba.
    Please Login or Register  to view this content.
    qn1 : which "UserName" should i change to my own username?
    eg, my username is Dan2010.
    Please Login or Register  to view this content.
    do i change all the "UserName"?

    qn2 : which "Attachment" should i change to the location of my attachment?
    for eg, my attachment is at c:\Users\Dan\newfolder
    Please Login or Register  to view this content.
    qn3 : what other commands do i have to add if i need to attach more than 1 attachment?
    ps : my attachments can be in pdf format or jpeg

    Thanks alot in advance

    Regards,
    Dan
    Last edited by dan2010; 11-02-2010 at 09:02 PM.

  2. #2
    Forum Contributor
    Join Date
    08-04-2010
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    143

    Re: vba to send email and attachments via lotus 8.5

    anybody know how to answer my 3 questions?

  3. #3
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: vba to send email and attachments via lotus 8.5

    I'm off out soon so haven't time to specifically answer your questions (I also don't use Lotus any more so can't test anything) but the attached is a more simplified code for sending a workbook as an attachment via Lotus. In this case it's the active workbook but can be quite easily adapted to be any file you want.

    To add more than one attachment you would just either repeat these lines with the specific attachment required assigned to stAttachment or create some kind of loop:

    Please Login or Register  to view this content.

    Hope it helps,

    Dom
    Attached Files Attached Files
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  4. #4
    Forum Contributor
    Join Date
    08-04-2010
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    143

    Re: vba to send email and attachments via lotus 8.5

    Quote Originally Posted by Domski View Post

    To add more than one attachment you would just either repeat these lines with the specific attachment required assigned to stAttachment or create some kind of loop:

    Please Login or Register  to view this content.
    do u mean this?
    eg.
    Please Login or Register  to view this content.
    and for multiple attachments,

    Please Login or Register  to view this content.
    thanks

  5. #5
    Forum Contributor
    Join Date
    08-04-2010
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    143

    Re: vba to send email and attachments via lotus 8.5

    can anybody ans my qn? thanks

  6. #6
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: vba to send email and attachments via lotus 8.5

    To answer your questions:

    1. No change should be necessary because Session.UserName should be your user name. Verify this by stepping through the code in the debugger.

    2 and 3. In your posted code the Attachment variable is a string containing the full path and filename of an attachment, so this is the part you need to change. You'll also need to specify a unique rich text item name for each attached file. For example:
    Please Login or Register  to view this content.
    Last edited by Chippy; 10-31-2010 at 10:54 AM.

  7. #7
    Forum Contributor
    Join Date
    08-04-2010
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    143

    Re: vba to send email and attachments via lotus 8.5

    i shall try that tomorrow when i have access to lotus. thanks
    Last edited by dan2010; 11-01-2010 at 08:34 AM.

  8. #8
    Forum Contributor
    Join Date
    08-04-2010
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    143

    Re: vba to send email and attachments via lotus 8.5

    it works perfectly. thank you

  9. #9
    Registered User
    Join Date
    02-20-2014
    Location
    London,England
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: vba to send email and attachments via lotus 8.5

    That helped me as well, thank you

  10. #10
    Registered User
    Join Date
    01-19-2015
    Location
    Farnham, England
    MS-Off Ver
    2010
    Posts
    1

    Re: vba to send email and attachments via lotus 8.5

    Well, that saved me some time, thanks for that

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1