This depends on mail_smtpmode. Change this to true if your mail server requires authentication.
mail_smtpmode
true
boolean
false