Link to home
Start Free TrialLog in
Avatar of nigelboyle
nigelboyle

asked on

Send Email in C#/C++

I've been trying to send an email through Lotus Notes from C#/C++ but I haven't been able to get it working. I was wondering if anyone has any links or knows how could give some basic code for this. Thanks.
Avatar of SysExpert
SysExpert
Flag of Israel image

Have you checked the C API redbook from IBM. It should have plenty of samples.

I would start here

http://www-128.ibm.com/developerworks/views/lotus/library.jsp

I hope this helps !
ASKER CERTIFIED SOLUTION
Avatar of Sjef Bosman
Sjef Bosman
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nigelboyle
nigelboyle

ASKER

sjef_bosman, that seems to work fine except for the send option at the end. (This is in Visual C++ .NET 2005, I converted the code) The second parameter of the function send is supposedly optional, but I can't seem to find anything that will send through nothing/null. I probably haven't included the right headers or something. Do any of you have any ideas? I'll post in the C++ .NET if nothing comes up about this.
According to
    http://www-12.lotus.com/ldd/doc/tools/cplus/2.3/lncpp23.nsf
the Send-function has but one parameter: whether or not to include the form. Set it to false or 0.
Function?? Method... Did I betray my C background?
I guess the function thing was my fault, lol. I haven't actually been using the C++ API but the domino dll that's registered in COM. I think it'd probably be better to use the C++ API, but I'm having a compiling problem with it (I've followed the instructions properly, I think). I get Error: No Platform Specified. Do you know anything about this?
I s'pose you have to tell your compiler for what platform you're developing. But how??? Don't ask me.