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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:47:12+00:00 2026-05-18T06:47:12+00:00

I have a simple contact page set up with a form and I am

  • 0

I have a simple contact page set up with a form and I am sending those details via email using the php mail() function.

When I submit the page everything works fine and the email sends with all the data no problems.

However once it has done this I get a popup in the browser that says:

“The page at (address) says:
E-mail can not be sent!”

even though this message is not true and the email sends fine I need to stop this from appearing as it halts my page’s execution and no more code is ran after this. I can’t seem to find anything about this error on google.

here is my mail code anyway just in case it is me causing it.

$headers  = "From: ".$Email."\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$msg = '
 <html>
 <body>
 <strong>Enquiry from www.mysite.com website</strong><br /><br />
 <strong>Name:</strong> '.$FullName.' <br />
 <strong>Email:</strong> '.$Email.' <br />
 <strong>Phone:</strong> '.$Phone.' <br />
 <strong>Message:</strong> '.$Message.' <br />
 <strong>Group Size:</strong> '.$GroupSize.' <br />
 <strong>Date From:</strong> '.$DayFrom.' '.$MonthFrom.' '.$YearFrom.' <br />
 <strong>Date To:</strong> '.$DayTo.' '.$MonthTo.' '.$YearTo.' <br />
 <strong>Meals Required:</strong> '.$MealsRequired.' <br />
 <strong>Lift Pass Required:</strong> '.$LiftpassRequired.' <br />
     <strong>Equipment Required:</strong> '.$SkiRequired.' <br />
 </body>
 </html>
 ';

mail($sendTo, $subject, $msg, $headers);

Cheers

  • 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-18T06:47:13+00:00Added an answer on May 18, 2026 at 6:47 am

    It looks as if it’s an error from another part of the page, probably JavaScript. I’d look through your JS to see if there is anything pertaining to your error there. The error LOOKS like part of the PHP, but PHP is server side, not client side, so cannot trigger errors.

    If you have any JS that runs near or when the mail is sent, have a look through that for any errors it may be throwing up.

    James

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

Sidebar

Related Questions

i have a simple contact us form and i need to send an email
i have made a simple php contact form following this tutorial: http://www.catswhocode.com/blog/how-to-create-a-built-in-contact-form-for-your-wordpress-theme The big
I'm trying to create a simple message form using navigateToURL() and PHP mail(). But
I have a simple contact form with Subject and Message that I want to
i have a simple contact page on my private homepage. Offline it works perfectly,
I have a simple contact form that works in every browser, except IE. It
I have a simple form with some plain html input like bellow using ASP.NET
i have this simple script: function paginateUsers(page){ get( _config_remote_host+'/users?page='+page,function(json){ json = JSON.parse(json); var _html
I had this simple modal contact form working fine but must have broke it
We have a simple domain model: Contact, TelephoneNumber and ContactRepository. Contact is entity, it

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.