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

  • Home
  • SEARCH
  • 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 379923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:56:20+00:00 2026-05-12T14:56:20+00:00

I was having trouble getting my mail php mail script to work yesterday but

  • 0

I was having trouble getting my mail php mail script to work yesterday but I finally got it going. Now I just turned my computer back on after a shutdown and its not working again. I am getting this message in my mail.log:

Oct 1 11:22:26 alexander-repennings-imac postfix/sendmail[352]: fatal: Recipient addresses must be specifie\
d on the command line or via the -t option
Oct 1 11:22:26 alexander-repennings-imac postfix/master[354]: daemon started — version 2.4.3, configuratio\
n /etc/postfix
Oct 1 11:23:26 alexander-repennings-imac postfix/master[354]: master exit time has arrived

The PHP script looks like this:

<?php
if(isset($_POST['submit'])) {

  $to = "MichaelMinerva2012@gmail.com"; 
  $subject = "Competition Submission";
  $name_field = $_POST['name'];
  $email_field = $_POST['email'];

  $value_field = $_POST['sendvalue'];


  $body = "From: $name_field\n E-Mail: $email_field\n  Value: $value_field\n";


  if(mail($to, $subject, $body))
      echo "Data has been submitted to $to!";
  else
      echo "failure";

      } else {
           echo "blarg!";
      }
    ?>

Which is once again echoing failure.

  • 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-12T14:56:20+00:00Added an answer on May 12, 2026 at 2:56 pm

    probably the sendmail_path value isn’t set in php.ini. Open it to see if the following line is uncommented*

    sendmail_path = /usr/sbin/sendmail -t
    

    Worked for me once.

    *assuming you are running on Unix system

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

Sidebar

Ask A Question

Stats

  • Questions 300k
  • Answers 300k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You don't need to copy any specific files from the… May 13, 2026 at 8:04 pm
  • Editorial Team
    Editorial Team added an answer use sys.modules[module_name] ... and you should avoid masking module names:… May 13, 2026 at 8:04 pm
  • Editorial Team
    Editorial Team added an answer TCP transfer speed will be! because if you ran it… May 13, 2026 at 8:04 pm

Related Questions

I may be missing something silly. But I've been staring at it for a
I'm having trouble getting my callback function to work in post: I've got this
My C# is a bit rusty and I've never written XML with it before.
I'm having trouble getting my ASPX-App to work on the productive server. As my

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.