Skip to content

Commit

Permalink
Extend the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
amureki committed Aug 17, 2023
1 parent 0247130 commit b74e368
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion emark/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,15 @@ def get_subject(self, **context):
return self.subject % context

def get_preheader(self):
"""Return the email's preheader."""
"""
Return the email's preheader.
A brief text that recipients will see in their inbox before opening the email
along with the subject. Unless explicitly set, the preheader will be the first
paragraph of the email's body.
Can be useful to grab the recipient's attention and/or simplify their workflow
(e.g. by providing a one-time-password).
"""
return ""

def get_markdown(self, context, utm):
Expand Down

0 comments on commit b74e368

Please sign in to comment.