Activation of the e-mail to activate user accounts

is there a simple way in Dreamweaver to send users registered an Activation Email to activate their accounts before they are allowed to connect, in the database, I have 2 fields (active and code) course with e-mail etc.

Dreamweaver does not. You must use a language aside server such as PHP to send the e-mail. The email contains a link to a page on your site that will process the return. The link must contain the identification number assigned to the user as a url parameter. Some examples of code for this:

Entered into the database, now send us e-mail
$objet_message = "" $company site registration: $first_name $last_name ";"
$email_body = "thank you for signing up\n".
Please click on the following link to complete your registration\n

the next line is the link to the Web site. He goes to a page called password and has two parameters: check and user_id
USER_ID to check / $ https://website.com/Password/$
\n
$your_details_are_below_lbl:

$name_lbl: $first_name $last_name
$address_lbl: $address_1
$address_lbl 2: $address_2
$city_lbl: $city
$state_lbl: $state
$country_lbl: $country
$postal_code_lbl: $zip
$email_lbl: $email
$phone_lbl: $phone
$gender_lbl: $gender
$dob_lbl: $dob

$company
$email_public
$phone_c
$address_1_c
$city_c $state_c $country_c $zip_c
";
$headers = array();
$headers [] = "MIME-Version: 1.0";
$headers [] = "content-type: text/plain;" charset = utf - 8 ";"
$headers [] = "from: $company <$email_public>";
$headers [] = "reply-To: $email_public";
$headers [] = ' return-Path: $email_public ";
$headers [] = ' X-Mailer: PHP / ".phpversion ();.

$à = "$first_name $last_name <$email>";
mail ($à, $email_subject, $email_body, implode ("\r\n", $headers));

Tags: Dreamweaver

Similar Questions

Maybe you are looking for