Recent Topics

ASPM check before sending or IP address in msgform mail

Started by on Oct 29, 2006 – Contents updated: Oct 29, 2006

Oct 29, 2006 21:17    

I'd like to see one of these happen. Best is that a form sent via the msgform contact method gets scrubbed against the antispam list. This way a repeat offender isn't going to get through. If that's not possible I would like the IP address of the sender in the mail message so I can ban them at the host level.

Nov 06, 2006 09:52

lol, I was under the impression that they were already checked against the blacklist, but apparently not!

htsrv/message_send.php, add the new bits ;)

if( empty( $message ) )
{ // message should not be empty!
	$Messages->add( T_('Please do not send empty messages.'), 'error' );
elseif( antispam_check( $message ) )
	$Messages->add( T_('Take your spam and shove it up your .......'), 'error' );
	$message .= 'Ip : '.$Hit->IP;


Nov 06, 2006 15:40

Well thank you much! I'll have myself a little drinkypoo in your honor.

Nov 07, 2006 09:21

I hope it was a double :D


Dec 04, 2006 16:24

Finally implemented, and yes it was a double (and no it wasn't little).

Mar 09, 2007 11:09

You'll be pleased to know that I finally remembered to commit this change ;)


Mar 09, 2007 12:31

I'm sure you've already thought of the tiniest detail and committed a flawless piece of code, but

	$message .= "\n\n".'Message from IP: '.$Hit->IP;

looks much nicer when I receive the email.

And yeah it's nice to know I won't have to hack this going forward. Thanks!

Mar 09, 2007 13:06

I went one better and forgot the IP bit :p


Form is loading...

Multi-blog engine – This forum is powered by b2evolution CMS, a complete engine for your website.