Posted by aprice42 on March 14, 2009 at 10:53pm
I have been tweaking, and testing and re-testing my site contact form for a few days now, and for some reason, no mail is being sent, I have done a lot of searching for an answer to why, but cannot find anything... Do I need to change some settings on my server to make that work? or should it just work "out of the box"? Any thoughts on what I am missing?
thanks,
Andy

Comments
Are you sure you've set the
Are you sure you've set the contact form to send email to a real address? (seriously...this is easy to overlook...I've done it before)
If you've been using the Devel module, make sure you're not using the 'log only' SMTP handler. Keep in mind, unlike most things in Drupal, this setting will stay in effect even after the Devel module is disabled. The setting can only be turned off with the module enabled.
If this isn't the case, have you checked your logs for any errors?
hard to diagnose without info
You give no specific details, not even the operating system, so it's kind of hard to help you here.
If the system can send mail from other applications, then the issue is probably your PHP mail settings in php.ini.
If php can send mail, does Drupal send mail outside of the contact form?
. .. ... ... .. .
thanks @anniegreens I did confirm that I have a real email address set, but your comment encouraged me to try another one, outside of my domain... so I set the form to send to my gmail address and it now it works hmmm, so now the plot thickens :) I wonder why I cannot send mail to email addresses within my domain??
sorry @roger I am new to this level of development, so I am still learning protocol :)
Apache/1.3.41 (Unix) mod_fastcgi/2.4.2 PHP/4.4.9 / Drupal 6.9
any more ideas based on the above? it seems like the system is sending mail, just not to my domain...
SMTP Permissions
Hello, it may be that your email provider and/or hosting account has more restrictive permissions configured than Gmail, in which case you could either contact your hosting provider, or set up your own server with a SMTP server like postfix. "Open" SMTP servers will allow anyone to use them and relay email from and to anyone, regardless of address. More secure SMTP implementations check to see that the 'From' address actually has an account and has permissions to send from it, thus preventing malicious people from abusing the server and sending mass amounts of emails from made-up addresses. I'm not sure how Google has their SMTP servers set up, but I do know that you can configure your gmail account to send email from multiple addresses, so there is some level of flexibility there. If you want to test out your SMTP server, it is possible to telnet in and issue specific SMTP commands to get feedback. Check this tutorial, near the bottom: http://helpdesk.islandnet.com/pep/smtp.php
-- -- --
@tylerwalts thank you for the input... I am going to contact my webhost and see if they can shed any light... I think setting up my own server might be going farther than I am capable at this time... worst case I guess I could setup a gmail account that will forward all email to the account I want to receive it... thanks again...
more later... Andy )
Clearly explanation
MX record mixup
thank you all again for the input...
I contacted my webhost and found that in altering my MX records to point to google (for my google apps email) I had failed to check a box that tells the server to "Always accept mail locally even if the primary mx does not point to this server." so my server wasn't accepting the mail i guess... I checked the box and now the probelm is solved :)
thanks again...
Andy )
php script not sending mail
hi my html code is
Contact Us
while my php script is
<?php
// Contact subject
$subject ="$subject";
// Details
$message="$detail";
// Mail of sender
$mail_from="$customer_mail";
// From
$header="from: $name <$mail_from>";
// Enter your email address
$to ='ramcdac.ravi@gmail.com';
$send_contact=mail($to,$subject,$message,$header);
// Check, if message sent to your email
// display message "We've recived your information"
if($send_contact){
echo "We've recived your contact information";
}
else {
echo "ERROR";
}
?>
php file name is sendmail.php
everything seems ok . but its not sending any email to my maill. i have checked my email name its ok .
i have searched a dozen of codes for past 3 days . nothing working even if it seem all ok
do i need some php server installed on my pc .
need urgent help
Contact us form not sending mails
Hi Everyone,
I am very new to Drupal, actually i have no developing or coding back grounds so when you trying to explain please remember that it should be easy to understand for a non developer.
I have just configured site wide contact form (Drupal 7 and DAMP), set the permissions etc and did all what i could do but every time i tried send mail using contact form it gives error message,
I have tried different blogs, forums and Google followed the instructions but still no success. Kindly do help me on this.
Regards
Hi Ailee, If your site is
Hi Ailee,
If your site is hosted on a commercial server then you will need to contact their technical support.
First be as sure as possible that you have the site contact form set up correctly. Then the hosting TS may be able to advise you about how to ensure that your web site has permission to send email. Setting a gmail address as the Send to: address is always a good test.
Tom