Hello,
I have created an e-mail template and when I do the e-ship a message appears in the footer of the e-mail : “ Leave this conversation to stop receiving e-mails of this type”, how do I hide / delete this message, so that it is not sent in the e-mail.
NCP
November 29, 2024, 5:08am
2
I think, that for you have to remove it from the code code.
I don’t know exactly where I should go.
Can you give more details of where to remove it?
NCP
November 30, 2024, 4:11am
4
You have to remove the code from core:
if email_account is not None:
if email_account:
q += " AND email_account = %(email_account)s"
q_args["email_account"] = email_account
else:
q += " AND (email_account is null OR email_account='')"
return frappe.db.sql(q, q_args)[0][0]
def get_unsubscribe_message(unsubscribe_message: str, expose_recipients: str) -> "frappe._dict[str, str]":
unsubscribe_message = unsubscribe_message or _("Unsubscribe")
unsubscribe_link = f'<a href="<!--unsubscribe_url-->" target="_blank">{unsubscribe_message}</a>'
unsubscribe_html = _("{0} to stop receiving emails of this type").format(unsubscribe_link)
html = f"""<div class="email-unsubscribe">
<!--cc_message-->
<div>
{unsubscribe_html}
</div>
</div>"""