PEAR
I have created a Contact Page.
Universal Email should be sending it out using PEAR.
I see nowhere to put any settings for a "Path to PEAR", and emails are not being sent.
Is there something I am missing in the UniEm template?
All my details seem to be correct.
Thank you,
KB
UPDATE:
Firstly:
If it helps any, this is the code it has created:
<?php
if (true) { //WA Universal Email
$Email = new WA_Email("evaluation_2");
$Email->From = "".((isset($_POST["Email_Address"]))?$_POST["Email_Address"]:"") ."";
$Email->Method = "smtp";
$Email->Host = "smtp.xxxxxxl.com";
$Email->Port = "xxx";
$Email->SMTPAuth = true;
$Email->Username = "xxxxxxxx";
$Email->Password = "xxxxxxxxxxxxxxxxxx";
$Email->addTo("xxxxxxxxxxxxxxxx");
$Email->BodyFile = "evaluation_thanks.php";
if (function_exists("rel2abs") && $Email->Redirect) $Email->Redirect = $Email->Redirect?rel2abs($Email->Redirect,dirname(__FILE__)):"";
for ($emailGroup=0; $emailGroup<sizeof($Email->To); $emailGroup++) {
$Email->Subject = "evaluation from: ".((isset($_POST["Full_Name"]))?$_POST["Full_Name"]:"") ."";
$Email->send($emailGroup);
}
$Email->close();
}
?>
Secondly
I notied that it did not have includeds at the top, so I tried inserting:
<?php require_once("webassist/email/mail_php.php"); ?>
<?php require_once("webassist/email/mailformatting_php.php"); ?>
<?php require_once("webassist/email/PEAR_Mail_using_SMTP_php"); ?>
But that did not help, so I deleted them
Thanks
KB
(obviously, there is actual data where I have put xxxxxx)