Discussion Locked

Sending Lotus Notes email from VB

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Does anybody knows how to send email from vb with a Lotus Notes mailserver? Can this be done with the CDO library ?
Can you give me any sample code ?
Thanks in advance,

Eric

3 replies

by jcprince

Hi,

I've used the CDO library and generated emails from a Notes mailserver using both ASP and VBScript (WSH). Sample code below:

strFrom = "ORIGINATOR TO GO HERE"
strTo = "RECIPIENT TO GO HERE"
strSubject = "EMAIL SUBJECT GOES HERE"
strBody= "EMAIL BODY GOES HERE"

et objSendMail = CreateObject("CDONTS.NewMail")
objSendMail.From = strFrom
objSendMail.To = strTo
objSendMail.Subject = strSubject
objSendMail.Body = strBody
objSendMail.Send
Set objSendMail = Nothing

This discussion is closed to new replies.