Hi,
I am wondering if anyone out there can help me with the following issue? I’m by no meassure a Notes expert, so this question may not be all that thought-provoking nor impressive ;-).
I’m using the C++ api (2.4), and I would like to be able to send a memo, programmatically, for diagnisic purposes. In particular, when the application encounters unusual and/or harmful circumstances, I would like to generate and send a memo to a diagnostic mailbox. At the same time, I would prefer this memo not get saved within the mail database (within the Sent folder.)
Is there a way to do this in Notes? I know it can be done in Exchange/Outlook/MAPI (boo/hiss)via the PR_DELETE_AFTER_SUBMIT property. I just thought I’d mention that to inspire responses ;-).
Thanks for your time and consideration!
James
Subject: Sending a memo invisibly
You could try the old fashioned method by using the server console and entering command line prompts into the SMTP process.
You need to have SMTP running as a process. Then refer to here 4.1.1. COMMAND SEMANTICS
For a full description of how to send a mial from an anonymous/fictious user.
We used to do this during the Notes Vs Exchange Wars in the 90’s. We would send prospective customers and email form William_Gates@Microsoft.com offering them a job at $1 million a year to sjow how unscure SMTP as a protocol is.
Subject: Sending a memo invisibly
I am not a C++ api expert, but I would say that what you want as an email may have to be accomplished. You should be able create a Notesdocument and give it the proper information.
As for the “send the email, but don’t save it”, then just do the send command and not the save command.
If you are familiar with LotusScript it would give you a good handle of what you can and can’t do – which could be a good way to understand what you can or can’t do within the API.
HTH – Cheers
Subject: RE: Sending a memo invisibly
Another historical work-around has been to create a memo document directly in the mail.box and save it there.
Subject: RE: Sending a memo invisibly
Hi Doug,
Thanks for your response. I appreciate your effort. Your suggestion would be perfect, except the diagnostic message I hope to send will most certainly leave the Notes domain (i.e., go out into the Internet). That’s a bummer. Your suggestion would be most appropriate if it weren’t for that fact. I apologize fornot stating that issue in my original posting
Best Regards,
James
Subject: RE: Sending a memo invisibly
That does work, but you are only saving the document to the mail.box not sending.
Note that this is not a supported method from Lotus/IBM, but is used in their maillist template).
HTH – Cheers
Subject: RE: Sending a memo invisibly
Hi Joe,
Thanks for your responses. I greatly appreciate your time and consideration. The message I want to send needs to go out onto the Internet, so creating a document within the Notes mailbox is, unfortunately, not an option. You’re previous response should hopefully do the trick.
Thanks again!
Best Regards,
James