18, March 2010

E-mail verification - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: E-mail verification
« previous next »
Pages: [1] Print

Author Topic: E-mail verification  (Read 1393 times)
Atari ST fan
*
Gender: Male
Posts: 7
54 credits
Members referred : 0



« on: Dec 02, 2007, 08:13:42 pm »

Hello,

I have a problem with the e-mail vervification to the administrator .

When you validate the user. 
The scrip is sending 2 mails to the user.
And not 1 to admin and 1 to user .

db_config
Code:
define("WEBMASTER_MAIL", "adres1@mail.com");
define("WEBMASTER_NAME", "admin");
define("ADMIN_MAIL", "adres2@mail.com");
define("ADMIN_NAME", "Admin");

access_user_class.php 

Code:
var $send_copy = true;
var $webmaster_mail = WEBMASTER_MAIL;
var $webmaster_name = WEBMASTER_NAME;
var $admin_mail = ADMIN_MAIL;
var $admin_name = ADMIN_NAME;

function send_mail($mail_address, $msg = 29, $subj = 28, $send_admin = false) {
$header = "From: \"".$this->webmaster_name."\" <".$this->webmaster_mail.">\r\n";
if ($send_admin) $header .= "Bcc: ".ADMIN_MAIL."\r\n";
$header .= "MIME-Version: 1.0\r\n";
//$header .= "Mailer: Olaf's mail script version 1.11\r\n";
$header .= "Content-Type: text/plain; charset=\"iso-8859-1\"\r\n";
$header .= "Content-Transfer-Encoding: 7bit\r\n";
$subject = $this->messages($subj);
$body = $this->messages($msg);
if (mail($mail_address, $subject, $body, $header)) {
return true;
} else {
return false;
}




Atari ST fan
*
Gender: Male
Posts: 7
54 credits
Members referred : 0



« Reply #1 on: Dec 02, 2007, 10:04:03 pm »

Yes is works  .
I used now 2 totally different mail-adresses .

One thing i like to know . Is it possibel to send a mail only to Admin ?
Then they admin can validate the request ?

Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Dec 02, 2007, 11:54:04 pm »

check this mode (login script)

if (isset($_GET['activate']) && isset($_GET['ident'])) { // this two variables are required for activating/updating the account/password
   $my_access->auto_activation = true; // use this (true/false) to stop the automatic activation
   $my_access->activate_account($_GET['activate'], $_GET['ident']); // the activation method
}


Last blog : A new Wordpress theme for our blog
Atari ST fan
*
Gender: Male
Posts: 7
54 credits
Members referred : 0



« Reply #3 on: Dec 03, 2007, 11:27:01 pm »

@ OLAF

THIS IS A
SUPPER SCRIPT 
 !!!!!!!!
Whith many options

And  IT WORKS .

Thanks again .

ps : The support is GREAT . Keep on the good work .




I

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7412
Tags : e-mail verification admin Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: E-mail verification
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Mar 18, 2010, 03:56:34 am





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!





Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2010 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.