| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 
 | <?php 
if(is_set($_POST['textfield']))
{
////require_once('file:///Sans titre/Users/rolandothibault/class.phpmailer.php');
//include("file:///Sans titre/Users/rolandothibault/buddha-bar/class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded
 
$mail             = new PHPMailer();
 
$body             = file_get_contents('contents.html');
$body             = eregi_replace("[\]",'',$body);
 
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host       = "XXXXXX"; // SMTP server
$mail->SMTPDebug  = 2;                     // enables SMTP debug information (for testing)
                                           // 1 = errors and messages
                                           // 2 = messages only
$mail->SMTPAuth   = true;                  // enable SMTP authentication
$mail->Host       = "XXXXX"; // sets the SMTP server
$mail->Port       = 26;                    // set the SMTP port for the GMAIL server
$mail->Username   = "XXXX&gmail.com"; // SMTP account username
$mail->Password   = "XXXXXX";        // SMTP account password
 
$mail->SetFrom('XXXX&gmail.com', 'First Last');
 
$mail->AddReplyTo("lXXXX&gmail.com","First Last");
 
$mail->Subject    = "PHPMailer Test Subject via smtp, basic with authentication";
 
$mail->AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
 
$mail->MsgHTML($body);
 
$address = "XXXX&gmail.com";
$mail->AddAddress($address, "John Doe");
 
$mail->AddAttachment("images/phpmailer.gif");      // attachment
$mail->AddAttachment("images/phpmailer_mini.gif"); // attachment
}
if(!$mail->Send()) {
  echo "Mailer Error: " . $mail->ErrorInfo;
} else {
  echo "Message sent!";
 
?>
<!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=ISO-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
	background-color: #000000;
}
#backgroud {
	position:fixed;
	width:600px;
	height:400px;
	z-index:1;
	background-image: url(bb-background.png);
	margin-top: auto;
	margin-right: auto;
	margin-bottom: auto;
	margin-left: auto;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;
}
#contact {
	position:absolute;
	width:83px;
	height:36px;
	z-index:1;
	left: 354px;
	top: 361px;
}
#Layer1 {
	position:absolute;
	width:136px;
	height:36px;
	z-index:2;
	left: 456px;
	top: 363px;
}
#mailto {
	position:absolute;
	width:42px;
	height:37px;
	z-index:3;
	left: 706px;
	top: 360px;
}
#apDiv1 {
	position:relative;
	left:373px;
	top:-72px;
	width:102px;
	height:17px;
	z-index:999;
}
-->
</style>	
<script type="text/javascript">
function submitform()
{
 * *document.forms["form1"].submit();
//or document.getElementById("form1").submit();
}
</script></head>
 
<body>
 
<div id="backgroud">
<img src="bb-background.png" border="0" usemap="#Map" />
<map name="Map" id="Map"><area shape="rect" coords="478,356,511,374" href="javascript: submitform()" alt="test" /><area shape="rect" coords="133,356,198,374" href="mailto:XXXX@gmail.com" alt="test" /><area shape="rect" coords="225,355,344,375" href="http://google.com" alt="test" />
sdsd</map>
 
<div id="apDiv1">
<form id="form1" name="form1" method="post" action=" 	p.php" style="margin:0px;padding:0px;font-size:10px;line-height:1px;">
 
  <p>
    <input type="text" name="textfield" id="textfield" style="width:100px;height:15px;margin:0px;padding:0px;font-size:10px;" />
    <input name="hiddenField" type="hidden" id="hiddenField" value="XXXXXX@hotmail.fr" />
  </p>
</form>
 
</div>
</div>
 
</body>
</html> | 
Partager