Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Contact form doesn't send e-mail
Old 06-24-2008, 01:43 PM Contact form doesn't send e-mail
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
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?
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-24-2008, 03:15 PM Re: Contact form doesn't send e-mail
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
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); 
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE

Last edited by rogem002; 06-24-2008 at 03:17 PM..
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 06-24-2008, 03:15 PM Re: Contact form doesn't send e-mail
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
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" 
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 06-24-2008, 05:18 PM Re: Contact form doesn't send e-mail
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
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
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 06-24-2008, 05:26 PM Re: Contact form doesn't send e-mail
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
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...
__________________
Join me on
Please login or register to view this content. Registration is FREE

Last edited by wayfarer07; 06-24-2008 at 05:28 PM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 06-24-2008, 05:46 PM Re: Contact form doesn't send e-mail
Gilligan's Avatar
Website Designer

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

I spoke to him and it seems to be sorted
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 06-24-2008, 06:14 PM Re: Contact form doesn't send e-mail
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
He fixed it as soon as he read my recommendation that you might want to consider changing hosts, didn't he?
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 06-25-2008, 04:24 AM Re: Contact form doesn't send e-mail
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
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
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Contact form doesn't send e-mail
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.26212 seconds with 12 queries