Support Forums

Full Version: mailfunction detected as spam
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

so here is the code:
PHP Code:
<?php
                        $to 
$_POST["email"];
                        
$name $_POST["name"];
                        
$subject $_POST["subject"];
                        
$message $_POST["message"];
                        
$from $_POST["from"];
                        
$headers "From: $name <$from>";
                    
mail($to,$subject,$message,$headers);
                    echo 
"<br><center><div class=greenbox>Email sucessfully sent to $to<br><br></div></center>
                        <br><center><div class=redbox>This is only for education purpose.</div></center><br><br>"
;
                        
?>
Parsed in 0.072 seconds, using GeSHi 1.0.8.4 


We all know why this is detected as spam...but is there any way to play it out?
Well, what are you sending it from, Like what email address is the sender?
What email are you using to send/receive? If it's gmail it detects this type of spammers pretty easily. Same with most top-email providers.
For sending I use an non existing email "anonymus@gay.com", but I tried with an existing one also.

For recieving I use an existing gmail email to test.

and it is always detected as spam :S


But I am 100% sure this could be fixed somehow.
Try using a Hotmail e-mail...
Ohh forgot to write it but solved already.

Unfortunately my web host picked up to blacklist, that is why it sends mails to spam. :S
You can mark them as "Trusted".
Try That.