Just solved a pesky email problem that was really vexing.
Sending email from my localhost web server (usually via ColdFusion apps), for testing and other purposes, has always worked swimmingly. Recently, however, emails sometimes didn’t send. A glance at my ColdFusion log files showed the error “Invalid Addresses”.
Some addresses from some of my domains have started to be used extensively for sending spam (by other people!), so I wondered whether I’d got blacklisted somehow.
A blacklist was involved, but not for addresses. A closer look at the CF error logs showed this:
Invalid Addresses; nested exception is: class javax.mail.SendFailedException: 550-xx.xx.xx.xx is listed at zen.spamhaus.org (127.0.0.11: 550 http://www.spamhaus.org/query/bl?ip=xx.xx.xx.xx)
is to add SMTP authentication to your outgoing mail script. For ColdFusion, it looks something like this:
<cfmail to="firstname.lastname@example.org" from="email@example.com" subject="Message subject" server="smtp.domain.com" username="noreply" password="password"> [message] </cfmail>
(Obviously, with suitable bits substituted for your situation…)