Updated default sender name
This commit is contained in:
parent
0c2b24d1d5
commit
489766afdc
13
app/init.php
13
app/init.php
|
@ -124,8 +124,8 @@ $register->set('smtp', function () use ($request) {
|
|||
$mail->SMTPSecure = $request->getServer('_APP_SMTP_SECURE', false);
|
||||
$mail->SMTPAutoTLS = false;
|
||||
|
||||
$from = $request->getServer('_APP_SYSTEM_EMAIL_NAME', APP_NAME.' Team');
|
||||
$email = $request->getServer('_APP_SYSTEM_EMAIL_ADDRESS', 'team@appwrite.io');
|
||||
$from = $request->getServer('_APP_SYSTEM_EMAIL_NAME', APP_NAME.' Server');
|
||||
$email = $request->getServer('_APP_SYSTEM_EMAIL_ADDRESS', APP_EMAIL_TEAM);
|
||||
|
||||
$mail->setFrom($email, $from);
|
||||
$mail->addReplyTo($email, $from);
|
||||
|
@ -263,4 +263,11 @@ if (APP_MODE_ADMIN === $mode) {
|
|||
}
|
||||
|
||||
// Set project mail
|
||||
$register->get('smtp')->setFrom(APP_EMAIL_TEAM, sprintf(Locale::getText('auth.emails.team'), $project->getAttribute('name')));
|
||||
$register->get('smtp')
|
||||
->setFrom(
|
||||
$request->getServer('_APP_SYSTEM_EMAIL_ADDRESS', APP_EMAIL_TEAM),
|
||||
($project->getUid() === 'console')
|
||||
? $request->getServer('_APP_SYSTEM_EMAIL_NAME', APP_NAME.' Server')
|
||||
: sprintf(Locale::getText('auth.emails.team'), $project->getAttribute('name')
|
||||
)
|
||||
);
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
data-scope="console"
|
||||
data-event="submit"
|
||||
data-success="alert"
|
||||
data-success-alert="We have sent you a mail with a password reset link"
|
||||
data-success-param-alert-text="We have sent you a mail with a password reset link"
|
||||
data-failure="alert"
|
||||
data-failure-param-alert-text="Password recovery failed"
|
||||
data-failure-param-alert-classname="error">
|
||||
|
|
Loading…
Reference in a new issue