Send a welcome email to your new registered members.
Open account-signup.php and find:
And add directly after:
Open config.php and add:
Lastly, confirm or change the following line in config.php to [color=rgb(184, 49, 47)]"pear"[/color]
This is assuming you have filled out SMTP settings in both config & php.ini. Enjoy. I look to updating this to support full HTML theme for email body. Post will be updated to reflect those changes.
Open account-signup.php and find:
//ADMIN CONFIRM
if ($site_config["ACONFIRM"]) {
$body = T_("YOUR_ACCOUNT_AT")." ".$site_config['SITENAME']." ".T_("HAS_BEEN_CREATED_YOU_WILL_HAVE_TO_WAIT")."\n\n".$site_config['SITENAME']." ".T_("ADMIN");
}else{//NO ADMIN CONFIRM, BUT EMAIL CONFIRM
$body = T_("YOUR_ACCOUNT_AT")." ".$site_config['SITENAME']." ".T_("HAS_BEEN_APPROVED_EMAIL")."\n\n ".$site_config['SITEURL']."/account-confirm.php?id=$id&secret=$psecret\n\n".T_("HAS_BEEN_APPROVED_EMAIL_AFTER")."\n\n ".T_("HAS_BEEN_APPROVED_EMAIL_DELETED")."\n\n".$site_config['SITENAME']." ".T_("ADMIN");
}And add directly after:
// Auto Email New Users - Feb 1, 2020
if ($site_config["WELCOMEEMAIL"]) {
sendmail($email, "Welcome to $site_config[SITENAME]", $site_config["WELCOMEEMAILBODY"], "", "-f".$site_config['SITEEMAIL']);
}Open config.php and add:
// Feb 1, 2020 - New signup email
$site_config['WELCOMEEMAIL'] = true;
$site_config['WELCOMEEMAILBODY'] = 'Welcome to the site! We are updating our automatic emails.';Lastly, confirm or change the following line in config.php to [color=rgb(184, 49, 47)]"pear"[/color]
$site_config["mail_type"] = "pear";This is assuming you have filled out SMTP settings in both config & php.ini. Enjoy. I look to updating this to support full HTML theme for email body. Post will be updated to reflect those changes.