I am using 1.3.3 and using andrea_r's modertae signup's
http://wpmututorials.com/hacks/how-to-moderate-signups/
When spam users signup i now get the email and can approve or not their signup. But, they (the spammers) do get an email that says their request is being reviewed. In this email appears a real email address. I would like to have that email address appear something like donotreply@domain.here. How can i do this?
cafespain
Member
Posted 16 years ago #
From the code listed on the link you gave, change the bit:
$admin_email = ’support@’ . $_SERVER[’SERVER_NAME’];
to the email address you want the email sent from, in this case
$admin_email = 'donotreply@domain.here';
That did not work. I modified all $admin_email = ’support@’ . $_SERVER[’SERVER_NAME’];
and still get the admin email address on the activation email. You can try to signup at http://mytimewithgod.net/wp-signup.php and look at the email that you get to see exactly what i am talking about.
I thought maybe you can change it in the admin panel but if you want to change it to an "unknown" address, like donotreply@domain.here, but i see
This address is used only for admin purposes. If you change this we will send you an email at your new address to confirm it. The new address will not become active until confirmed.. That's the whole point, i do not want a "real" email address to be shown to spammers
cafespain
Member
Posted 16 years ago #
Ah I see the problem. Sorry, I didn't read the code on the page you linked to properly.
Change this bit:
$admin_email = get_site_option( “admin_email” );
if( $admin_email == ” )
$admin_email = ’support@’ . $_SERVER[’SERVER_NAME’];
To just:
$admin_email = ’donotreply@’ . $_SERVER[’SERVER_NAME’];
The first bit in the original code grabs the admin email from your MU options, which in this case you don't want it to do, and only sets the email address to the donotreply one if the first one doesn't exist. So you just need to remove that check.