3

What are alternative ways if the IP address of your shared hosting has a "bad reputation"? Gmail blocks the mail, says mails from this IP address are likely to be SPAM.

Are there workarounds other than switching to virtual or dedicated server? Is there any way to send mails via a third party, different IP? Like a gmail smtp? How would this work?

Chris
  • 3,756
  • 7
  • 35
  • 54

2 Answers2

3

It's more likely to work as you are sending through their SMTP.

I would recommend PHPMailer.

You should also know that GMail has limitations on emails sent, as it can block your host if your trying to send too much emails.

Fluffeh
  • 33,228
  • 16
  • 67
  • 80
Mihai Iorga
  • 39,330
  • 16
  • 106
  • 107
  • never knew :), I made some tests a few years ago and made a script wrong and Google banned me after 30 mails. Those mails where sent within 5 seconds. – Mihai Iorga Aug 20 '12 at 08:52
  • oh... I see. But I don't get what is so different with PHPMailer? It just looks like a nice and easy way to send mails - why should it be different? – Chris Aug 20 '12 at 08:55
  • It's not, you can use what framework you want. I use what I've wrote few years ago and still works, and connects threw `SSL` and does my work, PHPMailer is easier to use. Why reinvent the wheel? – Mihai Iorga Aug 20 '12 at 08:57
  • yeah, true! no, sorry... I meant they do not provide their smtp, do they? so I'll have to use gmail smtp or sth again? sorry, I just did not get it... – Chris Aug 20 '12 at 08:58
  • yes, you have to use a SMTP, like Google. No matter what script you will eventually use, you need to have an SMTP server. – Mihai Iorga Aug 20 '12 at 09:02
  • OK, I see, thank you! Just because you wrote that Google banned you after 30 mails... this would not happen using PHPMailer? – Chris Aug 20 '12 at 09:23
  • I do believe it will ban/block your scripts if you are using anything, it doesn't matter what script you use, you should not send too may emails/1 second [Bulk GMAIL](https://support.google.com/mail/bin/answer.py?hl=en&ctx=rosetta&answer=81126&rd=1) – Mihai Iorga Aug 20 '12 at 09:28
  • oh... sorry, did not see the link! this is very helpful, thx!! :) – Chris Aug 20 '12 at 09:56
  • that is not a problem, they should be **newsletters** like .. or **spam** like. They can be a few thousands a day if you are not spamming :) – Mihai Iorga Aug 20 '12 at 09:59
2

Did you tried to send a Message over another SMTP Server?

I would try Swiftmailer: http://swiftmailer.org/docs/sending.html

In example: trying to send mail using swift mailer, gmail smtp, php

Community
  • 1
  • 1
pce
  • 5,571
  • 2
  • 20
  • 25