Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
solipsist CreditAttribution: solipsist commentedFrom what I can tell it looks like the mail headers aren't properly encoded. Do you use special characters in your administrator username?
Comment #2
Yuki CreditAttribution: Yuki commentedNo its plain english (abcd) even no number.
Comment #3
Yuki CreditAttribution: Yuki commentedThis 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.
Comment #4
apadernoIf 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?
Comment #5
Yuki CreditAttribution: Yuki commentedThanks 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.
Comment #6
solipsist CreditAttribution: solipsist commentedTry using the SMTP-module rather than setting up your SMTP-server in php.ini.
Comment #7
Yuki CreditAttribution: Yuki commentedSorry 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.
Comment #8
solipsist CreditAttribution: solipsist commentedYou 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.
Comment #9
Yuki CreditAttribution: Yuki commentedYes SMTP Works, Thanks.
Comment #10
solipsist CreditAttribution: solipsist commented