SunQuest
           PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old September 10th, 2002, 02:50 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Mail got error

hi, i need some help here! i want to make use of the mail thingy.. but it dont seem to be working! it gives me this error msg:

Warning: Server Error in C:Inetpubwwwrootprojectfeed.php on line 38

this is my coding:
<?
/* recipients */
$to = "ABC <abc_@hotmail.com>";

/* subject */
$subject = "Birthday Reminders";

/* message */
$message = '
<html>
<head>
<title>Reminders</title>
</head>
<body>
<p>Here are the reminders!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Ken</td><td>3rd</td><td>August</td><td>1980</td>
</tr>
<tr>
<td>Toot</td><td>17th</td><td>August</td><td>1982</td>
</tr>
</table>
</body>
</html>
';

/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0rn";
$headers .= "Content-type: text/html; charset=iso-8859-1rn";

/* additional headers */
$headers .= "From: Birthday Reminder <birthday@example.com>rn";

/* and now mail it */
mail($to, $subject, $message, $headers);

?>

yarr.. i will be glad if anyone can tell me whats wrong with the code and what to do to solve this problem coz this is a common error that i always face! =<

thx!

Reply With Quote
  #2  
Old September 10th, 2002, 04:31 AM
Kohaar Kohaar is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Denmark
Posts: 147 Kohaar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 37 sec
Reputation Power: 2
Send a message via ICQ to Kohaar
RE: Mail got error

Because your server hasn’t got a smtp mail service installed...

Reply With Quote
  #3  
Old September 10th, 2002, 04:58 AM
siteworkspro.com siteworkspro.com is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Sydney, Australia
Posts: 92 siteworkspro.com User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to siteworkspro.com Send a message via AIM to siteworkspro.com
RE: Mail got error

you need to set up a outgoing smtp server in your php.ini file

Reply With Quote
  #4  
Old September 12th, 2002, 03:24 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Mail got error

You have to configure your php.ini file located in c:windows folder. You can even search for this file. When u reached this file, open it in your favorite editor & find for SMTP. Where you find SMTP, you have to type the address of you ISP in front of SMTP. For example: SMTP=comsats.net.dk . Even you can type the IP address of your ISP's SMTP. If you are not sure about the SMTP address of your ISP, just give a call to your ISP to ask for SMTP address. I hope this works well. Thanks.
Ihsan Elahi
www.thames-portal.com

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > Mail got error


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway