Can swift mailer be blocked by server admin?

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
drexl
Forum Newbie
Posts: 4
Joined: Mon Jun 25, 2007 4:16 pm

Can swift mailer be blocked by server admin?

Post by drexl »

I have been using swift for many months now, with no problems, all of the sudden it no longer works, I've tested my configuration many times on my server and everything is working. I know thier IP address is not being blacklisted, because I can still use a simple sendmail, and I've got no blacklisting turned on - on my mailserver, which is one of the addresses that my reciepts go to. I've also checked with the server admin to see if thier mailserver name changed, or if it was down, and they said everything was fine. So... is it possible that they themselves are blocking the script from working on thier server, and why would they want to do that, if that was the case? 8O
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

The short answer: no, they can't. And there is no reason why they would do such a thing either.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

If you don't use SMTP, the server can (and probably will) block it. When you don't use SMTP, you are sending out as an anonymous user named "nobody." That's taken as a clue that an e-mail is spam, so some shared hosting servers block it so that you don't get them blacklisted.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Which version of Swift? Which version of PHP? What doesn't work? You get errors, or $swift->send() returns false, or everything looks normal but emails never arrive? Any particular addresses being problematic?

We need more info please :)
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

What superdezign and I said might sound to few people with not much knowledge like two exactly opposite answers, so I wanted to make it clear so the original poster doesn't get confused:

What superdezign meant was that they can block you emails and it doesn't conflict with what I said - that Swift itself can't be blocked (in general). By that I mean that there is no (reaosnable) way to block the Swift Mailer library itself (e.g block Swift Mailer without stopping PHP Mailer at the same time).
drexl
Forum Newbie
Posts: 4
Joined: Mon Jun 25, 2007 4:16 pm

Fully functional

Post by drexl »

The emails are now getting through, I did not change anything on the scripts - 8O very weird.
Post Reply