/    Sign up×
Community /Pin to ProfileBookmark

PHP Mail problem

I’m having trouble with one of my contact forms on my site. I simply changed the Email Recipient to myself, but found that the forms was still directing mails to the old recipient.

[code=php]
<?php
$Intro = “Comment From Customer”;
$MessageToSend = “TEST”;
$RecipientEmail = “[email protected]”;
$headers = ‘From: [email protected]’ . “rn” .
‘Reply-To: [email protected]’ . “rn” .
‘X-Mailer: PHP/’ . phpversion();
mail($RecipientEmail,$Intro,$MessageToSend,$headers);
?>
[/code]

This is just a test mail page I had put up to test the problem and this isn’t sending mail at all. This has been working on the site for the past few months and I have absolutely no idea why this is giving me a problem now, or why I cannot update the contact form to send mail to a different recipient.

The server we are on hasn’t been too reliable lately, so I can’t get the idea that this is something on their end out of my head. Is that possible or is it something I have done?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@knowjJul 07.2007 — remove the capital letter off your email.

If the mails are still going to the old recipient you have not uploaded the file to the correct place.

I have done this many times (usually when i'm working with a development and live site of if i have backups)
Copy linkTweet thisAlerts:
@EbolaauthorJul 07.2007 — I've removed the capital letters from my email and the email on the form are still not going to me. Also the simple mail function will not send to me either. Since I put this on its own page, "MailTest.php", I know that it's not been uploaded to the wrong place.
Copy linkTweet thisAlerts:
@rootJul 07.2007 — Then I would say that the copy being used is one thats in the cache server that serves the hosts webserver.

A file that is requested often is usually put in a cache as it makes accessing and retrieval faster but makes developing harder because you have to wait for the hosts system to recognise that a significant change has taken place in the file.

If you are using webspace provided by your ISP as part of the package you buy form them, expect this kind of cache issue, if you buy your service from a professional host, any issues should be addressed to their tech department pointing out that your paying good money for a substandard service, then tell them to pull their fiungers out and reconsider HOW they cache files and WHAT files get cached... it is usually a wake up call to them that someone has recognised a flaw in their percieved "Flawless" service.

Remember, no matter how well something is made, theirs always a flaw in it and you should look at issues like these from the standpoint of lack of service and not your problem to try and resolve, you are paying for a service at the end of the day... Something that legally they are required to supply.
×

Success!

Help @Ebola spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...