feat: 寄送信箱改為 專用域名信箱
This commit is contained in:
parent
98293d34c2
commit
65419ae197
|
|
@ -52,16 +52,16 @@ class _ForgetPasswordPageState extends State<ForgetPasswordPage> {
|
||||||
|
|
||||||
Future<void> _sendEmail(String recipientEmail, String code) async {
|
Future<void> _sendEmail(String recipientEmail, String code) async {
|
||||||
final smtpServer = SmtpServer(
|
final smtpServer = SmtpServer(
|
||||||
'smtp.gmail.com',
|
'smtp.mail.me.com',
|
||||||
port: 587,
|
port: 587,
|
||||||
username: 'kueikuei8011@gmail.com',
|
username: 'ltesr125124015@icloud.com',
|
||||||
password: 'yqns onwf tydq obzl',
|
password: 'vwtp-bruz-xiav-rjee',
|
||||||
ssl: false,
|
ssl: false,
|
||||||
allowInsecure: false,
|
allowInsecure: false,
|
||||||
);
|
);
|
||||||
|
|
||||||
final message = Message()
|
final message = Message()
|
||||||
..from = Address('kueikuei8011@gmail.com', 'Kuei')
|
..from = Address('user_manager@comprehensive-guardian.systems', '全方位照護守護者')
|
||||||
..recipients.add(recipientEmail)
|
..recipients.add(recipientEmail)
|
||||||
..subject = '您的臨時密碼'
|
..subject = '您的臨時密碼'
|
||||||
..text = '您的臨時密碼是: $code';
|
..text = '您的臨時密碼是: $code';
|
||||||
|
|
|
||||||
|
|
@ -78,16 +78,16 @@ class _RegisterPageState extends State<RegisterPage> {
|
||||||
|
|
||||||
Future<void> _sendEmail(String recipientEmail, String code) async {
|
Future<void> _sendEmail(String recipientEmail, String code) async {
|
||||||
final smtpServer = SmtpServer(
|
final smtpServer = SmtpServer(
|
||||||
'smtp.gmail.com',
|
'smtp.mail.me.com',
|
||||||
port: 587,
|
port: 587,
|
||||||
username: 'kueikuei8011@gmail.com',
|
username: 'ltesr125124015@icloud.com',
|
||||||
password: 'yqns onwf tydq obzl',
|
password: 'vwtp-bruz-xiav-rjee',
|
||||||
ssl: false,
|
ssl: false,
|
||||||
allowInsecure: false,
|
allowInsecure: false,
|
||||||
);
|
);
|
||||||
|
|
||||||
final message = Message()
|
final message = Message()
|
||||||
..from = Address('kueikuei8011@gmail.com', 'Kuei')
|
..from = Address('user_manager@comprehensive-guardian.systems', '全方位照護守護者')
|
||||||
..recipients.add(recipientEmail)
|
..recipients.add(recipientEmail)
|
||||||
..subject = '您的驗證碼'
|
..subject = '您的驗證碼'
|
||||||
..text = '您的驗證碼是: $code';
|
..text = '您的驗證碼是: $code';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user