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.
|
|
|
|
|
![]() |
||
php mail not working
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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. |
|
|
|
|||
|
Re: php mail not working
Post your code.
|
|
|||
|
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"); ?> |
|
|||
|
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!
|
|
|||
|
Re: php mail not working
Their mail settings.
|
|
||||
|
Re: php mail not working
Quote:
|
|
|||
|
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! |
![]() |
| Tags |
| php, mail, working |
| Thread Tools | |
|
|
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 |