Git Product home page Git Product logo

Comments (10)

prrvchr avatar prrvchr commented on May 20, 2024

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.

axtens avatar axtens commented on May 20, 2024

from emailerooo.

prrvchr avatar prrvchr commented on May 20, 2024

The following code examples are in Python and are extracted from the code implemented in the eMailerOOo extension:

from emailerooo.

axtens avatar axtens commented on May 20, 2024

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.

prrvchr avatar prrvchr commented on May 20, 2024

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.

axtens avatar axtens commented on May 20, 2024

Great idea. Wider audience and all that. Totally outside my skill-set however.

from emailerooo.

prrvchr avatar prrvchr commented on May 20, 2024

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.

axtens avatar axtens commented on May 20, 2024

Most grateful. Thank you.

from emailerooo.

prrvchr avatar prrvchr commented on May 20, 2024

Your welcome. I just updated the SendEmail macro, the example is more elaborate...
You need to re-download the extension.

from emailerooo.

prrvchr avatar prrvchr commented on May 20, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.