Go Back   Computer Juice > Computer Software > Web Design, Hosting & SEO
Register Members New Posts Donate Unanswered Posts Site Spy Search


Reply
 
Thread Tools
  #1  
Old 18-03-2007, 06:02 PM
No Avatar
CJ New Member
 
alaa_alomari is offline
 
Join Date: Mar 2007
Last Online: 18-03-2007 06:02 PM
Posts: 1
iTrader: (0)
alaa_alomari is on a distinguished road
Default PHP Mail function with Unix OS?

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?
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #2  
Old 18-03-2007, 07:00 PM
No Avatar
CJ New Member
 
Atif Majid is offline
 
Join Date: Mar 2007
Last Online: 18-03-2007 07:00 PM
Posts: 1
iTrader: (0)
Atif Majid is on a distinguished road
Default PHP Mail function with Unix OS?

Verify the IP address of SMTP server. If not working, then please provide some more details like what error occured!
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #3  
Old 18-03-2007, 07:32 PM
No Avatar
Steve D  disclosed
CJ New Member
 
Steve D is offline
 
Join Date: Mar 2007
Last Online: 18-03-2007 07:32 PM
Posts: 1
iTrader: (0)
Steve D is on a distinguished road
Default PHP Mail function with Unix OS?

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.
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #4  
Old 18-03-2007, 07:47 PM
No Avatar
dhvrm  disclosed
CJ New Member
 
dhvrm is offline
 
Join Date: Mar 2007
Last Online: 18-03-2007 07:47 PM
Posts: 1
iTrader: (0)
dhvrm is on a distinguished road
Default PHP Mail function with Unix OS?

$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.
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote

Please support this forum, donate towards our running costs.


Reply


Thread Tools

Forum Jump

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


Copyright ©2006 - 2008 Computer Juice.

Powered by vBulletin® Copyright ©2000 - 2008 Jelsoft Enterprises Ltd. SEO by vBSEO ©2008, Crawlability, Inc.

Page copy protected against web site content infringement by Copyscape