php mail sent from form going to spam.

1 reply · opened Sep 28, 2020

SSJG1911Sep 28, 2020

Hi,

I have set up form on my website but when someone sends mail through the form (php mailer) the mail lands in spam.
screenshot: https://snipboard.io/cOldzF.jpg

My website: https://www.skilleasyacademy.com/

The mails sent using this default mail script is landing in inbox, but if I send mail with your code its landing in
spam.

Please help me fix this.

default script landing in inbox:
<?php
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = "Forms@skilleasyacademy.com";
$to = "markygonsalves@gmail.com";
$subject = "Checking PHP mail";
$message = "PHP mail works just fine";
$headers = "From:" . $from;
mail($to,$subject,$message, $headers);
echo "The email message was sent.";
?>

SSemicolon WebSTAFFSep 29, 2020

Hello,

The Form Processor uses the PHPMailer library which is a leading form processor library also used by many Leading Web Companies and Softwares. It is never recommended to use PHP mail() due to Security Concerns and Mail Spoofing, but if you are using the PHP mail() Function, make sure the Email Addresses added to the include/form.php File are preferably from the currently used Domain Name where your Files are hosted. Many Hosting Companies enforce this rule to prevent SPAM. Additionally, there are always checks performed by Big Mail Companies example Gmail, like Reverse-DNS-Lookups, Gray-Listing or Dynamic IP Checks (if you are using Shared Hosting) etc. It is recommended to implementing SPF on your Domains. Your Web Hosting Provider can help you with this.

Meanwhile, we would highly recommended you to use SMTP so that your Mails are more secure and genuine looking to the Mail Companies to avoid landing your Mails in the SPAM Folder. You can consider checking these Troubleshooting Guidelines: https://github.com/PHPMailer/PHPMailer/wiki/Improving-delivery-rates,-avoiding-spam-filters .

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard