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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:15:51+00:00 2026-05-27T20:15:51+00:00

When I edited my PHP code to send a message, and a from field,

  • 0

When I edited my PHP code to send a message, and a from field, the from field worked then the message didn’t. How could I have it so the message would be in the body of the email while working with the from field? Here is my code.

<?php    
$headers  = "Contact: ".$_POST['contact']."\r\n";
$headers .= "BCC: ".$_POST['email']."\r\n";
$headers .= "From: Your Company <your_company@example.com>\r\n";

mail("Your Memory", $thank_you,$headers, $message);
?> 
  • 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-27T20:15:52+00:00Added an answer on May 27, 2026 at 8:15 pm

    Your parameters are messed up. The fifth parameter where you have $mesage is supposed to be extra options passed to the SMTP server. Looks like you might intend to have $message where you have $thank_you.

    mail($to_visitor, "Your Memory", $message, $headers);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following jQuery code in my PHP file (edited Jan 19 2010
I have the code below which I got from the php: mktime manual just
Hi there I have edited some code I have found on-line and everything works
I would think the following piece of code should work, but it doesn't (Edited:
I have always edited code live on a site through an FTP connection in
I have a .js file with code compatible for both php and js languages.
this is an edited code in which mr. Paulo Rodrigues, php curl is used
My PHP script generates a table with rows which can optionaly be edited or
--edited for clarity (hopefully) I have an XML file that looks something like this:
edited: This is what i need: sendpost = function(a,b,c){ return jQuery.post('inc/operations.php', {a:b}, c, json);

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.