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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:09:24+00:00 2026-06-15T23:09:24+00:00

I am building a website form page where a user enters in information which

  • 0

I am building a website form page where a user enters in information which gets sent to my email once submitted. This appears to work ok, however, I want the information to be displayed in bullet points within the email once it has been sent.

Below shows the bit of code that sends all the information in one big chunk, but how do I add bullet points from each title i.e. company name, email, phone number etc? or even a line space is fine…

Code:

$to = 'bla@hotmail.com';
$subject = 'Quote';
$message = 'FROM: '.$companyname. '-' .$fullname. 'Email: '.$email. ' Phone Number:     '.$phonenumber;
$headers = 'From: bla@hotmail.com' . "\r\n";

Expected Outcome:

Company Name:

Full Name:

Email:

Phone Number:

  • 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-15T23:09:25+00:00Added an answer on June 15, 2026 at 11:09 pm

    To send the list with formatting (or format text in general) you’ll have to use HTML.

    So, $headers will become:

    $headers = 'From: bla@hotmail.com' . "\r\nContent-type: text/html\r\n";

    to tell the client this mail is HTML and not plain text.

    Then, the message will be

      $message = <<<EOF 
      <html> 
        <body> 
      <ul>
      <li>Company name: $companyname</li>
      <li>Full name: $fullname </li>
      </ul>
        </body> 
      </html> 
      EOF;
    

    See also “Example #4 Sending HTML email” here

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

Sidebar

Related Questions

I am building a mobile website, In this a form is there but no
I'm building a website with codeigniter and I'm creating a form for user submission.
I'm building a simple contact form for a website. It does not connect to
I'm building a wholesale order form on a website. The current plan is to...
I am building a website templating system where multiple user can create their own
I'm building a website with ASP.NET MVC3. When a user signs in, I pull
I am building a website which includes a full width slider; 100% of browser
I'm building a registration page that uses JQuery's validator plugin to validate the form.
I am currently working on a building community website in PHP. This contains forms
I am building a new website where a user can login. I see three

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.