I am getting below error while using Watcher :

warning: mail() [function.mail]: SMTP server response: 501 Syntax error, parameters in command "MAIL FROM:<"admin" >" unrecognized or missing in C:\xampp\htdocs\mydrupal\includes\mail.inc on line 193.
Unable to send e-mail. Please contact the site admin, if the problem persists.

Here noted that my email function is working from my drupal website . As an exaple: when I have setup the "Jobtrack" module then I am getting email from my drupal site.

But when I am using above mentioned module I am getting error.

PLEASE SOMEBODY HELP.

Comments

solipsist’s picture

From what I can tell it looks like the mail headers aren't properly encoded. Do you use special characters in your administrator username?

Yuki’s picture

No its plain english (abcd) even no number.

Yuki’s picture

This is the error message still getting when I am trying to use Send to friend feature:

warning: mail() [function.mail]: SMTP server response: 501 Syntax error, parameters in command "MAIL FROM:<"ratra" >" unrecognized or missing in C:\xampp\htdocs\hses\includes\mail.inc on line 193.
Unable to send e-mail. Please contact the site admin, if the problem persists.

Please help.

kiamlaluno’s picture

Title: function.mail]: SMTP server response: 501 » mail(): SMTP server response: 501

If I remember well, a similar error has been already reported for Drupal core code.

Are you sure it doesn't depend from some problems in the web server configuration?

Yuki’s picture

Thanks for your reply.

Just now I have tested the drupals core contact module and sent message from the contact(from my drupal website contact form) and I am getting email to my inbox(outlook). No problem.
But when I am using this Watcher module and its email features are not working.

Getting above mentioned messages even I have tried "print" modules "send to friend" feature also same error message. Please do suggest me as I need this module and its features urgently.

solipsist’s picture

Try using the SMTP-module rather than setting up your SMTP-server in php.ini.

Yuki’s picture

Sorry I have no access to the SMTP server and its not possible to get the password. Only I can use the php.ini settings. Could you please kindly instruct me how to solve this issue without SMTP-module.

Also as you've guided, today I have tested SMTP module i.e. SMTP Authentication Support. Though getting below error:
--------------------------------------------------------
SMTP.module is active.
The configuration options have been saved.
SMTP.module is active.
A test e-mail has been sent to name@example.com. You may want to check the logs for any error messages.

Unable to send e-mail. Please contact the site admin, if the problem persists.
--------------------------------------------------------

I think the problem is that my smtp password is not ok. As I have told you its not possible to get the SMTP mail server password. (I have my own email id and password, which I have tried)

Could you please kindly suggest me to get this work? Thanks in advance.

solipsist’s picture

You have configured PHP to use SMTP and the STMP-server requires authentication, yet you do not know the authentication details?

The only workaround would be a patch for Watcher, something I won't be able to make for a while. I've already implemented support for SMTP module, why it would be much easier if you could use it.

Yuki’s picture

Yes SMTP Works, Thanks.

solipsist’s picture

Status: Active » Closed (fixed)