|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
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! |
|
#2
|
|||
|
|||
|
RE: Mail got error
Because your server hasn’t got a smtp mail service installed...
|
|
#3
|
|||
|
|||
|
RE: Mail got error
you need to set up a outgoing smtp server in your php.ini file
|
|
#4
|
|||
|
|||
|
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 |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Mail got error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|