Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4253556
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:57:41+00:00 2026-05-21T04:57:41+00:00

I have two servers. One (linux) will send mail fine using the script below.

  • 0

I have two servers. One (linux) will send mail fine using the script below. The second (windows server 2008) sends nothing.

<?php mail ( "nobody@email.com", "Contact Us Form", "This is an email from your site", "From: nobody@email.com" )
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T04:57:42+00:00Added an answer on May 21, 2026 at 4:57 am

    mail() works very different on linux and windows.

    • On Linux it pipes your mail to the sendmail binary, which does all the work
    • On windows it actually needs to act as an MTA to pass the mail off to another application.

    On windows your best bet is to set the SMTP information so PHP can hand off the mail to another server which will take care of final delivery.

    https://www.php.net/manual/en/mail.configuration.php#ini.smtp

    That done (and your webserver restarted to allow the change to take affect) if you’re still unable to send mail check the logs for both PHP and the specified MTA to see where things are breaking down.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On my Unix web server, I have two MySQL database servers running. One on
I have two servers (two providers, two ip adressess, different systems Linux and Apache/Windows
I have two SQL Server 2005 databases, one is for development and the other
I have two nodejs http servers, one requests a tar file from the other.
I have a linux server (Red Hat 4) with one serial port connection to
I have two dedicated servers and no hardware firewall. I'd like to forward all
When I have two mysql servers that have different jobs (holding different databases) but
I have a simple scenario, where two servers are connected through a gigabit link.
I have set up transactional replication between two SQL Servers on different ends of
I currently have an asp.net website hosted on two web servers that sit behind

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.