Results 1 to 9 of 9

Thread: Email using Lotus Server

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    New Delhi, India
    Posts
    75
    I plan to create an application that would send email to users within the organization. My organization is using Lotus server as the messaging system. How can I send mail from VB using lotus notes. All the users have lotus notes client intalled on their machine. I do not want to open this client to send mail instead I want to send it through VB directly. IS THERE ANY WAY IT CAN BE DONE?

  2. #2
    Member Red Thread's Avatar
    Join Date
    Aug 2000
    Location
    Europe-Belgium
    Posts
    44

    Cool Problem solved?

    Hi there !

    I'm wrestling with the same problem here. I see there was no response to your question so... did you find the solution by yourself ?

    If so, can you please say how to solved it ?

    Thx Mario

  3. #3
    Member Red Thread's Avatar
    Join Date
    Aug 2000
    Location
    Europe-Belgium
    Posts
    44

    Cool e-mail

    ok, but i noticed you haven't a email adress in your personal settings so... here's mine.

    [email protected]

    I'm waiting for your call !

    Greetings, Mario

  4. #4
    Member
    Join Date
    Nov 2000
    Location
    Vienna, Austria
    Posts
    62

    not over VB direct

    There is no way to send mail(Lotus Notes) over VB directly(at least as far as I know), since Notes(and it's servers) are using their own way to transfer mails, which is different from MS protocols. You will still have to send it over the Notes Client.
    If you need the code to generate emails with Notes over VB let me know and I will post it.
    Cheers
    Life is trip, eat it and smile.

  5. #5
    Member Red Thread's Avatar
    Join Date
    Aug 2000
    Location
    Europe-Belgium
    Posts
    44

    Talking lotus notes

    post the code anyway comora

  6. #6
    Guest
    IDS mail (http://www.intuitive-data.com) can make this quite easy.

  7. #7
    Member
    Join Date
    Nov 2000
    Location
    Vienna, Austria
    Posts
    62

    Wink enjoy

    I still had problems with this code though. For some reason the mails generated could not be send. Maybe somebody has any ideas :-)

    Public Sub send_lotus(subject As String, attachment As String, recipient As String, bodytext As String, saveit As Boolean)

    Dim maildb As Object
    Dim username As String
    Dim maildbname As String
    Dim maildoc As Object
    Dim attachme As Object
    Dim session As Object
    Dim embedobj As Object

    Set session = CreateObject("Notes.Notessession")
    username = session.username
    maildbname = Left$(username, 1) & Right$(username, Len(username) - InStr(1, username, "")) & ".nsf"
    Set maildb = session.getdatabase("", "maildbname")
    If maildb.isopen = True Then
    Else
    maildb.openmail
    End If

    Set maildoc = maildb.createdocument
    maildoc.Form = "Memo"
    maildoc.sendto = recipient
    maildoc.subject = subject
    maildoc.body = bodytext
    maildoc.savemessageonsend = saveit
    If attachment <> "" Then
    Set attachme = maildoc.creatrichtextitem("Attachment")
    Set embedobj = attachme.embedobject(1454, "", attachment, "Attachment")
    End If
    maildoc.send 0, recipient
    End Sub
    Life is trip, eat it and smile.

  8. #8
    Member Red Thread's Avatar
    Join Date
    Aug 2000
    Location
    Europe-Belgium
    Posts
    44

    Talking It IS possible

    Well, for those who are still interested...

    Thx to tppradeep18 (great tip/code) i've found the solution. It IS possible (quite simple infact...) to send e-mail via lotus. Without any third-party software.
    Inclusive attachements, multiple reciever, notify, etc...

    I've your interested, pls mail me.

    [email protected]

  9. #9
    Member
    Join Date
    Nov 2000
    Location
    Vienna, Austria
    Posts
    62

    SMTP or POP3?

    Hi again,
    actually the code I posted earlier works fine. I just forgot something. You will have to add which kind gateway it used.
    When I added @SMTP to the email-address it worked.
    Try it out.
    Life is trip, eat it and smile.

Posting Permissions

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



Click Here to Expand Forum to Full Width