PHP - Moved: Spamming Me
This topic has been moved to PHP Freelancing.
http://www.phpfreaks.com/forums/index.php?topic=320722.0 Similar TutorialsI have done lots of research on this, and I am trying out numerous method to counter this, which includes using mail() function with various arguments for the header, the PHPMailer class libraries and including a TXT file in my DNS settings with Godaddy. as far as mail() is concerned, I have this code: if( empty($errors)) { $to = '$myemail'; $email_subject = "Customer Contact Request Submitted"; $email_body = "A potential customer has sent you their contact information:\r\n\r\n" . "Name: " . $firstname . " " . $lastname . "\r\n" . "Email: ". $email . "\r\n" . "Phone: " . $phone . "\r\n" . "Products Interested In: " . $products_interested_in . "\r\n" . "Message: " . $message; $headers = "From: no-reply@domain.com\r\nReply-To: $email\r\nReturn-Path: $email\r\n"; mail($myemail, $email_subject, $email_body, $headers); echo "Your contact information has been sent. A respresentative will contact you shortly."; } else { echo $errors; } and the message is sent fine, but gmail spams it out every time it's sent regardless of whether it is marked as "not spam" and moved to the inbox. I have not read anything on what can be put in the header argument to try and prevent the spamming out. thoughts anyone? Secondly, I have not yet written the code to call PHPMailer class libraries, but all the experts say it is the most reliable way to send mail. Is PHPMailer messages known to be spammed out too? Thirdly, the TXT file I put in my DNS reads the following, per response #2 on this page: https://stackoverflow.com/questions/43241773/prevent-php-mail-sent-going-to-spam-gmail Type: TXT Host: mydomain.com Value: v=spf1 ip4:myIPaddressHere ~all TTL: Automatic (Godaddy's option for Automatic is "1 hour") I have to wait another 24 hours to see if that will fix the spamming issue. Godaddy requires 48 hours for their server to adopt the new settings. Does this look right to you guys as well? thanks. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=342987.0 This topic has been moved to PHP Installation & Configuration. http://www.phpfreaks.com/forums/index.php?topic=319595.0 This topic has been moved to PHP Freelancing. http://www.phpfreaks.com/forums/index.php?topic=345722.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=342919.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=317014.0 This topic has been moved to PHP Freelancing. http://www.phpfreaks.com/forums/index.php?topic=349322.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=319767.0 This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=305825.0 This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=333865.0 This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=327250.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=325953.0 The PHP Coding Help section is not the place to recruit someone to work on your project. It's for answering specific questions about specific code. This topic has been moved to PHP Freelancing. http://www.phpfreaks.com/forums/index.php?topic=347446.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=315910.0 This topic has been moved to PHP Freelancing. http://www.phpfreaks.com/forums/index.php?topic=331097.0 This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=343318.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=356314.0 This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=313579.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=346829.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=316254.0 |