Reply
Contact form doesn't send e-mail
Old 06-24-2008, 12:43 PM Contact form doesn't send e-mail
Gilligan's Avatar
Dead Like Me

Posts: 1,608
Name: Stefan
Location: London, UK
Well it says message sent, but nothing in my inbox appears

as a test to be basic i tried

PHP Code:
mail("myemail@domain.com""subject""message""From: email@email.com"); 
still no email.. have i got it wrong?
Gilligan is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 06-24-2008, 02:15 PM Re: Contact form doesn't send e-mail
rogem002's Avatar
Webmaster Talker

Posts: 611
Name: Mike
Location: United Kingdom
It's most likely being blocked as you have not added headers. Try:
PHP Code:
$to      'nobody@example.com';
$subject 'the subject';
$message 'hello';
$headers 'From: webmaster@example.com' "\r\n" .
    
'Reply-To: webmaster@example.com' "\r\n" .
    
'X-Mailer: PHP/' phpversion();

mail($to$subject$message$headers); 
__________________
PHP Code:
Add_Talkupation('rogem002'); // Because sharing is awesome! 

Last edited by rogem002 : 06-24-2008 at 02:17 PM.
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 06-24-2008, 02:15 PM Re: Contact form doesn't send e-mail
wayfarer07's Avatar
$frontend->developer

Posts: 1,044
Name: Abel Mohler
Location: Asheville, North Carolina USA
I think what is wrong is that the section:
PHP Code:
"From: email@email.com" 
Needs to be:
PHP Code:
"From: email@email.com\r\n" 
__________________
Go FREELANCE <=|If a donkey eats a melon, it is still a donkey... |=> Hire Me
wayfarer07 is online now
Reply With Quote
View Public Profile
 
Old 06-24-2008, 04:18 PM Re: Contact form doesn't send e-mail
Gilligan's Avatar
Dead Like Me

Posts: 1,608
Name: Stefan
Location: London, UK
i tired the /r/n part, nothing. I treid a completely new em-ail, worked 1st time (with /r/n)

So the email on the domain is dodgy, you think changing servers would help? I'm doing that anyway
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 06-24-2008, 04:26 PM Re: Contact form doesn't send e-mail
wayfarer07's Avatar
$frontend->developer

Posts: 1,044
Name: Abel Mohler
Location: Asheville, North Carolina USA
It's possible that their outgoing spam filter is catching it somehow. If I were you I would find out how strict their outgoing filter is, and if it seems to be causing the problem, or the host is to blame in any other way, I would consider changing. Mail is an important enough function that it should be reliable...
__________________
Go FREELANCE <=|If a donkey eats a melon, it is still a donkey... |=> Hire Me

Last edited by wayfarer07 : 06-24-2008 at 04:28 PM.
wayfarer07 is online now
Reply With Quote
View Public Profile
 
Old 06-24-2008, 04:46 PM Re: Contact form doesn't send e-mail
Gilligan's Avatar
Dead Like Me

Posts: 1,608
Name: Stefan
Location: London, UK
Luckily enough the hosting admin is dansgalaxy from here. lol

I spoke to him and it seems to be sorted
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 06-24-2008, 05:14 PM Re: Contact form doesn't send e-mail
wayfarer07's Avatar
$frontend->developer

Posts: 1,044
Name: Abel Mohler
Location: Asheville, North Carolina USA
He fixed it as soon as he read my recommendation that you might want to consider changing hosts, didn't he?
__________________
Go FREELANCE <=|If a donkey eats a melon, it is still a donkey... |=> Hire Me
wayfarer07 is online now
Reply With Quote
View Public Profile
 
Old 06-25-2008, 03:24 AM Re: Contact form doesn't send e-mail
Gilligan's Avatar
Dead Like Me

Posts: 1,608
Name: Stefan
Location: London, UK
haha, the problem was actually something hard to explain. My account on his server has the domain listed, but I haven't yet changed the DNS on the domain. so when I try and send an email from that server, it thinks "hey, that email is hosted here.. lets send it there". So my actual email doesn't recieve it
Gilligan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Contact form doesn't send e-mail
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14630 seconds with 12 queries