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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:32:15+00:00 2026-06-03T11:32:15+00:00

Right, i’m new to PHP and mySQL, but i’ve got a few questions that

  • 0

Right, i’m new to PHP and mySQL, but i’ve got a few questions that i hope some of you guys can answer because this is confusing me right now.

(I’ll still try to read up more on google to see if i can find any answers whilst this is going on, so if i find any, i’ll post my own answers up here as well)

  1. I want a feedback form on my site. I’m looking at the PHP Email Forms but i’m kind of confused here —

On the API, it says that for someone to send an email to me, the php script needs to enter and send this code:

mail(to,subject,message,headers,parameters)

However, i realise there is no “from” argument inside this function. Why is this so? How will i be able to find out the email of the other person and be able to reply to him/her via my own email after receiving such a feedback request?

I’m also reading on parts where people include the sender’s email into the “headers” argument itself. How will a mail system gather that there is a sender’s email if i include this inside the “header” argument? (I’m asking this part because my webhost provides an auto-reply before i reply, and i want it to be able to recognize that the sender’s email is the email that the system should auto-reply to)

Would it be easier to just put a mailto:email@email.com link on the webpage?

I think that’s pretty much all i’m trying to find out for now, i have more complex questions but i think i’ll try to solve the easier ones first.

  • 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-06-03T11:32:17+00:00Added an answer on June 3, 2026 at 11:32 am

    Check out php mail in the manual

    additional_headers (optional)

    String to be inserted at the end of the email header.

    This is typically used to add extra headers (From, Cc, and Bcc). Multiple extra headers should be separated with a CRLF (\r\n).

    Example from the manual

    $to      = 'nobody@example.com';
    $subject = 'the subject';
    $message = 'hello';
    $headers = 'From: webmaster@example.com' . "\r\n" .
               'Reply-To: webmaster@example.com' . "\r\n" .
               'X-Mailer: PHP/' . phpversion();
    
    mail($to, $subject, $message, $headers);
    

    Update:

    You also asked about putting the name in the from address. To do this just change the From: in the headers to WEBMASTER NAME <webmaster@example.com>

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

Sidebar

Related Questions

Right what I was trying to do is validate some input so that the
Right now I'm using OleDbDataAdapter objDataReader = new OleDbDataAdapter(); objDataReader.SelectCommand = myCommand; objDataReader.Fill(myDataTable); But
Right now, I have: RewriteRule ^([^/\.]+)?$ index.php?id=$1 [L] to match any username at the
Right now, I've just some code which fetches the picture from the URL directly.
Right now I have a script that will get the last five files in
Right now I have a function, in a class that is used to listen
Right guys, seeing as you were so helpful last time with my previous question
Right, hi guys, I recently followed a tutorial http://xnadevelopment.com/tutorials/thestateofthings/thestateofthings.shtml where I wanted to create
Right, so here the scenario: I've created a class called DiaryPage that inherites from
Right, I've got a slight problem here, in which I've attempted to implement a

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.