Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I am being volleyed from my Web host to my PHP programmer regarding the following issue and need your advice on how to proceed.
1) I have a shopping cart and contact form on my site that sends an HTML-based e-mail.
2) The e-mail sends successfully to a test AOL account as well as another domain name; however, the domain name that is actually hosted sends but with [u]blank[/u] contents.
3) We have three e-mail accounts that are receiving the contents as blank, on three computers. So, we're ruling out e-mail settings via Outlook.
4) Since the e-mail sends correctly via other addresses, the programmer says that it's a server-side issue.
5) Since I can send an HTML-based message (via a 3rd party software program) to the domain name (e-mail) accounts, independent of the site, the Web host says that it's the code inside of the cart and contact page.
Notes:
1) We have php3, php and phps extensions on.
2) The programmer is using .css and I noticed that my test HTML e-mail did not pull the .css but sent it successfully with default font.
3) Contact Us form is located at http://www.maxuspt.com/contact_us.shtml
Points to system_site_contact.php
Code for this page is below.Code: Select all
<?
// explode array in contact product
for($i=0; $i<= sizeof($contact_products)-1; $i++) {
$contact_products2 .= $contact_products[$i] . "<br>";
}
include("setting.php");
$db_connect = mysql_connect($db_host, $db_username, $db_password);
mysql_select_db($db_name, $db_connect) || die(mysql_error());
$sql_query = "SELECT * FROM setup_email WHERE email_id = '3'";
$result = mysql_query($sql_query) or die(mysql_error());
$row = mysql_fetch_array($result);
$email_contact = $row[email_content];
mysql_close($db_connect);
// replace strings ...
$email_contact = str_replace("[contact_products]", $contact_products2, $email_contact);
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
$email_contact = str_replace("[$key]", $val, $email_contact);
}
// send email ...
ini_set("SMTP","localhost");
ini_set("sendmail_from", "sales@maxuspt.com");
$message = "";
srand((double)microtime()*1000000);
$semi_rand = md5(time());
$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
$headers = "From: Maxus Poker Table<sales@maxuspt.com>\n" .
"MIME-Version: 1.0\n" .
"Content-Type: multipart/mixed;\n" .
" boundary=\"{$mime_boundary}\"";
$message = "This is a multi-part message in MIME format.\n\n" .
"--{$mime_boundary}\n" .
"Content-Type: text/html; charset=\"iso-8859-1\"\n" .
"Content-Transfer-Encoding: 7bit \n\n". $email_contact . " \n\n".
"--{$mime_boundary}\n";
mail($contact_recipient, $contact_subject, $message, $headers);
mail("mary@abouttrimedia.com", $contact_subject, $message, $headers);
mail("webmaster@maxuspt.com", $contact_subject, $message, $headers);
header("location:$contact_redirect");
?>Fingers are pointing and I just need it to work. Am I missing something?
Thanks, Mary
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]