0

I am working with CodeIgniter and trying to send email using CodeIgniter's default email library. I am facing two major issues

1. Mail are going to spam folder

2. Mail ID with domain name as gmail.com is prevent from delivering

For the first question, I referenced threads Question 1,Question 2,Question 3

But none of the above helped me.

Can I use any custom header for this purpose?

If there is a proper solution other tha the above, Please help me..

And for the second question, is it a server related issue? because it delivering mails from someonee@hotmail.com but not from someone@gmail.com.

Any help will be appreciated.

Thanks in advance

Community
  • 1
  • 1
Arun
  • 3,640
  • 7
  • 44
  • 87
  • 1
    It isn't that "going to spam" mails are only because of code. Get in touch with your server administrator and ask him to check if ur IP is blacklisted and get it whitelisted, if that is the case – Arcanyx Apr 16 '15 at 10:01

1 Answers1

0

Email going into spam or not in inbox is not related to your code.

There are multiple reasons by which emails can go into spam folder

  • You using email which is marked as spam.
  • Your IP address is blacklisted
  • The Keywords you using is spammy.

Try to send the email with third party api (Mailchimp or mailgun) and good keywords.

Mukesh Yadav
  • 2,256
  • 2
  • 33
  • 51