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.
By webdev2 on
Right now I added a form HTML code to a body text on a node. It works but now I need to add captacha and it;s not working because it doesn't access the form itself.
How do you create a simple form that emails someone the contents but does not create a node/record?
Thanks.
Comments
Check out Webform
Check out Webform
Thanks - I'll check it out.
Thanks - I'll check it out.
It built it fine but it is
It built it fine but it is NOT sending the submission to the email I entered in the config form. It is being saved because I can go back and see saved submissions, however.
Any ideas?
Are you sure it's not
Are you sure it's not sending, as opposed to it not being received? Unless you have strong evidence that it isn't leaving the server I'd bet that it isn't being received and is ending up in a spam filter or something.
What's the content of the "Webform mail settings" section of the form?
The contents are: E-mail to
The contents are:
E-mail to address:
info@client_domain.com
and it is a valid email address.
I have verified the email is
I have verified the email is not being sent. Any ideas?
Is there anything in your
Is there anything in your logs? I would expect a PHP error if mail settings weren't configured correctly on your system.
how did you verify this?
How did you verify that the mail is not being sent, out of curiosity mostly. I have found that on certain hosting services, php cannot send email to an email address on the same domain for some reason. Can you try a gmail address or something and see if that might work?
You're right, I don't know
You're right, I don't know email are being sent. I checked the logs for any errors, changed the recipient email address and it goes nowhere.
I checked the logs -
I checked the logs - nothing. I checked the webform results - it is a record there. I sent it to another domain - nothing.
This domain does send email properly using other modules - CIVICRM, RULES,...
Couple options: In
Couple options:
becomes
That should give you a line in the log that will at least tell you if it's hitting that function and a second one that tells if sending succeeded. Like it says in the drupal_mail function reference though (http://api.drupal.org/api/function/drupal_mail/6), that only tells you if it was passed to the php layer successfully.
To be sure we're on the same
To be sure we're on the same page, I am using webform for D5.
I tried the two above debug steps. Setting webform to debug showed a properly formed email in an array and nothing obvious I could spot. The whole site uses SSL but that doesn't effect other modules that send email.
The second option left no traces in the log. Assuming those commands work in D5, this would show it's never getting past the:
foreach ($address as $single_address)
line. In which case, there is something more deeply wrong with the module.
It's disappointing, I was really hoping this would work.
Your thoughts?
No idea. The watchdog
No idea. The watchdog function does work for d5 (http://api.drupal.org/api/function/watchdog/5). Try submitting an issue the webform issue queue, maybe.