Need a nice email sending template

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Need a nice email sending template

Post by gautamz07 »

I have the following email template for sending emails , that i found online:

Code: Select all

$body = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Send Message</title>
</head>
<body style="margin: 0;padding: 0; line-height:normal; font-family:Arial, Helvetica, sans-serif;">
<div style="width: 600px; margin:30px auto; padding:0;">
<div style="margin: 0; padding:0; border:5px solid #000000; color:#000000;">
    	<h1 style="text-align: center; margin:-40px 0 10px;">
        	<span style="background:#ffffff; padding: 10px; display: inline-block;">Enquiry From<br>Carbonic International</span>
        </h1>
        <div style="padding: 10px 15px; background: #eee; margin: 0 30px 30px;">
        	<table cellpadding="0" cellspacing="0" style="width: 100%; border-collapse:collapse; font-size: 15px; padding:">
            	<tr>
                	<td style="padding: 15px; color:#777; border-right: 1px solid #ccc; font-weight: bold; text-align:right;">Phone</td>
                    <td style="padding: 15px; color:#222222;">'.$phone.'</td>
                </tr>
                <tr>
                	<td style="padding: 15px; color:#777; border-right: 1px solid #ccc; font-weight: bold; text-align:right;">Email</td>
                    <td style="padding: 15px; color:#222222;">'.$email.'</td>
                </tr>
                <tr>
                	<td style="padding: 15px; color:#777; border-right: 1px solid #ccc; font-weight: bold; text-align:right;">Password</td>
                    <td style="padding: 15px; color:#222222;">'.$password.'</td>
                </tr>                
                <tr>
                	<td style="padding: 15px; color:#777; border-right: 1px solid #ccc; font-weight: bold; text-align:right;">Fruits</td>
                    <td style="padding: 15px; color:#222222;">'.$fruits.'</td>
                </tr>
                <tr>
                	<td style="padding: 15px; color:#777; border-right: 1px solid #ccc; font-weight: bold; text-align:right;">Country</td>
                    <td style="padding: 15px; color:#222222;">'.$country.'</td>
                </tr>
                <tr>
                	<td style="padding: 15px; color:#777; border-right: 1px solid #ccc; font-weight: bold; text-align:right;">IP Address</td>
                    <td style="padding: 15px; color:#222222;">'.$ip.'</td>
                </tr>
            </table>
        </div>
    </div>
</div>
</body>
</html>';
Now i wanted a slightly more professional template, preferably free , is there any place i can get a nice form sending template for emails ? because i really can't find many right now with a simple online search.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Need a nice email sending template

Post by requinix »

Make one yourself. Seriously. Stick with HTML 4 syntax and use inline CSS and you should be good, but still test it in a few email clients.
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Re: Need a nice email sending template

Post by gautamz07 »

Ok thank you :| :P
Post Reply