Jump to content

Email authentication


steepe

Recommended Posts

The code looks something like this: "The easy part"

<start code ;D>

function invitation($email, $fname,$guid)

{

$to = $email;

$subject = "Account Activation";

$message = "welcome to our sight!\n\n";

                          $message.= "To allow you to login you need to follow the link below.\n";

$message.= "https://a_sight.my_domane.com/verify.php?ID=".$guid."\n";

                          $Headers = "From: User Management <User.Management@my_domane.com>\n";

$Headers.= "Return-Path: User.Management@my_domane.com\n";

$Headers.= "X-Priority: 3\n X-MSMail-Priority: Normal\n X-Mailer: php\n";

return mail($to, $subject, $message, $Headers);

        }

<end code ;D, QED>

you can find this on several sights.

The trick is the mail server... it needs to be registered mail host!

the account needs to be active.

Did I say it needs to be a registered mail host?

 

I have this in a class that uses the calling class name as a argument and it checks to see if it can be access the class

 

 

additionally verify.php takes the Guid and verifies other information before activating the account.

 

This for me this works 75% of the time.

 

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.