diff --git a/addons/website_mail_channel/data/mail_template_data.xml b/addons/website_mail_channel/data/mail_template_data.xml
index 52859d08aae..88fc73cb9f6 100644
--- a/addons/website_mail_channel/data/mail_template_data.xml
+++ b/addons/website_mail_channel/data/mail_template_data.xml
@@ -7,84 +7,18 @@
Confirm subscription to ${object.name}
-
-
-
-
-
-
-
-
- Your Channel
- ${object.name}
- |
-
- |
-
-
- |
-
- |
-
-
-
-
-
-
-
- Hello,
- You have requested to be subscribed to the mailing list ${object.name}.
-
- To confirm, please visit the following link: ${ctx['token_url']}
-
- If this was a mistake or you did not requested this action, please ignore this message.
- % if user.signature
-
- ${user.signature | safe}
- % endif
-
- |
-
-
- |
-
- |
-
-
-
- |
-
- |
-
-
-
- |
-
-|
-
- |
-
-
+
+ Hello,
+ You have requested to be subscribed to the mailing list
${object.name}.
+
+ To confirm, please visit the following link:
${ctx['token_url']}
+
+ If this was a mistake or you did not requested this action, please ignore this message.
+ % if user.signature
+
+ ${user.signature | safe}
+ % endif
+
@@ -93,84 +27,18 @@
Confirm unsubscription to ${object.name}
-
-
-
-
-
-
-
-
- Your Channel
- ${object.name}
- |
-
- |
-
-
- |
-
- |
-
-
-
-
-
-
-
- Hello,
- You have requested to be unsubscribed to the mailing list ${object.name}.
-
- To confirm, please visit the following link: ${ctx['token_url']}.
-
- If this was a mistake or you did not requested this action, please ignore this message.
- % if user.signature:
-
- ${user.signature | safe}
- % endif
-
- |
-
-
- |
-
- |
-
-
-
- |
-
- |
-
-
-
- |
-
-|
-
- |
-
-
+
+ Hello,
+ You have requested to be unsubscribed to the mailing list
${object.name}.
+
+ To confirm, please visit the following link:
${ctx['token_url']}.
+
+ If this was a mistake or you did not requested this action, please ignore this message.
+ % if user.signature:
+
+ ${user.signature | safe}
+ % endif
+
diff --git a/addons/website_mail_channel/models/mail_channel.py b/addons/website_mail_channel/models/mail_channel.py
index a06fda8e0d5..c3510fc3139 100644
--- a/addons/website_mail_channel/models/mail_channel.py
+++ b/addons/website_mail_channel/models/mail_channel.py
@@ -45,8 +45,11 @@ class MailGroup(models.Model):
force_send=True,
email_values={
'recipient_ids': [(4, partner_id)],
- 'email_from': website.company_id.email,
- }
+ 'email_from': website.company_id.email_formatted,
+ 'author_id': self.create_uid.partner_id.id,
+ 'message_type': 'user_notification',
+ },
+ notif_layout='mail.mail_notification_light',
)
return True