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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:47:32+00:00 2026-06-18T03:47:32+00:00

So when I submit my form, everything is stored in the database just fine,

  • 0

So when I submit my form, everything is stored in the database just fine, I had a really simple email that basically consisted of, ‘Hey thanks, this is your link’ kind of deal and I received that just fine. But now I’ve upgraded to using an HTML body instead and suddenly I’m not receiving the email, any idea why?

$to = $username;
$subject = 'Thanks for Registering on Dota Pub Stars!';
$message = '<html>
                <head>
                    <title>Registration Successful!</title>
                    <link rel="stylesheet" src="http://www.sithhappens.net/css/style.css" />
                </head>
            <body class="bodybg">
                <div id="registrationform">
                <p class="success">Thanks for registering on Dota Pub Stars!</p>
                <br />
                <br />
                <a class="button2" href="http://www.sithhappens.net/?key=' . $activation_key . '&amp;username=' . $username . '&amp;email=' . $email1 . '">Activate Account</a>
                </div>
            </body>
            </html>';

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

mail($to, $subject, $message, $headers);
  • 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-18T03:47:35+00:00Added an answer on June 18, 2026 at 3:47 am

    your above code workin fine i check like this try to check $username value is email

    my example

    $to = 'rsharma@gmail.com';
    $subject = 'Thanks for Registering on Dota Pub Stars!';
    $message = '<html>
                    <head>
                        <title>Registration Successful!</title>
                        <link rel="stylesheet" src="http://site...net/css/style.css" />
                    </head>
                <body class="bodybg">
                    <div id="registrationform">
                    <p class="success">Thanks for registering on Dota Pub Stars!</p>
                    <br />
                    <br />
                    <a class="button2" href="http://www.site...net/activateacc.php?key=345345&amp;username=435345&amp;email=34534534">Activate Account</a>
                    </div>
                </body>
                </html>';
    
        $headers = "MIME-Version: 1.0 \r\n";
        $headers .= "Content-type: text/html; charset=iso-8859-1\n";
        $headers .= "From: $from\r\n";
    
    mail($to, $subject, $message, $headers);
    

    also check your SMTP settings is ok

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

Sidebar

Related Questions

I am trying to let a user submit a form that sends an email
I am working on a CSS/HTML submit form that I am going to make
I'm experiencing following issue: if I submit a form that contains checked value in
I have a jquery Ajax call function that I use to submit form to
I have an HTML5 form that takes in the date which is then submit
I noticed that when I submit text to my MySQL form in VARCHAR it
I'm using the Ext.Direct.Mvc stack - when i submit a direct form - everything
This code will submit the information from the form to a php file, everything
When i added a form to just add the phone number everything worked properly.
I have a form containing name,email,message and captcha fields. I can submit the form

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.