Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send Mail all weirded out.

Status
Not open for further replies.

CGIMana

IS-IT--Management
Mar 6, 2006
56
US
Hey, I am having trouble sending mail with php script from a form.
Here are the Files cgimana.com/recform.zip
I have no idea what wrong, but I'm not receiving the e-mails...but I get no errors with the script. I tried adding
function tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address) {
if (SEND_EMAILS != 'true') return false;

// Instantiate a new mail object
$message = new email(array('X-Mailer: osCommerce'));

// Build the text version
$text = strip_tags($email_text);
if (EMAIL_USE_HTML == 'true') {
$message->add_html($email_text, $text);
} else {
$message->add_text($text);
}

// Send message
$message->build_message();
$message->send($recipient, $subject);
}
(it's a mail script from oscommerce) But still no erroes and still no e-mail.....would anyone have any input?

-Hoped I helped. Don't forget this site is Member supported.
 
does a simple call to mail() work?

Code:
error_reporting(E_ALL);
$to = "";
$from = "From: $fromemail \r\n";
$fromemail = "";
$subject = "test";
$body = "test body";
mail($to, $subject, $body, $from);

if not then
*check your php.ini settings for the smtp/sendmail configuration
*check the php error logs
*check the smtp server error logs

 
This server is on a hosting service. godaddy.com I do not have access to any of the settings..that would be an easy fix.

-Hoped I helped. Don't forget this site is Member supported.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top