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 33ok 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