Ryan White wrote:
-----Original Message-----
From: Bill Shupp
Sent: Thursday, June 10, 2004 4:42 PM

Ryan White wrote:

I was reading through domains.php and noticed this:
Line 271:
// Email the support address if an inactive domain is added
$body = "inactive domain \"$domain\" added by ".$user_info['Email']."\n\n";
$body .= "\n\nThanks,\n\n";
$body .= "VegaDNS";


mail(strtolower($_REQUEST['username']),"New Inactive Domain Created",$body , "Return-path: $supportemail\r\nFrom:

\"$supportname\"


<$supportemail>");

From what I can tell I have never gotten an email when I

create new domains.

Then again I am the "super-admin". From what I can gather it is sending the email to the user that added the domain. What would be awesome is if the super-admin was notified that this domain was created. Then we don't have to randomly guess when we need

to activate


inactive domains ;). I could be mistaken on what this

little bit of code is supposed to do...

-Ryan

Domains created by a senior admin are automatically active. So no email is necessary.


Regards,

Bill



Yea, but as senior admin I don't get emails when inactive domains are
created by group admins or normal users. It seems like the senior admin is
the best person to receive these emails. I'm probably just misunderstanding
the point of this part of code.

I see... the point is that when a an in-active domain is created by a non-senior admin, the senior admin needs to know that it has been created, so that it can be activated if appropriate. Whereas if a user adds the domain "cnn.com", and the clearly don't own it, then the admin can reject it's activation. It's a moderation tool.


The code simply uses the mail() function of php. Is your php.ini file setup to use /usr/sbin/sendmail, or smtp? Is it setup properly? And did you edit the $admin_email variable in the config.php file? That's the address that gets notified. Perhaps all senior admins should be notified, rather than have it be a config option. That would be more automatic.

Regards,

Bill

Reply via email to