RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1195 | Replies: 7
Reply
Join Date: Mar 2006
Location: Montreal Quebec Canada
Posts: 52
Reputation: puddin is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
puddin puddin is offline Offline
Junior Poster in Training

Stressed This mail() was working - Can you see why it is not now

  #1  
Apr 9th, 2006
I am so stressed,


My membership signup was working fine. Now it's not emailing. It is entering into the database fine but not emailing can someone tell me what is the problem, Thanks Kindly I'm Exhausted...

To session_id is to the person who just signed up.



// Let's mail the user!
$to = "$session_id";
$subject = "Your Membership at Puddin Patch Date Match!";
$message = "Dear $username,
Thank you for registering at our website, http://www.puddinpatchdatematch.com!

You are two steps away from logging in and accessing our exclusive members area.

To activate your membership,
please click here: http://www.puddinpatchdatematch.com/login_form.php

Once you activate your memebership, you will be able to login
with the following information:
Password: $password
email_address: $email_address
Thanks!

The Webmaster

This is an automated response, please do not reply!";

mail($email_address, $subject, $message,
"From: www.puddinpatchdatematch.com Webmaster<admin@mydomain.com>\n
X-Mailer: PHP/" . phpversion());
echo 'Your membership information has been mailed to your email address!
Please check it and follow the directions!';
}

?>


</body>
</html>
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2005
Posts: 354
Reputation: DanceInstructor is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 12
DanceInstructor's Avatar
DanceInstructor DanceInstructor is offline Offline
Posting Whiz

Re: Stressed This mail() was working - Can you see why it is not now

  #2  
Apr 9th, 2006
Put your mail function in an if-then statement. If it returns false it's time to display your variables before you try to call mail so that you know for sure the values that mail is recieving. If it returns true then it probably isn't a PHP issue, but a server issue.
Clear Mind Hosting and Web Design

If I've helped you please consider adding to my reputation.
Reply With Quote  
Join Date: Mar 2006
Location: Montreal Quebec Canada
Posts: 52
Reputation: puddin is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
puddin puddin is offline Offline
Junior Poster in Training

Re: Stressed This mail() was working - Can you see why it is not now

  #3  
Apr 9th, 2006
I do not know exactly how to do that... I wish I did! But it was working fine. I am convinced it is my server , you mean the people I host my webpage with. Ohhhh It's so upsetting. I so much want to learn this php and know how to bring it all together... Thanks for your reply
Reply With Quote  
Join Date: Feb 2005
Posts: 354
Reputation: DanceInstructor is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 12
DanceInstructor's Avatar
DanceInstructor DanceInstructor is offline Offline
Posting Whiz

Re: Stressed This mail() was working - Can you see why it is not now

  #4  
Apr 9th, 2006
Submit a ticket to your host. If you haven't changed the script then its probably something your host has done.
Clear Mind Hosting and Web Design

If I've helped you please consider adding to my reputation.
Reply With Quote  
Join Date: Mar 2006
Location: Montreal Quebec Canada
Posts: 52
Reputation: puddin is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
puddin puddin is offline Offline
Junior Poster in Training

Re: Stressed This mail() was working - Can you see why it is not now

  #5  
Apr 9th, 2006
Yes I will do that thanks,

I just said I going to double check I was not sure about the server that they could be be having a problem I'm actually shocked. No one should be ever touching my files but I wanted to post it and ask, I did not change anything in it and it worked perfect.

Geeee Wiz ... Thanks again!
Reply With Quote  
Join Date: Oct 2004
Location: San Francisco, CA
Posts: 338
Reputation: paradox814 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 2
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

Re: Stressed This mail() was working - Can you see why it is not now

  #6  
Apr 14th, 2006
try doing this: [php]
$headers = "From: www.puddinpatchdatematch.com Webmaster <admin@mydomain.com>\n
X-Mailer: PHP/" . phpversion();
if (mail($email_address, $subject, $message,$headers)) {
echo 'Your membership information has been mailed to your email address! Please check it and follow the directions!';
} else {
echo 'There was a problem emailing your membership information to you at '.$email_address;
}[/php]
if it says that there was a problem then the chances are it was your server
replace the line that contains mail, and replace it with the above
Reply With Quote  
Join Date: Mar 2006
Location: Florence Ky
Posts: 31
Reputation: DGStudios is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 3
DGStudios DGStudios is offline Offline
Light Poster

Re: Stressed This mail() was working - Can you see why it is not now

  #7  
Apr 14th, 2006
Well the server owners are ALLOWED legally to edit your code. Check your code it is probably slightly different. I saw a few things that needed to be changed so I'm assuming they went in and fixed the code. My server has done the same thing with mine before. Its not uncommon for them to do it. Its quicker than explaining it to you and when they have 500k people using their server they don't really have time to explain it. Them owning the server gives them access rights to EVERYTHING on it. So if your storing things you don't even want them doing. I suggest building your own server.
http://img.photobucket.com/albums/v6.../dgstudios.jpg
When all that is becomes one. That is the anomoly. That is... Death's Gate Studios (c) 2005
Reply With Quote  
Join Date: Mar 2006
Location: Montreal Quebec Canada
Posts: 52
Reputation: puddin is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
puddin puddin is offline Offline
Junior Poster in Training

Re: Stressed This mail() was working - Can you see why it is not now

  #8  
Apr 15th, 2006
I contacted them and explained. Thaey did something cause it is working fine so it was something from their end for sure! it's working fine now. Thanks
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:06 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC