swift for php4

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
pinehead18
Forum Contributor
Posts: 329
Joined: Thu Jul 31, 2003 9:20 pm

swift for php4

Post by pinehead18 »

Where do i input my smtp username/pass for swift for php4?

Thanks
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Someone needs to read the documentation
pinehead18
Forum Contributor
Posts: 329
Joined: Thu Jul 31, 2003 9:20 pm

Post by pinehead18 »

Yeah i did.. I got it, i guess i'm just confused on what this error means

Uncaught Error of type [swift_connection_exception] with message [The SMTP connection failed to start [mail.kcchristians.com:25]: fsockopen returned Error Number 0 and Error String 'Success']
@0 swift::swift() in /home/drdennisja/domains/drl/public_html/newsletter/send_newsletter.php on line 100
@1 swift::connect() in /home/drdennisja/domains/d/public_html/newsletter/swift/lib/Swift.php on line 111

in /home/drdennisja/domains/drlacyjames.com/public_html/newsletter/swift/lib/Swift/Errors.php on line 99
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

That's a known bug with fsockopen() on certain servers. It's a permissions problem which causes it, but beyond Swift's control. fsockopen() cannot fully establish a connection so Swift cannot continue. What host are you on? I'd also double check that there's really an SMTP server running on mail.kcchristians.com too.

Code: Select all

ping mail.kcchristians.com
ping: cannot resolve mail.kcchristians.com: Unknown host
Tell you anything? ;)
Post Reply