Raised This Month: $32 Target: $400
 8% 

E-Mail Domain


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 10-24-2013 , 14:26   E-Mail Domain
Reply With Quote #1

Hi,

if SourceBans sends a e-mail, is always a www in the domain of the e-mail adress (info@www.****.de). Is there a way to change the domain setting in sourcemod so that the correct e-mail domain is used (info@****.de). I could not find anything in the settings and in the database.
mariozankl is offline
Rytis
Veteran Member
Join Date: Feb 2012
Location: Germany
Old 10-24-2013 , 14:52   Re: E-Mail Domain
Reply With Quote #2

/includes/sb-callback.php on line 1767 (at least it should be there, if not search for "$headers = 'From: submission@' . $_SERVER['HTTP_HOST']" (without the ' " ')) and change $_SERVER['HTTP_HOST'] to 'yourdomain.tld' (with the " ' ")
Rytis is offline
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 10-24-2013 , 15:44   Re: E-Mail Domain
Reply With Quote #3

i changed it from

$headers = 'From: submission@' . $_SERVER['HTTP_HOST'] . "\n" .

to

$headers = 'From: submission@' . 'mydomain.de' . "\n" .

but it doesn't work.

sender is still

[email protected]
mariozankl is offline
Rytis
Veteran Member
Join Date: Feb 2012
Location: Germany
Old 10-24-2013 , 15:58   Re: E-Mail Domain
Reply With Quote #4

Then look at line 2216 and change there that one thing
Rytis is offline
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 10-24-2013 , 16:24   Re: E-Mail Domain
Reply With Quote #5

thx, now it works. but i can't find protest@. is it in another php?
mariozankl is offline
Rytis
Veteran Member
Join Date: Feb 2012
Location: Germany
Old 10-25-2013 , 10:03   Re: E-Mail Domain
Reply With Quote #6

Is there a protest mail? I think it's noreply. Just look at the lines 2223 to 2274, there you can find the mailing things

Last edited by Rytis; 10-25-2013 at 10:03.
Rytis is offline
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 10-25-2013 , 14:45   Re: E-Mail Domain
Reply With Quote #7

The admin get a mail from protest@ when a player opens a protest.
mariozankl is offline
Rytis
Veteran Member
Join Date: Feb 2012
Location: Germany
Old 10-25-2013 , 15:08   Re: E-Mail Domain
Reply With Quote #8

Gotcha!
/pages/page.protest.php on line 131
Rytis is offline
mariozankl
Member
Join Date: May 2012
Location: Austria
Old 10-25-2013 , 15:37   Re: E-Mail Domain
Reply With Quote #9

Thx man, you're the greatest.
mariozankl is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode