HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
How do I post my website's front page in an email?
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Tools
View previous topic :: View next topic  
Author Message
navacris76



Joined: 29 Jul 2005
Posts: 1

PostPosted: Fri Jul 29, 2005 7:54 pm     How do I post my website's front page in an email? Reply with quote

I have just created my website and now it is time for marketing. I don't know how to post the main page of my website into emails. I want to attract more customers by making it easy for them to access my website through an email.

Where do I start??? I don't know much about html.

HELP!!
Cristina
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

PostPosted: Sat Jul 30, 2005 4:49 am     Reply with quote

If you use PHP then you can send a PHP email. You can simply add your pahe HTML to the email body content.

Code:

<?php
$to  = 'someoneatsite.co.uk';

$subject = 'New Mail';


$message = '
<!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>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>

<body>
<table width="90%"  border="1" align="center" cellpadding="5" cellspacing="0" bordercolor="#FF0000">
  <tr>
    <th height="50" bordercolor="#FF0000" bgcolor="#FFFFCC" scope="col"><h1 class="style1">Welcome to Dave\'s Pub </h1></th>
  </tr>
  <tr>
    <td bordercolor="#0000FF" bgcolor="#99FFFF"><p>This is text this is text This is text this is text This is text this
      is text This is text this is text This is text this is text This is text
      this is text This is text this is text This is text this is text This is
      text this is text This is text this is text This is text this is text This
      is text this is text This is text this is text This is text this is text
      This is text this is text This is text this is text This is text this is
      text This is text this is text This is text this is text This is text this
    is text </p>
    <p>&nbsp;</p>
    <p>This is text this is text This is text this is text This is text this
    is text This is text this is text This is text this is text This is text
    this is text This is text this is text This is text this is text This is
    text this is text This is text this is text This is text this is text This
    is text this is text This is text this is text This is text this is text
    This is text this is text This is text this is text This is text this is
    text This is text this is text </p></td>
  </tr>
</table>
</body>
</html>
';

$headers  = 'MIME-Version: 1.0' . "\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\n";


//$headers .= 'To: You <youatyou.com>, me <meatme.com>' . "\n";
$headers .= 'From: admin <infoatsite.co.uk>' . "\n";


mail($to, $subject, $message, $headers);
?>
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Tools All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial