Triggers: OnAfterUserConfirmation
Type: Code
User Automatic
Acccess: Everybody
Action: (the following)
PHP method...
if (!isset($_COOKIE)) {
$user = '[cookiename]';
setcookie(
'cookiename',
$user,
time() + (86400 * 120), // Expiration time: 120 days
'/', // Path
'.domain.com', // Domain
true, // Secure (HTTPS)
true // HTTPOnly
);
}
Triggers: OnAfterUserConfirmation
Type: Code
User Automatic
Acccess: Everybody
Action: (the following)
PHP method...
if (isset($_COOKIE)) {
$cookieValue = $_COOKIE;
$user = "[username]";
$to = "myname@domain.com";
$subject = "User $cookieValue registered again as $user";
$txt = "Text to be sent in the body of the email";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type: text/plain; charset=UTF-8" . "\r\n";
$headers .= "From: info@xstream.gr";
if ($user !== $cookieValue) {
mail($to, '=?UTF-8?B?'.base64_encode($subject).'?=', $txt, $headers);
}
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.