Skip to Content
Menu
This question has been flagged
1 Reply
284 Views

How can I create an email draft from a mail template? I don't want to automatically send the email.

I'm looking for a kind of <a href="mailto:....."> functionality that can take information and attachments from the model.


(Odoo 18 community edition)

Avatar
Discard
Best Answer

First thing first, if you're talking about a neatly - or in any way - styled email, this is not possible. The specifications of mailto, which is not related to Odoo in any way, prevents you from doing this (see for example a discussion here: https://stackoverflow.com/questions/5620324/mailto-link-with-html-body).

If that's not an issue, you can define a mailto's body like this:

<a href="mailto:mail@example.com?subject=Hello world&body=Line one%0DLine two">Mailto Link</a>

Now, how to implement this, depends on how/where you'd like to use it. In any case it requires custom development.

Apart from that, you can always create mail templates in Odoo for later use. You can however not create a draft (like you know it from a mail client of your choice) for a mail in Odoo (again, without customization, that is).

Avatar
Discard
Related Posts Replies Views Activity
1
Jun 25
940
1
May 25
904
2
May 25
966
0
Apr 25
913
1
Apr 25
1237