Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
php Form processor making... question time.
Old 12-16-2003, 04:38 PM php Form processor making... question time.
Chris_krasnichu's Avatar
Ultra Talker

Posts: 331
Location: Ontario, Canada
Trades: 0
Hello,
Can someone tell me how I would make a email look professional?
I'm using php and I'm needing to make my own processors.
So if anyone can tell me how I would make a processor that would use a mail template or something, To make the email look professional.
Thanks in Advance.


Chris
__________________
Name: Chris Krasnichuk
Email Address:
Please login or register to view this content. Registration is FREE
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-18-2003, 04:12 PM this may help...
Phunky's Avatar
Skilled Talker

Posts: 68
Location: NJ
Trades: 0
Try including something like this in your code...

In the mailbody variable, you have the full freedom of HTML with CSS....

PHP Code:
<?
$subject1 
"Here is an E-Mail"// The subject of the recipients e-mail.

$email1 "you@you.com"// Your e-mail, the from address.

$mailbody "<STYLE type='text/css'><!-- 
body { 
font-family:'Times New Roman', Serif; 
font-size:12px; 
font-weight:normal;
font-style:normal; 
text-align:left; 
color:black; 
background:none; }  
.fastReq    { 
font-family: Verdana, Helvetica, Sans-Serif; 
font-size:12px; 
font-weight:bold; 
font-style:normal; 
color:#4A207E; 
background:none; } 
.fastReg {    
font-family: Verdana, Helvetica, Sans-Serif; 
font-size:12px;    
font-weight:normal; 
font-style:normal; 
color:#4A207E; 
background:none; }  --></STYLE>
    <table width=640>
      <tr>
        <td align='center'><hr width=95%>Online Application Received<hr width=95%><br></td>
      </tr>
      <tr>
        <td><br><img src=\"http://www.legalmedicalstaffing.com/Images/logo.gif\"><br></td>
      </tr>
      <tr>
        <td> <!-- Begin Form Results Table -->
      <table width=640 cellpadding=3 cellspacing=2 style='border:1px #4A207E solid; margin-bottom:5px; margin-top:2px;'>
          <tr>
            <td bgcolor=#FAE22F width='50%'><p class=fastReg>Full Name - <span class=fastReq>
$first_name $middle_in $last_name</span></p></td>
            <td bgcolor=#FAE22F width='50%'><p class=fastReg>E-Mail Address - <span class=fastReq>
$email</span></p></td>
        </tr>
          <tr>
            <td bgcolor=#FAE22F><p class=fastReg>Address - <span class=fastReq>
$address</span></p></td>
            <td bgcolor=#FAE22F><p class=fastReg>Home Phone # - <span class=fastReq>
$home_phone</span></p></td>
        </tr>
          <tr>
            <td bgcolor=#FAE22F><p class=fastReg>Address, cont. - <span class=fastReq>
$add2</span></p></td>
            <td bgcolor=#FAE22F><p class=fastReg>Cell Phone # - <span class=fastReq>
$cell_phone</span></p></td>
        </tr>
          <tr>
            <td bgcolor=#FAE22F><p class=fastReg>City/State/Zip - <span class=fastReq>
$city$state $zip</span></p></td>
            <td bgcolor=#FAE22F><p class=fastReg>Work Phone # - 
            <span class=fastReq>
$work_phone</span>&nbsp;&nbsp;&nbsp;Ext. <span class=fastReq>$work_phone_ext</span></p></td>
        </tr>
 <table>"
//HTML MESSAGE BODY! 

//the built in mail function of php in use ([i]$email[/i] field is from a form where the user enters their email.)
    
mail("$email""$subject1","$mailbody"
        
"From: $email1\n" 
        
"MIME-Version: 1.0\n" 
        
"Content-type: text/html; charset=iso-8859-1"); 
?>
__________________
But dreaming just comes natural
Like the first breath from a baby,
Like sunshine feeding daisies,
Like the love hidden deep in your heart.

~J.Prine

Last edited by Phunky; 12-18-2003 at 04:23 PM..
Phunky is offline
Reply With Quote
View Public Profile
 
Old 12-18-2003, 05:09 PM
Chris_krasnichu's Avatar
Ultra Talker

Posts: 331
Location: Ontario, Canada
Trades: 0
Thanks
__________________
Name: Chris Krasnichuk
Email Address:
Please login or register to view this content. Registration is FREE
Chris_krasnichu is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to php Form processor making... question time.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11833 seconds with 12 queries