-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seeking example code #4
Comments
Hi axtens,
eMailerOOo is an extension written in Python allowing, through the use of UNO services specific to LibreOffice, to send emails. eMailerOOo is not an API in the broad sense, but only an extension of LibreOffice's UNO services and will only be accessible via programs written in LibreOffice (macro, component or LibreOffice extension). Now if this satisfies you, then I could give you some example code to send an email. |
That would most definitely satisfy me.
…On Wed, 13 Sept 2023 at 17:10, prrvchr ***@***.***> wrote:
Hi axtens,
Is it impossible simply to create a mail object, populate fields and send
as one might do in C# with Microsoft's Mail libraries or via Google Apps
Script and GMail? If it is impossible, please point out to me a possible
solution.
eMailerOOo is an extension written in Python allowing, through the use of UNO
services <https://en.wikipedia.org/wiki/Universal_Network_Objects>
specific to LibreOffice, to send emails.
It is possible to write a macro (in Basic or Python), a component or an
extension (in Basic, Python, Java or C) in LibreOffice which will use these
UNO services in order to send emails.
eMailerOOo is not an API in the broad sense, but only an extension of
LibreOffice's UNO services and will only be accessible via programs written
in LibreOffice (macro, component or LibreOffice extension).
Now if this satisfies you, then I could give you some example code to send
an email.
—
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABTFVP25KXOUSKKWZYBRADX2F2CHANCNFSM6AAAAAA4VXMZSA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
The following code examples are in Python and are extracted from the code implemented in the eMailerOOo extension:
|
This is harder than I thought. I can read Python a little bit. Trying to get my head into the OO environment is harder. Sadly the client's work is all in BASIC. |
I must admit that under Basic only the methods of the SpoolerService.idl and MailMessage2.idl UNO services should be accessible... Nothing exists regarding the Mozilla IspDB configuration wizard at least it is not accessible from Basic... We should define what should be accessible from Basic, and why not integrate this into the next version? |
Great idea. Wider audience and all that. Totally outside my skill-set however. |
Well, that's it... I think it's the best Basic API that exists for sending emails. Everything happens in the new macro that you can find in: Tools -> Macros -> Edit Macros... -> eMailerOOo -> SendEmail Be careful, the macros do not work if no document is open and the version of the extension has not changed... |
Most grateful. Thank you. |
Your welcome. I just updated the SendEmail macro, the example is more elaborate... |
I had to modify the API again so that it would be able to report us if the IspDB connection Wizard was canceled... |
I finally have managed to get everything installed properly and working ... up to a point. I was rather hoping for some demonstration code and I haven't seen much. I may not be looking in the correct location.
My client already has an application fully built and is not about to make wholesale changes to accommodate a different workflow. I have been asked simply to find an email tool that will talk to GMail via OAuth and bolt that on as simply as possible to the existing code base in place or the previous username/password email client that had been in use before.
Is it impossible simply to create a mail object, populate fields and send as one might do in C# with Microsoft's Mail libraries or via Google Apps Script and GMail? If it is impossible, please point out to me a possible solution.
The text was updated successfully, but these errors were encountered: