Haytni.InvitableEmail (Haytni v0.7.0) View Source

Link to this section Summary

Link to this section Functions

Link to this function

invitation_email(user, invitation, module, config)

View Source

Specs

invitation_email(
  user :: Haytni.user(),
  invitation :: Haytni.InvitablePlugin.invitation(),
  module :: module(),
  config :: Haytni.config()
) :: Bamboo.Email.t()

Email an invitation

In the invitation templates, user is the sender of the invitation, you have full access to it, so you can use any field from its schema so you can refer to it by its surname if you like.