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
https://forums.phpfreaks.com/topic/71023-email-authentication/#findComment-357355
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.