![]() |
| |||||||
| |
![]() |
| | Thread Tools |
|
#1
| ||||
| ||||
| Hi;I have Unix server and i have tried the following code to send an email:==>==>the code is successful on localhost but failed when i uploaded it to the server ==> why? |
| |
|
#2
| ||||
| ||||
| Verify the IP address of SMTP server. If not working, then please provide some more details like what error occured! |
|
#3
| ||||
| ||||
| Have you checked your error log? It may already tell you exactly why.Here are a few possibilities.Is your local machine a Windows system? The mail function in Windows will use the SMTP setting. On Unix it doesn't. On Unix it looks for sendmail.Try eliminating the ini_set command for the sendmail_path. Usually a successful Unix installation PHP already knows where to find sendmail.You can also eliminate the ini_set for SMTP since the Unix version ignores it.Your HTML string in $Msg should start with and end with .For HTML email you may need a To header, and it should not use the "name " format. Try using just the email address in both the To and From headers. They are interpreted differently in Unix compared to Windows.I hope this helps. |
|
#4
| ||||
| ||||
| $FMail is null because you're setting it improperly.$FMail = $_$_REQUEST ['Email'] ;should be$FMail = $_REQUEST ['Email'] ;The code executes fine because there's no PHP error with it in the technical sense. However, you include a bad header with your FROM field, which is probably gumming up the works and filling up your badmail folder. |
|
![]() |
| Thread Tools | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Any unix users out there still? | mike4life | Linux & Alternative OS | 3 | 20-01-2008 08:41 PM |
| keyboard not function on logon | midget373 | General Hardware Chat | 4 | 08-01-2008 09:50 PM |
| Print Screen function | VJH | Digital Imaging & Printers | 7 | 07-12-2007 10:15 PM |
| Running a UNIX or Linux operating system on | niccoconuts332 | Linux & Alternative OS | 2 | 27-07-2007 08:45 AM |
| whati s the difference between unix and linux ? | whew | Linux & Alternative OS | 5 | 21-03-2007 11:16 AM |
| Powered by vBulletin® Copyright ©2000 - 2008 Jelsoft Enterprises Ltd. SEO by vBSEO ©2008, Crawlability, Inc. |