I'm very new to Drupal (on day 2) so please forgive my complete lack of knowledge/terminology!

I converted my website to Drupal as a learning exercise, and I'm a bit hung up on my contact form. I built a contact form using the webform module and everything seems to be working great. I can submit my form, it shows me the confirmation message, and all the fields make their way to the database (I can view all the submissions). Unfortunately, I never receive an email at the email addresses I specified in the "E-mail to address" field.

I'm fairly clueless as to where to look. I checked the permissions for the webform module, but it doesn't look like anything there pertains to mail. All roles are allowed to submit the webform, which is verified by the forms making it to the db. There are no conditional e-mail recipients listed and I don't have any additional validation or processing code.

In the "Site Configuration" -> "Webform" -> "Advanced options" section I set the Webforms debug to "Full debug", went back and submitted another form and nothing different happened. The form went through, but no email. I couldn't figure out exactly where the debug information would be displayed.

If anyone has any experience with this I'd greatly appreciate some tips!

Thanks,
Dave

Comments

dnovelli’s picture

I just tried using the pre-built contact form module and have verified that it doesn't seem to be sending emails either.

CobraMP’s picture

are you on a hosted server or a local server? hosted server should work .
on a local server you have to have a valid smtp server entered in your apache setup

dnovelli’s picture

Thanks for the response!

We have our testing environment setup on a hosted site (mediatemple). I'm fairly certain the smtp mail on that site is setup, but I'll have to double check that. If it is up and running, could this be a permissions issue in smtp? This is my first LAMP installation (I'm trying to convert from .NET/IIS) so I'm a little hazy on initial configuration issues.

-Dave

justageek’s picture

create simple php file, like test.php, with one line:


@mail('youremail','yoursubject','yourbody');

see if it shows up, if not then at a server / php level you have a problem. Also, I have found that some shared hosts have issues sending mail using php if the domain of the email address matches the domain of the web site, I know this sounds odd, but I've seen it before. Try something generic like sending to a gmail account, and always check your spam folder, in the even that mediatemple has been reported as sending spam, which shouldn't be true, but you never know.

Finally, last resort, call mediatemple and ask them to look at server logs, if the mta can't send the mail is should be logging an error.

dnovelli’s picture

Thanks for the suggestion!

If I use my non-domain email address alone the email goes through with no problems, but if I use my domain email address it doesn't. So it looks like the issue you mentioned with same domains is causing the issue. Do you happen to remember if this can be resolved?

-Dave

dnovelli’s picture

To follow up -

The problem was being caused by the fact that we had our email enabled on mediaTemple while our existing email server was still active. Our existing site is still hosted on GoDaddy where our email server also resides. When we switched to (mt) hosting, we forgot to update our MX record to point at our (mt) email server instead of GoDaddy.

aaronchristian’s picture

I had a similar issue/situation with having our e-mails hosted at GoDaddy and our websites over on our VPS at Media Temple. I wasn't receiving any e-mails from the websites contact form, however I was receiving e-mails from clients and fellow staff members. This had to mean that there was something improperly setup with the individual domain. After you've ensured proper setup of your domains MX records, you should sign into your PLESK hosting panel and select the domains "Mail" icon, make sure you switch it to "Off". Otherwise the mail server will send & receive (in an infinite loop) your mail request until the correct MX records are being used. If anyone cares for a deeper explanation I'll try to comment accordingly.

More Info: http://wiki.mediatemple.net/w/DV:Enable_or_disable_local_mail

Good luck!