Sending spam through my hosting.

the mail() function

Moderators: macek, egami, gesf

Post Reply
User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: Sending spam through my hosting.

Post by egami » Wed Dec 07, 2011 8:13 am

Yes.
Because the $_POST['email'] is writing to your email headers, which will overwrite your $to.

User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: Sending spam through my hosting.

Post by egami » Wed Dec 07, 2011 9:46 am

you must have some kind of upload mechanism in your site somewhere, that doesn't check to make sure that it's just an image.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest