Moonsoft Software Solutions

Calc Builder Support

Calc Builder support
Public write access is disabled. Please login
Last post
rumblebum

rumblebum
3 posts
---
13.01.2012 12:14

email

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




 
MSTeam

MSTeam
227 posts
---
13.01.2012 12:58
Re: email
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


Moonsoft Team
www.moonsoft.es

 
rumblebum

rumblebum
3 posts
---
14.01.2012 05:22
Re: email
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




 
MSTeam

MSTeam
227 posts
---
16.01.2012 09:35
Re: email
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


Moonsoft Team
www.moonsoft.es

 
rumblebum

rumblebum
3 posts
---
19.01.2012 16:02
Re: email
Hi
That did the job
Everything working OK now.
Thanks very much for your support.