Sorry if this is not the correct section, I looked for about ten minutes for an email marketing section, nothing: See, I would understand this if I had ever had a mailing list, or if I was actually flooding people with emails in the past, but that's not the case. In-fact I've never even attempted to get into e-mail marketing and that's not what I'm trying to do right now. It's absolutely vital for my clients to get this e-mail as it's the email that's sent to them containing their licensing information, and receipt showing my companies custom transaction id; Here's the code that I'm using to send my e-mail, maybe somebody with some experience could give me some pointers. Please Note, I had removed my product name and website from the code, so you will see "xxxxxxx" a lot, but in the actual code it's set up with my real domain and product name. Code: $subject = 'Thank you for purchasing xxxxxxx.'; $headers = "From: [email protected]\r\n"; $headers .= "Reply-To: [email protected]\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $message = " <html> <body> <h1>Thank you for purchasing an xxxxxxx license.</h1> <p>Unfortunately there is one more step you have to take to claim your license, but to equal this out we made this process only take around two minutes. The reasoning for this is to make sure that the license is properly bound to your account.</p> <p>To activate your license please click <a href='http://xxxxxxx.net/licensing/validation.php?trans=".$custom_transaction_id."&ref=".$referral."'>here</a>.</p> <p>If the above link does not work, please paste this into your web-browser: http://xxxxxxx.net/licensing/validation.php?trans=".$custom_transaction_id."&ref=".$referral."</p> <p>If you have any questions that you need answered about xxxxxxx please visit our community, found <a href='http://xxxxxxx.net/forum/'>here</a>.<p> <h3>Information about your purchase.</h3> <table> <tr> <th>Transaction ID:</th> <td>".$custom_transaction_id."</td> </tr> <th>Date of sale:</th> <td>".(new \DateTime())->format('Y-m-d H:i:s')."</td> <tr> <th>Receipt Amount:</th> <td>".$product_price."</td> </tr> <tr> <th>Product Name:</th> <td>".$product_name."</td> </tr> </table> <p>Thanks again for purchasing xxxxxxx and we hope you have a wonderful day.</p> </body> </html> "; mail($myemail, $subject, $message, $headers); If the problem is not due to the code itself, which after viewing numerous different pages I would say is written how it should be, why is my email being filtered as spam? This so far has only been tested with gmail, but if gmail is marking it, I'm sure others are. Are there any methods I can follow that will help me get removed from the spam list?