SMTP authentication on WAMP

Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")

Moderator: General Moderators

Post Reply
simm
Forum Newbie
Posts: 1
Joined: Tue Mar 24, 2009 5:17 pm

SMTP authentication on WAMP

Post by simm »

Hi all...I'm new here - don't know if this is the right place for my question.

I get a 503 SMTP error when I try to send an email from a simple form on my local Vista machine. I've tried an email address from my own domain, gmail, hotmail, and yahoo.

Here's the error:

Code: Select all

Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. k14sm6838908waf.23
What's the deal? I'm going through a PHP book, and it doesn't cover any error troubleshooting. I've tried everything it seems - from IIS settings to SMTP settings on my local machine to the PHP.ini.

Thanks so much.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: SMTP authentication on WAMP

Post by Chris Corbyn »

The mail() function cannot work with TLS requiring servers. You'll need to use Swift Mailer, assuming they accept a pure TLS connection:

http://swiftmailer.org/

Swift Mailer will fully support STARTTLS in version 4.1.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: SMTP authentication on WAMP

Post by josh »

( or open up plaintext auth on localhost )
Post Reply