PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed May 23, 2018 1:28 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sun Aug 27, 2017 4:17 pm 
Offline
Forum Contributor
User avatar

Joined: Wed May 14, 2014 12:18 pm
Posts: 331
I have the following email template for sending emails , that i found online:

Syntax: [ Download ] [ Hide ]
$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.


Top
 Profile  
 
PostPosted: Mon Aug 28, 2017 1:19 am 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6617
Location: WA, USA
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.


Top
 Profile  
 
PostPosted: Tue Aug 29, 2017 9:41 am 
Offline
Forum Contributor
User avatar

Joined: Wed May 14, 2014 12:18 pm
Posts: 331
Ok thank you :| :P


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Exabot [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group