CalcBuilder Forum

email

User rumblebum 2012-01-13 12:14:23

Hi I've bought and installed your product and everything is good, it does just what I wanted.

However I have a slight problem with sending email. Every time I try to send I get the message "Error sending Email, Try again later".

I'm running Joomla 1.73, PHP 5.2.17 Mysql 5.0

Any ideas?
Many thanks

Moonsoft support 2012-01-13 12:58:52

Hello,
to send email function we use standard joomla configuration. Please check at your system administrator if the parameters regarding email server and configuration are set. To check everything is well-configured you can try to send a test email from your joomla admin.

Hope this helps
Best regards
Moonsoft Team

User rumblebum 2012-01-14 05:22:25

Thanks for your reply,
I have no problem sending in Joomla with either PHP or SMTP. It seems the only problem is with Calc Builder. Any other ideas?
Many Thanks

Moonsoft support 2012-01-16 09:35:03

Hello,

We can change how calcbuilder use joomla to send messages and change it by php mail. In components/com_calcbuilder/models/calcbuilder.php, in getEnvio() function, you can change:

$email=trim(JRequest::getVar('email'));
$config =& JFactory::getConfig();
$mailer =& JFactory::getMailer();
$mailer->setSubject($config->getValue( 'config.sitename' ));
$sender = array(
$config->getValue( 'config.mailfrom' ),
$config->getValue( 'config.fromname' ) );

$mailer->setSender($sender);
$mailer->addRecipient($email);

$mailer->isHTML(true);
$mailer->setBody($mail_content);

try {
$send =& $mailer->Send();
} catch (Exception $e) {
return false;
}

by

$email=trim(JRequest::getVar('email'));
$config =& JFactory::getConfig();
/*
$mailer =& JFactory::getMailer();
$mailer->setSubject($config->getValue( 'config.sitename' ));
$sender = array(
$config->getValue( 'config.mailfrom' ),
$config->getValue( 'config.fromname' ) );

$mailer->setSender($sender);
$mailer->addRecipient($email);

$mailer->isHTML(true);
$mailer->setBody($mail_content);
*/
$cabeceras = "From: ".$config->getValue( 'config.mailfrom' )."\r\nContent-type: text/html\r\n";


try {
mail($email,$config->getValue( 'config.sitename' ),$mail_content,$cabeceras);
} catch (Exception $e) {
return false;
}
/*try {
$send =& $mailer->Send();
} catch (Exception $e) {
return false;
}*/

Of course, we recommend to make a backup before.

Also, we send you by email the full php file if you want to replate it.

Regards,

Moonsoft Team

User rumblebum 2012-01-19 16:02:34

Hi
That did the job :-)
Everything working OK now.
Thanks very much for your support.

...
List Manager

Build different lists for your site

Buy now!
...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!