A
A
Andrew Dabich2013-12-05 10:50:11
PHP
Andrew Dabich, 2013-12-05 10:50:11

Need to send an email to Drupal 7 from a form?

You need to send a letter to the administrator from the form from the page. Feedback. Fields: Text, Sender's name, Sender's E-mail. There is such a function as drupal_mail(), but I have not yet fully understood how to use it. Maybe there is a good module, but only so as not to insert fields, so as not to spoil the design. Too many extra modules are inserted.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
andead, 2013-12-05
@andead

A popular option is Webform , a racially correct one is Entityforms . Both are able to change the text of the letter from the admin panel.
If you still want to implement the form and logic yourself, then see the corresponding example in the Examples module and on the drupal_mail() documentation page , everything is quite detailed and clear there.

V
Vladimir Boliev, 2013-12-05
@voff

I usually used Webform for this purpose.
Well, maybe I missed something in this controversial question ...

E
E_STRICT, 2013-12-07
@E_STRICT

And what is wrong with contact , which is in the core?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question