Tell me more ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm trying to find a replacement for Swift Mailer as my website is on Dreamhost. They do not allow fsockopen() which apparently Swift Mailer uses.

Does anyone know of a good alternative, or can point me in the direction of something to use or do?

share|improve this question
3  
From the swift mailer homepage: Send emails using SMTP, sendmail, postfix or a custom Transport implementation of your own. You should still be able to use it, maybe you just need to choose another method for sending the emails. It should be able to use the standard php mail() function. – drew010 Sep 23 '11 at 22:36

migrated from stackoverflow.com Sep 24 '11 at 15:55

1 Answer

PHPMailer is a PHP email transport class featuring file attachments, SMTP servers, CCs, BCCs, HTML messages, word wrap, and more. Sends email via sendmail, PHP mail(), QMail, or directly with SMTP. Support for additional transports, such as SMS, MMS will be forthcoming http://code.google.com/a/apache-extras.org/p/phpmailer/

Zend_Mail is a good library in zend but you would need root access most likely since Zend Framework and shared hosts don't mix to well.

To continue using Swift Mailer you may want to consider moving to Amazon ec2 or another cloud server company like RackSpace where you can have root access on your own server and not be limited, especially when your building custom applications.

share|improve this answer
ZF works just fine on shared hosting, as well as DH. Setup is pretty straight-forward as well: wiki.dreamhost.com/Zend_framework . It should be no different from using CakePHP or any other PHP framework. Whether you can use all classes, which may include extensions not supported by your web host is another matter, but that's true with any PHP app or library. But on DH, even a shared hosting account lets you recompile PHP on your own, so even that doesn't present any problems for those who know their way around linux/unix. – Lèse majesté Apr 7 at 13:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.