php mail not working

This is a discussion on "php mail not working" within the PHP Forum section. This forum, and the thread "php mail not working are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 7th, 2006, 23:48
Reputable Member
Join Date: Nov 2005
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
php mail not working

Hi, I had a mail form that was working fine but I changed it but I changed it to add some validation checks. When I tried it I didn't recieve any mail even though it passes validation. I then re-uploaded the backup (of the form that had been working) and this doesn't work either. So I contacted the hosts and they tell me that at the almost the same time they had updated php to 4.4.2, im 100% certain that there is nothing wrong with my code.

Is there anything that this update may have done to be causing the problem? I have tried changing the destination to a number of different addresses provided by different email providers and none of them work.
Reply With Quote

  #2 (permalink)  
Old Jul 7th, 2006, 23:51
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: php mail not working

Post your code.
Reply With Quote
  #3 (permalink)  
Old Jul 7th, 2006, 23:59
Reputable Member
Join Date: Nov 2005
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php mail not working

Its just the basic mail function, ive not bothered with the validation stuff because even when I put the code below in a blank page it doesn't work. Im certain that its something to due with the upgrade.

<?php
$email1 = "your_email_address";
$email = "my_email_address";
$subject = "Testing";
$message = "This is a test";
mail($email, $subject, $message, "From: $email1");
?>
Reply With Quote
  #4 (permalink)  
Old Jul 8th, 2006, 17:21
Reputable Member
Join Date: Nov 2005
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php mail not working

I have just uploaded the same code as I posted it here just to make entirely sure that it is OK! I uploaded it to a different hosting account but with the same version and settings and it works on that one. So it isn't the code or the settings, is there anything else that may be causing this because my hosts appear to be as mystified as me about it!
Reply With Quote
  #5 (permalink)  
Old Jul 8th, 2006, 18:05
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: php mail not working

Their mail settings.
Reply With Quote
  #6 (permalink)  
Old Jul 8th, 2006, 18:07
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php mail not working

Quote:
Originally Posted by djme
Its just the basic mail function, ive not bothered with the validation stuff because even when I put the code below in a blank page it doesn't work. Im certain that its something to due with the upgrade.

<?php
$email1 = "your_email_address";
$email = "my_email_address";
$subject = "Testing";
$message = "This is a test";
mail($email, $subject, $message, "From: $email1");
?>
Code: Select all
 <?php

$email = "my_email_address";
$subject = "Testing";
$message = "This is a test";
$headers = "From: your_email_address";
mail($email, $subject, $message, $headers);
?>
Reply With Quote
  #7 (permalink)  
Old Jul 8th, 2006, 18:58
Reputable Member
Join Date: Nov 2005
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php mail not working

sypher do you know what settings I would need to get them to change?

masonbarge thanks for that but ive tried that and its still the same.

Bloody thing, this has not worked for weeks now!
Reply With Quote
Reply

Tags
php, mail, working

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Form help! ClrWtrDsgnr PHP Forum 6 Sep 27th, 2007 21:22
e-mail lookup pengyou PHP Forum 4 Feb 16th, 2006 13:01
visitors name not displayed in mail after filling in mail form made on earth PHP Forum 7 Nov 16th, 2005 22:43
ASP Mail not working with database raja0123 Classic ASP 1 Oct 2nd, 2005 18:50
E-mail restrictions pengyou Introduce Yourself 2 Sep 12th, 2005 11:56


All times are GMT. The time now is 08:14.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43