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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:33:48+00:00 2026-06-03T05:33:48+00:00

Below is the code for my booking form email, sent from a Linux server:

  • 0

Below is the code for my booking form email, sent from a Linux server:

$body = "
      <p>Hello sir,</p>
      <p>Name: <b> {$firstname}</b><br />
        Email: <b> {$email}</b><br />
        Phone: <b> {$phone}</b><br />
        Length Of Stay: <b> {$length} </b><br />
        Number in Party: <b> {$party} </b><br />
        Month : <b> {$month} </b><br />
        Day: <b> {$day} </b><br />
        Year: <b> {$year} </b><br />
        Additional information:<b> {$additional_information} </b>

      </p>
      <p>with best regards, <br /><b>My Website</b></p>
    ";


    $to = 'info@currentwebsite.com';
    $subject = 'Message';

    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    $headers .= 'From: '. $email. "\r\n";
    $headers .= 'Reply-To: '.$email.'' . "\r\n" ;

    if(mail($to, $subject, $body, $headers))
    {
        phpalert( 'Your request has been sent successfully!' );
    }
    else {
        phpalert( 'Sorry! could not send your request. Please try again later.' );
    }

Does anyone know why my mail is not coming? It shows “Your request has been sent successfully!” But I can’t find any email in inbox or even in spam.

Added
Is there any chances of blocking mails from server?

  • 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-03T05:33:49+00:00Added an answer on June 3, 2026 at 5:33 am

    try sending a simple mail without any meta, headers, mime etc first ! try out the php documentation examples first. I they dont work, you have a server problem (php module deactivated or something like that):

    http://php.net/manual/en/function.mail.php

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

Sidebar

Related Questions

Below code is the response from the server: xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema><soap:Body><SendCardDetailsResponse xmlns=http://tempuri.org/><SendCardDetailsResult><ROOT xmlns=><DocumentElement><res-auth><auth-data count='1' ><**attribute
Below code gives me an 'undefined' on the name and email. However the user
below code is my databasehandler class i got it from a tutorial. Beside that
Below code makes form to be submitted without html5 validation... $j(document).on(click, #client_entry_add, function(event){ ajax_submit();});
I am using VB.net code and SQL server 2005. I am havng below code
Below code is validating properly.When i first submit the form,it shows the error message,second
The below code makes application freeze when changing focus from Edit1 to Edit2 after
how do i get the array value from below code?. and use while loop
Partial Code: My below code pulls a query from my DB and then uses
The below code is in OnTimer event. If items from 2 list boxes are

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.