Any idea why an email form would work fine on linux and not on windows?

Discussion in 'PHP' started by narsticle, Mar 3, 2006.

  1. #1
    Any idea why an email form would work fine on a linux server and not on windows server? The form works on both and says email sent but on the windows server the email never gets delivered....any ideas what the problem is? I suck with windows servers.
     
    narsticle, Mar 3, 2006 IP
  2. garysims

    garysims Well-Known Member

    Messages:
    287
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    108
    #2
    Hi,

    There could be 1001 different reasons, I need a bit more detail to be able to help. Please try and answer the following questions:

    How is the email submission done? PHP? ASP? CGI?
    What mail server software are you running on the Linux machine?
    What mail server software are you running on the Windows machine?
    Can you access the mail logs for the Windows machine. If so what do they show happening to the message?

    As a wild guess I would suggest that the mail server on the windows machine isn't configured correctly and the mail is being lost/dumped somewhere.

    Thanks,

    Gary
     
    garysims, Mar 3, 2006 IP
  3. narsticle

    narsticle Peon

    Messages:
    1,679
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Its PHP and the windows machine is running PLESK. I didnt have to set anything up with mail servers to make it work on the linux. I suspect that mail servers may not be setup on the windows as godaddy is doing mail forwarding on the domain hosted there. Top setup mail on the server to i just point mx records to the ip address or is it more difficult then that?
     
    narsticle, Mar 3, 2006 IP
  4. neroux

    neroux Active Member

    Messages:
    566
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #4
    On Windows PHP uses SMTP directly to send emails. I guess PHP's configuration does not include the correct outgoing SMTP server.
     
    neroux, Mar 4, 2006 IP
  5. onlyican.com

    onlyican.com Peon

    Messages:
    206
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    post the script

    normal php mail function include 4 variables

    $to = who it is to
    $subject
    $message
    $headers = Content type, from ect

    then mail($to,$subject,$message,$headers);
     
    onlyican.com, Mar 4, 2006 IP