mail from php (oscommerce)
Hi
You guys are the best.
Please forgive me for posting a MAC OSX problem, - its using php, xampp and Oscommerce so its nearly Linux (I hope).
The Oscommerce software is generally fine and has the
added benefit of being customisable in php if you're willing to make the effort (and take the risk!)
I have enhanced mine with a calender download which has been extensively modified and now works as I want it to (give or take).
The problem is that the code which sends out email booking confirmations doesn't (and has never) worked.
The Mac mail software works fine so its not a network problem, and I've set up php.ini etc but still no joy.
Code fragment below, any ideas?
------------------------------------------------
$lese_kd = "SELECT customers_firstname, customers_lastname FROM " .
TABLE_CUSTOMERS .
" WHERE customers_id = " . $y_customers_id;
$y_erg_kd = MYSQL_QUERY($lese_kd);
$y_anz_kd = MYSQL_NUMROWS($y_erg_kd);
if ($y_anz_kd > 0)
{
$y_kd_firstname =
mysql_result($y_erg_kd,0,"customers_firstname");
$y_kd_lastname =
mysql_result($y_erg_kd,0,"customers_lastname");
}
$email_subject = sprintf(TEXT_EMAIL_SUBJECT_DELETE);
$email_subject = $email_subject . " " . $y_kd_firstname . " "
. $y_kd_lastname;
$email_text = $y_customers_id . " " . $y_kd_firstname . " " .
$y_kd_lastname . "<br>" .
ENTRY_CAL_ID . ": " . $calendar_id;
$email_body = TEXT_EMAIL_INTRO_DELETE . $email_text;
// an, email-an, subject, mailtext, von, email-von
tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS,
$email_subject, $email_body, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
---------------------------------------------
Many thanks in advance
ML
|