CSS FormBuilder Email functionality...
I understand that the Universal Email functionality is included in CSS FormBuilder, and I've got a form in a shadowbox page that works fine with validation, it posts to a confirm page which has the same formbuilder simple contact form customized with all the elements hidden, etc. This form inserts data to two tables in my database fine using DataAssist (no redirects) and then it's supposed to send the form data to our development email address to alert us that a visitor has posted a question.
I'm testing on a local environment using the PEAR object and have successfully tested this email script:
<?php
require_once "Mail.php";
$from = "Mark Haynes <myemailaddress@mydomain.org>";
$to = "Mark Haynes <myemailaddress@mydomain.org>";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
$host = "smtp.mydomain.org";
$username = "<myUsername>";
$password = "<mypassword>";
$headers = array ('From' => $from,
'To' => $to,
'Subject' => $subject);
$smtp = Mail::factory('smtp',
array ('host' => $host,
'auth' => true,
'username' => $username,
'password' => $password));
$mail = $smtp->send($to, $headers, $body);
if (PEAR::isError($mail)) {
echo("<p>" . $mail->getMessage() . "</p>");
} else {
echo("<p>Message successfully sent!</p>");
}
?>
and everything works with that script (on two machines I've configured), I receive the email and the browser loads a success page.
Using the same server settings in the Universal Email interface, however I'm not getting the email or the redirect page.
I'm using the PEAR Mail using SMTP email object, Latin I(us-ascii) as my Character set, authentication is on with my Username and Password correctly entered, The path to PEAR is set to C:\PHP\PEAR, the smtp server address is properly entered using port 25, my organization name and PHP set as the X-Mailer
Perhaps there's something simple that I've overlooked. Any help would be appreciated.
Thanks!