Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Welcome Email?
I want to send a welcome email when people join, I have my registration set the to "basic" method. Basically, as soon as they join I want to send them an email that just says welcome to the site.
0
Comments
$this->FireEvent('AfterInsertUser');
So you could write a plugin that hooks that method, like so:
public function UserModel_AfterInsertUser_Handler($Sender) { ... }
Within that hook you could add some code to send an email to the newly inserted user whose ID would be available in the EventArguments, like so:
$Sender->EventArguments['InsertUserID']
Vanilla Forums COO [GitHub, Twitter, About.me]
$UserID = GetValue('InsertUserID', $Sender->EventArguments, NULL); if (!is_null($UserID) { $UserData = $Sender->Get($UserID); $UserEmail = GetValue('Email', $UserData); }
Vanilla Forums COO [GitHub, Twitter, About.me]
Vanilla Forums COO [GitHub, Twitter, About.me]