Smart Mailer PHP Support Product Page

SmartMailer PHP Fatal Error htmlMimeMail

Asked 11 Jun 2013 19:58:46
1
has this question
11 Jun 2013 19:58:46 Ryan Preece posted:
Fatal error: Class 'htmlMimeMail' not found in /home/linweb22/t/theonephotoproject.com/user/htdocs/build/ScriptLibrary/incSmartMailer.php on line 33

ok so I've always used the asp version of this and never had an issue. However the PHP puppy is giving me some grief. I'm getting this error - does anyone have any ideas as to why?

I can't really make my code any simpler than this

<?php require_once('Connections/OnePhotoProjectConn.php'); ?>
<?php require_once('ScriptLibrary/incSmartMailer.php'); ?>
<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
?>
<?php

if (!function_exists("GetSQLValueString") {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = ""
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string" ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "" ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "" ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "" ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "" ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "" ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

$colname_rs_upComplete = "-1";
if (isset($_SESSION['name'])) {
$colname_rs_upComplete = $_SESSION['name'];
}
mysql_select_db($database_OnePhotoProjectConn, $OnePhotoProjectConn);
$query_rs_upComplete = sprintf("SELECT * FROM onephotouploads WHERE particName = %s ORDER BY id DESC", GetSQLValueString($colname_rs_upComplete, "text");
$rs_upComplete = mysql_query($query_rs_upComplete, $OnePhotoProjectConn) or die(mysql_error());
$row_rs_upComplete = mysql_fetch_assoc($rs_upComplete);
$totalRows_rs_upComplete = mysql_num_rows($rs_upComplete);
?>
<?php
// Smart Mailer 1.0.9
// Send on load
$sm1 = new SmartMailer();
$sm1->checkVersion("1.09";
$sm1->smtpSetup("smtp.livemail.co.uk", 25, "", "";
$sm1->component = "Sendmail";
$sm1->tmpFolder = "";
$sm1->embedImages = false;
$sm1->progressBar = "";
$sm1->ignore_errors = true;
@set_time_limit(300);
$sm1->setFrom("falseName", " ";
$sm1->setTo("falseName", " ";
$sm1->setCc("", "";
$sm1->setBcc("", "";
$sm1->setSubject("test";
// using static for body
$sm1->setBody_Static_html("test";
// Attachments none
$sm1->sendMail("one";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Be a part of TheOnePhotoProject</title>
<link href="css_styles/one_photo_style.css" rel="stylesheet" type="text/css" />

</head>

<body>
Please wait...
</body>
</html>
<?php
mysql_free_result($rs_upComplete);
?>

obviously the error isn't on my page based on the fact that it say's it the INC file but I'm baffled

thanks for looking

Replies

Replied 11 Jun 2013 19:59:36
11 Jun 2013 19:59:36 Ryan Preece replied:
This is the best I can find but it still doesn't help me out really. I'm guessing this is a server problem?

www.dmxzone.com/forum/topic/26161/?highlight=Fatal+error%3A+Class+%27htmlMimeMail%27+not+found+in+%2Fhome%2Flinweb22%2Ft%2Ftheonephotoproject%2Ecom%2Fuser%2Fhtdocs%2Fbuild%2FScriptLibrary%2FincSmartMailer%2Ephp+on+line+33%0A%0Aok+so+I%27ve+always+used+the+asp+version+of+this+and+never+had+an+issue%2E+However+the+PHP+puppy+is+giving+me+some+grief%2E+I%27m+getting+this+error+-+does+anyone+have+any+ideas+as+to+why%3F%0A%0AI+can%27t+really+make+my+code+any+simpler+than+this+%0A%0A%3C%3Fphp+require_once%28%27Connections%2FOnePhotoProjectConn%2Ephp%27%29%3B+%3F%3E%0A%3C%3Fphp+require_once%28%27ScriptLibrary%2FincSmartMailer%2Ephp%27%29%3B+%3F%3E%0A+%3C%3Fphp+%0Aini_set%28%27display_errors%27%2C1%29%3B+%0A+error_reporting%28E_ALL%29%3B%0A%3F%3E%0A%3C%3Fphp%0A%0Aif+%28%21function_exists%28%22GetSQLValueString%22%29%29+%7B%0Afunction+GetSQLValueString%28%24theValue%2C+%24theType%2C+%24theDefinedValue+%3D+%22%22%2C+%24theNotDefinedValue+%3D+%22%22%29+%0A%7B%0A++if+%28PHP_VERSION+%3C+6%29+%7B%0A++++%24theValue+%3D+get_magic_quotes_gpc%28%29+%3F+stripslashes%28%24theValue%29+%3A+%24theValue%3B%0A++%7D%0A%0A++%24theValue+%3D+function_exists%28%22mysql_real_escape_string%22%29+%3F+mysql_real_escape_string%28%24theValue%29+%3A+mysql_escape_string%28%24theValue%29%3B%0A%0A++switch+%28%24theType%29+%7B%0A++++case+%22text%22%3A%0A++++++%24theValue+%3D+%28%24theValue+%21%3D+%22%22%29+%3F+%22%27%22+%2E+%24theValue+%2E+%22%27%22+%3A+%22NULL%22%3B%0A++++++break%3B++++%0A++++case+%22long%22%3A%0A++++case+%22int%22%3A%0A++++++%24theValue+%3D+%28%24theValue+%21%3D+%22%22%29+%3F+intval%28%24theValue%29+%3A+%22NULL%22%3B%0A++++++break%3B%0A++++case+%22double%22%3A%0A++++++%24theValue+%3D+%28%24theValue+%21%3D+%22%22%29+%3F+doubleval%28%24theValue%29+%3A+%22NULL%22%3B%0A++++++break%3B%0A++++case+%22date%22%3A%0A++++++%24theValue+%3D+%28%24theValue+%21%3D+%22%22%29+%3F+%22%27%22+%2E+%24theValue+%2E+%22%27%22+%3A+%22NULL%22%3B%0A++++++break%3B%0A++++case+%22defined%22%3A%0A++++++%24theValue+%3D+%28%24theValue+%21%3D+%22%22%29+%3F+%24theDefinedValue+%3A+%24theNotDefinedValue%3B%0A++++++break%3B%0A++%7D%0A++return+%24theValue%3B%0A%7D%0A%7D%0A%0A%24colname_rs_upComplete+%3D+%22-1%22%3B%0Aif+%28isset%28%24_SESSION%5B%27name%27%5D%29%29+%7B%0A++%24colname_rs_upComplete+%3D+%24_SESSION%5B%27name%27%5D%3B%0A%7D%0Amysql_select_db%28%24database_OnePhotoProjectConn%2C+%24OnePhotoProjectConn%29%3B%0A%24query_rs_upComplete+%3D+sprintf%28%22SELECT+%2A+FROM+onephotouploads+WHERE+particName+%3D+%25s+ORDER+BY+id+DESC%22%2C+GetSQLValueString%28%24colname_rs_upComplete%2C+%22text%22%29%29%3B%0A%24rs_upComplete+%3D+mysql_query%28%24query_rs_upComplete%2C+%24OnePhotoProjectConn%29+or+die%28mysql_error%28%29%29%3B%0A%24row_rs_upComplete+%3D+mysql_fetch_assoc%28%24rs_upComplete%29%3B%0A%24totalRows_rs_upComplete+%3D+mysql_num_rows%28%24rs_upComplete%29%3B%0A%3F%3E%0A%3C%3Fphp%0A%2F%2F+Smart+Mailer+1%2E0%2E9%0A%2F%2F+Send+on+load%0A%24sm1+%3D+new+SmartMailer%28%29%3B%0A%24sm1-%3EcheckVersion%28%221%2E09%22%29%3B%0A%24sm1-%3EsmtpSetup%28%22smtp%2Elivemail%2Eco%2Euk%22%2C+25%2C+%22%22%2C+%22%22%29%3B%0A%24sm1-%3Ecomponent+%3D+%22Sendmail%22%3B%0A%24sm1-%3EtmpFolder+%3D+%22%22%3B%0A%24sm1-%3EembedImages+%3D+false%3B%0A%24sm1-%3EprogressBar+%3D+%22%22%3B%0A%24sm1-%3Eignore_errors+%3D+true%3B%0A%40set_time_limit%28300%29%3B%0A%24sm1-%3EsetFrom%28%22falseName%22%2C+%22false%40false%2Ecom%22%29%3B%0A%24sm1-%3EsetTo%28%22falseName%22%2C+%22false%40false%2Ecom%22%29%3B%0A%24sm1-%3EsetCc%28%22%22%2C+%22%22%29%3B%0A%24sm1-%3EsetBcc%28%22%22%2C+%22%22%29%3B%0A%24sm1-%3EsetSubject%28%22test%22%29%3B%0A%2F%2F+using+static+for+body%0A%24sm1-%3EsetBody_Static_html%28%22test%22%29%3B%0A%2F%2F+Attachments+none%0A%24sm1-%3EsendMail%28%22one%22%29%3B%0A%3F%3E%0A%3C%21DOCTYPE+html+PUBLIC+%22-%2F%2FW3C%2F%2FDTD+XHTML+1%2E0+Transitional%2F%2FEN%22+%22http%3A%2F%2Fwww%2Ew3%2Eorg%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-transitional%2Edtd%22%3E%0A%3Chtml+xmlns%3D%22http%3A%2F%2Fwww%2Ew3%2Eorg%2F1999%2Fxhtml%22%3E%0A%3Chead%3E%0A%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3DUTF-8%22+%2F%3E%0A%3Ctitle%3EBe+a+part+of+TheOnePhotoProject%3C%2Ftitle%3E%0A%3Clink+href%3D%22css_styles%2Fone_photo_style%2Ecss%22+rel%3D%22stylesheet%22+type%3D%22text%2Fcss%22+%2F%3E%0A%0A%3C%2Fhead%3E%0A%0A%3Cbody%3E%0APlease+wait%2E%2E%2E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E%0A%3C%3Fphp%0Amysql_free_result%28%24rs_upComplete%29%3B%0A%3F%3E%0A%0Aobviously+the+error+isn%27t+on+my+page+based+on+the+fact+that+it+say%27s+it+the+INC+file+but+I%27m+baffled+%0A%0Athanks+for+looking

Reply to this topic