Hi,

I was trying to use Drupal contact form in my site. And I also use SMTP module for sending email. But now I cannot get email sent. Because Drupal uses user's email address as "from" address in the email. Obviously this email address cannot pass the validation of my SMTP server.

Consider about "contact form" in Drupal, it's used for letting visitors be able to send email to certain email address(es). But it should use email set in "site information" as sender (from) I think. Then put user's email address as "reply-to" so that people receive the email can easily reply it.

Any idea about this? I want to get more info before starting to modify contact module...

thanks!

Comments

ojfam’s picture

Hello,

I too have a similar problem with the use of visitor's e-mails on the contact form. At the moment, I route my SMTP via GMail and it uses the GMail account as its from field. The problem is that the visitor's email address is not sent with the message. So when the admin staff get the e-mail, they cannot respond to it.

regards,
Deji.

-Anti-’s picture

Personally I feel the D6 contact module is quite ridiculous. It has many silly little usability problems. For instance, you can't enable the site-wide form without also enabling all the personal contact forms (which don't even have a proper permission system for default setting, enabling/disabling and access). I think work has been done to improve the contact module for D7, but the D6 version sucks.

There are some specific contact form modules, but I haven't seen anything that claims to solve these shortcomings.
Go to http://drupalmodules.com/ and type 'contact' into the title field of the search engine.
Maybe there is a module which solves your difficulty.

However, *most* of the problems can be solved in one way or another by disabling the contact form module, and using the webform module instead: http://drupal.org/project/webform I think this is what most people turn to when the contact form doesn't really work for them.