send logic for welcome mail

This commit is contained in:
DrMaxNix 2024-02-10 23:13:56 +01:00
parent 6910ea0e7a
commit 6b8addab1a
1 changed files with 2 additions and 10 deletions

View File

@ -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.
*