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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:35:30+00:00 2026-05-15T03:35:30+00:00

Hi i am creating a email system which works on our devbox but on

  • 0

Hi i am creating a email system which works on our devbox but on our 1&1 server i get a internal server error 500. The way which i generate the email is by using a simple_dom_parser which reads a html file and replaces for a specified value. I have managed to get the email to send now and everything works within it. Here is the code

<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<title>Untitled Document</title>
</head>
<body style='margin: 0; padding: 0; background-color: #eaeaea;'>
            <table width='500px' border='0' cellpadding='0' cellspacing='0' style='background-color: #fff; width:500px;' >
                <tr>
                    <td><img src='http://www.completelettingsolutions.co.uk/images/email/email_header.jpg' border='0' /></td>

                </tr>
            </table>
            <table width='450px' border='0' cellpadding='0' cellspacing='0' style='background-color: #fff; width:500px;' >
                <tr>
                    <td bgcolor='#FFFFFF' style='padding:0 16px;'  cellpadding='0' cellspacing='0' align="left">
                    <font>
                    <span id='fName' style='text-decoration: none;'></span> 
                        <br><br>
                        We've recieved a request for your password to be reset on Complete Letting Solutions. If you've not requested this then rest assured your details are safe and ignore this email!
                        <br><br>
                        Your Username: <span id='uName' style='text-decoration: none;'></span>
                        <br><br>
                        Your Password:  <span id='returnLink' style='text-decoration: none;'></span>               
                        <br><br>
                        Please note - the password reset link above will expire in 24 hours.
                        <br><br>
                        <font color="#4E69B2" size="2" >
                        <b>
                        Kind Regards,<br>
                        Complete Letting Solutions
                        </b>
                    </font>
                    </font>
                    </td>
                </tr>
            </table>
            <table width='500px' border='0' cellpadding='0' cellspacing='0' style='width:500px;'>
                <tr>
                    <td><img src='http://www.completelettingsolutions.co.uk/images/email/email_foot.jpg' border='0' /></td>
                </tr>
                </table>  
    </body>
    </html>

now all i need to do is align the tables to be centered. Origionaly i was putting them in another table and alignin the td but that gives me a server error. has any one ever experienced this before and does any one know how to fix it? the php versions on both are 5.3.2.

below is the code that dies

<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<title>Untitled Document</title>
</head>
<body style='margin: 0; padding: 0; background-color: #eaeaea;'>
           <table width='100%' border='0' cellpadding='0' cellspacing='0' style='background-color: #eaeaea; width:100%;' >
    <tr>
        <td align='center'>
            <table width='500px' border='0' cellpadding='0' cellspacing='0' style='background-color: #fff; width:500px;' >
                <tr>
                    <td><img src='http://www.completelettingsolutions.co.uk/images/email/email_header.jpg' border='0' /></td>

                </tr>
            </table>
            <table width='450px' border='0' cellpadding='0' cellspacing='0' style='background-color: #fff; width:500px;' >
                <tr>
                    <td bgcolor='#FFFFFF' style='padding:0 16px;'  cellpadding='0' cellspacing='0' align="left">
                    <font>
                    <span id='fName' style='text-decoration: none;'></span> 
                        <br><br>
                        We've recieved a request for your password to be reset on Complete Letting Solutions. If you've not requested this then rest assured your details are safe and ignore this email!
                        <br><br>
                        Your Username: <span id='uName' style='text-decoration: none;'></span>
                        <br><br>
                        Your Password:  <span id='returnLink' style='text-decoration: none;'></span>               
                        <br><br>
                        Please note - the password reset link above will expire in 24 hours.
                        <br><br>
                        <font color="#4E69B2" size="2" >
                        <b>
                        Kind Regards,<br>
                        Complete Letting Solutions
                        </b>
                    </font>
                    </font>
                    </td>
                </tr>
            </table>
            <table width='500px' border='0' cellpadding='0' cellspacing='0' style='width:500px;'>
                <tr>
                    <td><img src='http://www.completelettingsolutions.co.uk/images/email/email_foot.jpg' border='0' /></td>
                </tr>
            </table>
                        </td>
    </tr>
</table>  
</body>
</html>
thank you.
  • 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-15T03:35:31+00:00Added an answer on May 15, 2026 at 3:35 am

    Working Example:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html>
    
        <head>
            <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
            <title>Untitled Document</title>
        </head>
    
        <body style='margin:0; padding:0; background-color:#eaeaea;'>
            <table width='100%' border='0' cellpadding='0' cellspacing='0' style='background-color:#eaeaea; width:100%;' >
                <tr>
                    <td align='center'>
                        <table width='500px' border='0' cellpadding='0' cellspacing='0' style='background-color: #fff; width:500px;' >
                            <tr>
                                <td>
                                    <img src='http://www.completelettingsolutions.co.uk/images/email/email_header.jpg' border='0' />
                                </td>
                            </tr>
                        </table>
                        <table width='450px' border='0' cellpadding='0' cellspacing='0' style='background-color: #fff; width:500px;' >
                            <tr>
                                <td bgcolor='#FFFFFF' style='padding:0 16px;'  cellpadding='0' cellspacing='0' align="left">
                                    <font>
                                        <span id='fName' style='text-decoration: none;'></span>
                                        <br><br>
                                        We've recieved a request for your password to be reset on Complete Letting Solutions. If you've not requested this then rest assured your details are safe and ignore this email!
                                        <br><br>
                                        Your Username: <span id='uName' style='text-decoration: none;'></span>
                                        <br><br>
                                        Your Password:  <span id='returnLink' style='text-decoration: none;'></span>
                                        <br><br>
                                        Please note - the password reset link above will expire in 24 hours.
                                        <br><br>
                                        <font color="#4E69B2" size="2" >
                                            <b>
                                                Kind Regards,<br>
                                                Complete Letting Solutions
                                            </b>
                                        </font>
                                    </font>
                                </td>
                            </tr>
                        </table>
                        <table width='500px' border='0' cellpadding='0' cellspacing='0' style='width:500px;'>
                            <tr>
                                <td>
                                    <img src='http://www.completelettingsolutions.co.uk/images/email/email_foot.jpg' border='0' />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </body>
    
    </html>
    

    You didn’t set the DOC-TYPE, thus the browser couldn’t know how to read your code…

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

Sidebar

Related Questions

I'm creating an email message using CDO object (and VB6, but that doesn't really
I am creating a splash page for a rails app which contains an email
I am creating my own email tracking system for email marketing tracking. I have
I am using the following command on WinXP and getting an error, but works
I am creating a login system where I use a persons email address as
When creating links for an an html based email, how critical is it to
When I'm creating a user for my web application, an SMTP email (using ASP.NET's
Creating Traversals for Binary Search Tree with Recursion. void inOrder(void (*inOrderPtr)(T&)) { if(this->left !=
I'm currently in the process of creating an announcement system at my place of
i am writing an application in which i am creating web services. i am

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.