Hi,
Does any one know how to send e-mail using Lotus Notes ?
Here is my VC++6.0 code, it works for outlook, not for Lotus Notes:
( I'm using PDF converter 2.09 )
{
const long SMO_PROMPT_RECIPIENT = 2;
long lThePrinter=0;
CString csEmailFilePath = “e:\\PDF_OUT\\mypdf.pdfâ€;
CString csPrinter = “â€iiAmyuniâ€; //assume this printer was installed already
_bstr_t bsPrinter(csPrinter);
_bstr_t bsTheFile(csEmailFilePath );
CDIntfEx::ICDIntfExPtr AmyuniPDF("CDIntfEx.CDIntfEx");
lThePrinter = AmyuniPDF->DriverInit(bsPrinter);
AmyuniPDF->PutFileNameOptions(0x0);
AmyuniPDF->SendMail("","","","Enter the title","Please provide your message",bsTheFile,SMO_PROMPT_RECIPIENT);
AmyuniPDF->PutFileNameOptions(0x0);
AmyuniPDF->DriverEnd();
AmyuniPDF.Release();
}
Thanks,
Victor Yao (victor.yao@illustrateinc.com)
How to Send e-mail using Lotus Notes
-
- Posts: 1
- Joined: Mon May 17 2004
- Location: Toronto
Hello,
Outlook and Outlook Express are MAPI compliant while Lotus is not.
SendMail is used for Mapi mail applications, for Lotus and other non Mapi applications you can use SendSmtpMail() function.
This function is called similarly to SendMail but the first two parameters are the host name and the port:
SendSmtpMail Host Name, Port, From, To, Cc, Bcc, Subject, Message, FileName
This is a function of the Document Interface of CDIntf, i am not sure if this was inlcuded in version 2.09, if not you may need to upgrade to version 2.10.
Outlook and Outlook Express are MAPI compliant while Lotus is not.
SendMail is used for Mapi mail applications, for Lotus and other non Mapi applications you can use SendSmtpMail() function.
This function is called similarly to SendMail but the first two parameters are the host name and the port:
SendSmtpMail Host Name, Port, From, To, Cc, Bcc, Subject, Message, FileName
This is a function of the Document Interface of CDIntf, i am not sure if this was inlcuded in version 2.09, if not you may need to upgrade to version 2.10.