How to Send e-mail using Lotus Notes

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
iiVictorYao
Posts: 1
Joined: Mon May 17 2004
Location: Toronto

How to Send e-mail using Lotus Notes

Post by iiVictorYao »

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)
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

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.
Post Reply