Hello All,
Can you please tell me what is required to send an email from an HTML_QuickForm through XAMPP.
I am currently running Suse Linux Professional 9.3
XAMPP for Linux 1.4.16
I have read that I need to;
"You need to check and possibly change one variable in the php.ini file if you’re using Unix: sendmail_path, a string containing the full path to your sendmail program (usually /usr/sbin/sendmail or /usr/lib/sendmail), a replacement, or a wrapper (such as /var/qmail/bin/sendmail).
If you are not using sendmail, and you do not reset this configuration directive to the correct alternative daemon, your mail transfer may be very slow, as several alternative programs are tried and allowed to time out before the correct one is found."
I have tried the above steps but no luck receiving mail.
I am able to do the following:
- create a simple HTML_QuickForm based form and then display the data on screen through PHP
- I can submit the email and be sent to the page where the form has been processed, but no email is sent to the specified address
Here is the HTML_QuickForm code:
// Load the main class
require_once 'HTML/QuickForm.php';
// Instantiate the HTML_QuickForm object
$form = new HTML_QuickForm('send_email');
$form->addElement('text','subject','Subject: ','size="30" maxlength="128"');
$form->addElement('textarea','body','Message Body: ','rows="10" cols="30"');
$form->addElement('submit','send','Send Message'); $data = $form->getSubmitValues();
if ($data['send']) {
mail('mnaumowicz@equitabletrust.com',$data['subject'],$data['body']);
print "Your message has been sent.";
} else {
$form->display();
}
?>
Can you please tell me how I can do a simple test to confirm that mail is being processed from the SUSE system through XAMPP?
Thanks,
powderskier