General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 20th, 2012, 01:12 PM
Hewertson Hewertson is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 3 Hewertson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 15 sec
Reputation Power: 0
PHP mail function help

Hi Guys,

I'm starting to learn PHP and i just downloaded xampp. First I need to know if I downloaded PHP, MySQL, Apache and WAMP first and played around with some of the settings in Apache and WAMp then uninstalled all of them and reinstalled Apache will this affect xampp at all?

Second, I can run PHP scripts but I can't seem to get my mail function to work. I'm working on windows 7 and here's the code I'm running:

<?php
$to = "jxh5332@psu.edu";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>

Any help will be greatly appreciated.

Thanks,
John

Reply With Quote
  #2  
Old July 20th, 2012, 03:23 PM
Hewertson Hewertson is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 3 Hewertson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 15 sec
Reputation Power: 0
PS: I get the message "Message successfully sent!" but I go to my email and it's not there. Any suggestions??

Reply With Quote
  #3  
Old July 23rd, 2012, 08:18 AM
Hewertson Hewertson is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 3 Hewertson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 15 sec
Reputation Power: 0
Bump.

Reply With Quote
  #4  
Old July 23rd, 2012, 11:23 AM
jamespayne jamespayne is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2008
Location: South Florida
Posts: 13 jamespayne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 Days 1 h 17 m 36 sec
Reputation Power: 0
Send a message via Yahoo to jamespayne
Hi,

You might also want to try posting this question at our sister forum, www.forums.devshed.com. You will have to create a new username, but we have a lot of PHP experts over there that will be happy to assist you.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > PHP mail function help


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap