I am Sending Email with attachment ( PDF ) Using PHP Mailer But it come in my Junk Folder Why ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I am Sending Email with attachment ( PDF ) Using PHP Mailer But it come in my Junk Folder Why ?

I have Setup All kinds of Headers in the Code But its Still in my junk Folder How to get rid of this ?? If you Have a solution Mail me Here -> Pardeep889@hotmail.com Here is my Headers Which I am Using: $mail->addCustomHeader('MIME-version', "1.0"); $mail->addCustomHeader('Content-type', "application/pdf; method=REQUEST; charset=UTF-8"); $mail->addCustomHeader('Content-Transfer-Encoding', "8bit"); $mail->addCustomHeader('X-Mailer', "PHP/' . phpversion();"); $mail->addCustomHeader("Content-class: urn:content-classes:calendarmessage"); $mail->addCustomHeader("Content-type:application/pdf","pdf");

25th Jan 2018, 4:54 AM
~Sudo Bash
~Sudo Bash - avatar
4 Answers
+ 2
Thanks Guys for your answers Finally i got the solution. and thanks @jay
3rd Feb 2018, 3:55 AM
~Sudo Bash
~Sudo Bash - avatar
+ 6
The only other suggestion I can think of is to tell your clients / recipients to add the email address and/or mark a few emails as 'Not Junk' on their end
25th Jan 2018, 8:47 AM
jay
jay - avatar
+ 1
I have checked Every Where.
25th Jan 2018, 7:20 AM
~Sudo Bash
~Sudo Bash - avatar