Jump to content

Can I send an activation email with php?


gizmorattler

Recommended Posts

Okay, I got the other parts of this script to input the form information into my database, but this part of the code is not sending the user the activation email. Please Help!?

 

I've attached the complete script for an extra pair of eyes. Thanks

 

/!!!!!!!!!!!!!!!!!!!!!!!!!    Email User the activation link    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     $myemail = "admin@knirv.com";
       $emess = "First Name: $firstname\n";
       $emess.= "Last Name: $lastname\n";
       $emess.= "Email 1: $email1\n";
       $emess.= "Email 2: $email2\n";
       $emess.= "City: $city\nState: $state\nZip/Post Code:$zip\n";
       $emess.= "Country: $scountry\n";
       $emess.= "Phone number 1: $phone1\n";
       $emess.= "Phone number 2: $phone2\n";
       $emess.= "Phone number 3: $phone3\n";
       $emess.= "Comments: $sendmail";
       $ehead = "From: $myemail\r\n"; 
       $subj = "Complete knirv.com registration!";
      $mailsend=mail("$myemail","$subj","$emess","$ehead");
          //Begin HTML Email Message
    $message = "Hi $firstname,

   Complete this step to activate your login identity at knirv.com.

   Click the line below to activate when ready.

   http://www.knirv.com/activation.php?id=$id&sequence=$db_password
   If the URL above is not an active link, please copy and paste it into your browser address bar

   Login after successful activation using your:  
   E-mail Address: $email 
   Password: $password

   See you on the site!
   admin@knirv.com";
   //end of message
       unset($_GET['do']);

       header("Location: thank_you.php");
     break;

   }
   
   $msgToUser = "<h2>One Last Step - Activate through Email</h2><h4>OK $firstname, one last step to verify your email identity:</h4><br />
   In a moment you will be sent an Activation link to your email address.<br /><br />
   <br />
   <strong><font color=\"#990000\">VERY IMPORTANT:</font></strong> 
   If you check your email with your host providers default email application, there may be issues with seeing the email contents.  If this happens to you and you cannot read the message to activate, download the file and open using a text editor. If you still cannot see the activation link, contact site admin and briefly discuss the issue.<br /><br />
   ";


   include_once 'msgToUser.php'; 

   exit();

   }

 

[attachment deleted by admin]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.