✨ send logic for welcome mail
This commit is contained in:
parent
6910ea0e7a
commit
6b8addab1a
|
@ -96,7 +96,8 @@
|
|||
|
||||
if($is_new){
|
||||
// send welcome mail
|
||||
self::send_welcome_mail(mail_address: $mail_address);
|
||||
$content = self::content_file_read("0000-00-00-welcome");
|
||||
self::send(mail_address: $mail_address, content: $content);
|
||||
|
||||
} else {
|
||||
// fake delay
|
||||
|
@ -109,15 +110,6 @@
|
|||
|
||||
|
||||
|
||||
/**
|
||||
* HELPER: Send welcome mail to new recipient.
|
||||
*
|
||||
* @param string $mail_address Recipient mail address.
|
||||
*/
|
||||
private static function send_welcome_mail(string $mail_address): void {
|
||||
/**/print_r(["send_welcome_mail" => $mail_address]);
|
||||
//*/ TODO
|
||||
|
||||
/**
|
||||
* HELPER: Read one content file.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue