8, January 2009

E-mail verification - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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 911 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: 6557
40174 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 : Just a better Internet portal provided by Google
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....

Topic sponsors:
Get a permanent link here for $1.99!


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?
Jan 08, 2009, 10:28:10 PM





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!


Forum Statistics
Total Posts: 38.657
Total Topics: 7.772
Total Members: 4.659
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: sardiniasarena

27 Guests, 4 Users online :

17 users online today:



Readers

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