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 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 am currently creating a quote system which works like this: User submits data
I am creating an email like this: System.Diagnostics.Process.Start( string.Format(mailto:{0}?&subject=Test&body={1}, string.Join(, , emails), string.Join(\n, temp.ToArray())
We're currently using Salesforce for our sales process, which involve trying to get people
I'm creating a comment system and when a new comment comes I will email
I am using the following command on WinXP and getting an error, but works
I am creating my own email tracking system for email marketing tracking. I have
I'm writing a simplified version of an email system on a site I'm creating.
I am creating a web based email client using c# asp.net. What is confusing
I am creating a JSF form where I have an email field. I need
Let's say your creating an application that needs to send you an email monthly.

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.