feat: change email subject
This commit is contained in:
parent
eba2e0d4db
commit
8f6b01a692
|
|
@ -55,10 +55,13 @@ impl Mailer {
|
||||||
lettre::Address::new("notify", "appflowy.io")?,
|
lettre::Address::new("notify", "appflowy.io")?,
|
||||||
))
|
))
|
||||||
.to(lettre::message::Mailbox::new(
|
.to(lettre::message::Mailbox::new(
|
||||||
Some(param.username),
|
Some(param.username.clone()),
|
||||||
email.parse().unwrap(),
|
email.parse().unwrap(),
|
||||||
))
|
))
|
||||||
.subject("AppFlowy Workpace Invitation")
|
.subject(format!(
|
||||||
|
"Action required: {} invited you to {} in AppFlowy",
|
||||||
|
param.username, param.workspace_name
|
||||||
|
))
|
||||||
.header(ContentType::TEXT_HTML)
|
.header(ContentType::TEXT_HTML)
|
||||||
.body(rendered)?;
|
.body(rendered)?;
|
||||||
|
|
||||||
|
|
@ -70,7 +73,7 @@ impl Mailer {
|
||||||
#[derive(serde::Serialize)]
|
#[derive(serde::Serialize)]
|
||||||
pub struct WorkspaceInviteMailerParam {
|
pub struct WorkspaceInviteMailerParam {
|
||||||
pub user_icon_url: String,
|
pub user_icon_url: String,
|
||||||
pub username: String,
|
pub username: String, // Inviter
|
||||||
pub workspace_name: String,
|
pub workspace_name: String,
|
||||||
pub workspace_icon_url: String,
|
pub workspace_icon_url: String,
|
||||||
pub workspace_member_count: String,
|
pub workspace_member_count: String,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue