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)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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)
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).
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Jun 25
|
940 | ||
|
1
May 25
|
904 | ||
|
2
May 25
|
966 | ||
|
0
Apr 25
|
913 | ||
|
1
Apr 25
|
1237 |