Comments (10)
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 specific to LibreOffice, to send emails.
It is possible to write a macro (in Basic or Python), a component or an extension (in 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.
from emailerooo.
from emailerooo.
The following code examples are in Python and are extracted from the code implemented in the eMailerOOo extension:
-
To send an email without attachment as done in the eMailerOOo ISPDB wizard with the Send email button (see screenshot)
-
To send emails optionally with attachments as is done when you start the eMailerOOo spooler.
-
All UNO services and the methods that these services offer are described in the idl files in the com.sun.star.mail folder.
from emailerooo.
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.
from emailerooo.
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?
from emailerooo.
Great idea. Wider audience and all that. Totally outside my skill-set however.
from emailerooo.
Well, that's it... I think it's the best Basic API that exists for sending emails.
We couldn't make it simpler...
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...
I'm closing, you're free to open another one if necessary...
from emailerooo.
Most grateful. Thank you.
from emailerooo.
Your welcome. I just updated the SendEmail macro, the example is more elaborate...
You need to re-download the extension.
from emailerooo.
I had to modify the API again so that it would be able to report us if the IspDB connection Wizard was canceled...
I think that now the API should be functional, I will let you report any malfunction...
from emailerooo.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emailerooo.