steepe Posted September 28, 2007 Share Posted September 28, 2007 Please PHP programmers, I need to write a script that will send authenticated emails to users such that is doesnt go into their bulk/junk mail. Thank u very much. Quote Link to comment https://forums.phpfreaks.com/topic/71023-email-authentication/ Share on other sites More sharing options...
sayedsohail Posted September 28, 2007 Share Posted September 28, 2007 use phpmailer or royalmail lol. Quote Link to comment https://forums.phpfreaks.com/topic/71023-email-authentication/#findComment-357203 Share on other sites More sharing options...
brucestevenson Posted September 28, 2007 Share Posted September 28, 2007 The code looks something like this: "The easy part" <start code > 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 , 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. Quote Link to comment https://forums.phpfreaks.com/topic/71023-email-authentication/#findComment-357355 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.