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 6252741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:51:38+00:00 2026-05-24T13:51:38+00:00

OK, so I have a PHP mail function. It works fine when I put

  • 0

OK, so I have a PHP mail function. It works fine when I put it on my server but when I put I mail it to my client so he can put it on his server it doesn’t work. It doesn’t give me any errors on their server and gets to the “Thanks” page just fine but never really sends the email. They say it’s because PHP Mail does not have the right headers but I didn’t think that it needed headers if it was just simply “mail(to, subject, message)” They say they have all PHP related functions set properly because I initially thought it was PHP Mail being turned off.

Any suggestions would be great.

  • 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-24T13:51:39+00:00Added an answer on May 24, 2026 at 1:51 pm

    You should always be using a “FROM” header.

    Note:

    When sending mail, the mail must contain a From header. This can be
    set with the additional_headers parameter, or a default can be set in
    php.ini.

    Failing to do this will result in an error message similar to Warning:
    mail(): “sendmail_from” not set in php.ini or custom “From:” header
    missing. The From header sets also Return-Path under Windows.

    This is straight from the documentation for mail()

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

Sidebar

Related Questions

I have a mail function, and it works fine, I get mails. But the
I have a PHP application that sends email using the pear Mail function. Unfortunately
I have a php mail script sitting on a LAMP vps server. The script
I have written a php e-mail processing client that uses the IMAP protocol. I
I am sending email newsletters using php mail() function. I have to track the
I have a php mail script that works well except for one minor fact.
I have a small script which im using to test PHP mail(), as below:
I have a new install of Ubuntu and trying to use the php's mail()
I'm having issues sending emails using the php mail() function. I know the php
I have the following code $(#nav-mail).mouseenter(function(){ $(#dropdown_mail).show(); }); $(#dropdown_mail,#nav-mail).mouseleave(function(){ $(#dropdown_mail).hide(); }); and I am

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.