28, May 2012

Don't get the Admin email - 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: Don't get the Admin email
« previous next »
Pages: [1] Print

Author Topic: Don't get the Admin email  (Read 3035 times)
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« on: Jun 20, 2006, 08:18:56 am »

Why, when i put true into

Code:
var $send_copy = true; // send a mail copy to the administrator (register only)
at access_user_class.php line 51.

But i don´t recibe the copy email in my email...

And please, can you know, how i can have all the users with  info, in one page?

I need to have the users complete info.

Thanks
« Last Edit: Jun 20, 2006, 08:28:24 am by olaf »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


Re: Admin emails
« Reply #1 on: Jun 20, 2006, 08:27:09 am »


Code:
var $send_copy = true; // send a mail copy to the administrator (register only)
at access_user_class.php line 51.

But i don't recibe the copy email in my email...
what is the setting here? (db_config.php)
Code:
define("ADMIN_MAIL", "admin@yourdomain.com");

and don't forget you get only a mail if the new user validates his email address...

Quote
And please, can you know, how i can have all the users with  info, in one page?

I need to have the users complete info.


There is no function for this, you to write this script by yourself (it's not so difficult)
check the php manual for this function "mysql_fetch_assoc" there is an example how to obtain data from a DB

EDIT: this about a different function, the variable $send_copy has function at the moment. The current status for this function is:  nice idea Wink
I will check this later, maybe you like the other registration type (non auto activation)

« Last Edit: Jun 20, 2006, 08:32:18 am by olaf »

I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #2 on: Jun 20, 2006, 08:32:40 am »

Code:
define("ADMIN_MAIL", "admin@yourdomain.com");

Yes, i edit that too, but is not working, never send me the email.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Jun 20, 2006, 08:34:12 am »

Code:
define("ADMIN_MAIL", "admin@yourdomain.com");

Yes, i edit that too, but is not working, never send me the email.
check the comment I added later...

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


It's time to use PHP5!


« Reply #4 on: Jun 20, 2006, 08:41:53 am »

Hello,

replace this two functions inside the class file and let me know if it works.

Code:
<?php

function 
send_confirmation($id) {
$sql sprintf("SELECT real_name, email FROM %s WHERE id = %d"$this->table_name$id);
$res mysql_query($sql);
$user_email mysql_result($res0"email");
$this->user_full_name mysql_result($res0"real_name");
if ($this->user_full_name == ""$this->user_full_name "User"// change "User" to whatever you want, it's just a default name
if ($this->send_mail($user_email3724$this->send_copy)) {
return true;
} else {
return false;
}
}
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;

}


I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #5 on: Jun 20, 2006, 08:50:34 am »

i gets this message

Parse error: parse error, unexpected '<', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/host/public_html/classes/access_user/access_user_class.php on line 457 FIXED--
---------------

Fatal error: Cannot redeclare send_confirmation() in /home/host/public_html/classes/access_user/access_user_class.php on line 457
« Last Edit: Jun 20, 2006, 08:53:54 am by syserror »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Jun 20, 2006, 09:07:42 am »

i gets this message

Parse error: parse error, unexpected '<', expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/host/public_html/classes/access_user/access_user_class.php on line 457 FIXED--
---------------

Fatal error: Cannot redeclare send_confirmation() in /home/host/public_html/classes/access_user/access_user_class.php on line 457

yes, copy / paste isn't easy Smiley

download the new version here: http://www.finalwebsites.com/snippets.php?id=10

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=2935
Tags : php email 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: Don't get the Admin email
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 01:19:36 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!






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