PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Script I made has two modes for mailing. First (default one) will use settings from php.ini to send emails through SwiftMailer. Second one requires user to provide a valid SMTP server. Idea was to make things work out of the box for people who have properly configured mailing in PHP but at the same time to provide more power to people who need it. I've skipped mail() because script usualy needs to send multiple emails at once...
SMTP is working wihout any problems, but code I wrote that reads config from php.ini doesn't (script tries to send email and hangs until execution time is reached). Code:
SMTP on Windows is working (reads host and port from the php.ini), but Sendmail fails on FreeBSD hosting (mail() is working without any problem). It just hangs...