- Postagens: 7
- Obrigados Recebidos: 0
Formulário do Joomanager não funciona...
- Haiashi
-
Autor do Tópico
- Offline
- JCB! Novato
-
function getSendMail() {
global $mainframe;
$db = JFactory::getDBO();
$config = $this->getToletConfig();
$data = JRequest::get( 'post' );
$id = JRequest::getInt('catitemid');
$fromname = $data["tolet_name"];
$fromemail = $data["tolet_email"];
$to = $data["email"];
$subject = $data["tolet_subject"];
$phone = $data["tolet_phone"];
$message = $data["tolet_message"];
$verif_box = $data["verif_box"];
// rasio add
$urltosend = base64_decode(JRequest::getVar('urltosend',''));
// check to see if verificaton code was correct
if(md5($verif_box).'a4xn' == $_COOKIE) {
$query = 'SELECT * FROM #__joomanager_items WHERE id ='.$id;
$db->setQuery($query);
$items = $db->loadObjectlist();
//$user = & JFactory::getUser($items->userid);
$subject = sprintf(JText::_('CONTACT_SUBJECT'),
$items[0]->title
);
$body = sprintf(JText::_('CONTACT_MESSAGE'),
$fromname,
$fromemail,
$phone,
$message,
$urltosend
);
// print_r ($body);die;
$mailing = JUtility::sendmail($fromemail, $fromemail,
$subject,
$body,
true,
' ',
$config->value
);
if ($mailing){
$msg = JText::_( 'EMAIL_SEND_MSG' );
} else {
$msg = JText::_( 'EMAIL_SEND_ERROR_MSG' );
}
// delete the cookie so it cannot sent again by refreshing this page
setcookie('tntcon','');
} else {
// if verification code was incorrect then return to contact page and show error
header("Location:".$_SERVER."?nam e=$name&subject=$subject&from=$from&message=$message&wrong_code=true& quot;);
exit;
}
return $msg;
}
Please Entrar ou Registrar to join the conversation.
- Haiashi
-
Autor do Tópico
- Offline
- JCB! Novato
-
- Postagens: 7
- Obrigados Recebidos: 0
function getSendMail() {
global $mainframe;
$db = JFactory::getDBO();
$config = $this->getToletConfig();
$data = JRequest::get( 'post' );
$id = JRequest::getInt('catitemid');
$fromname = $data["tolet_name"];
$fromemail = $data["tolet_email"];
$to = $data["email"];
$subject = $data["tolet_subject"];
$phone = $data["tolet_phone"];
$message = $data["tolet_message"];
$verif_box = $data["verif_box"];
// rasio add
$urltosend = base64_decode(JRequest::getVar('urltosend',''));
// check to see if verificaton code was correct
if(md5($verif_box).'a4xn' == $_COOKIE) {
$query = 'SELECT * FROM #__joomanager_items WHERE id ='.$id;
$db->setQuery($query);
$items = $db->loadObjectlist();
//$user = & JFactory::getUser($items->userid);
$subject = sprintf(JText::_('CONTACT_SUBJECT'),
$items[0]->title
);
$body = sprintf(JText::_('CONTACT_MESSAGE'),
$fromname,
$fromemail,
$phone,
$message,
$urltosend
);
// print_r ($body);die;
$mailing = JUtility::sendmail($fromemail, $fromemail,
$subject,
$body,
true,
' ',
$config->value
);
if ($mailing){
$msg = JText::_( 'EMAIL_SEND_MSG' );
} else {
$msg = JText::_( 'EMAIL_SEND_ERROR_MSG' );
}
// delete the cookie so it cannot sent again by refreshing this page
setcookie('tntcon','');
} else {
// if verification code was incorrect then return to contact page and show error
header("Location:".$_SERVER."?nam e=$name&subject=$subject&from=$from&message=$message&wrong_code=true& quot;);
exit;
}
return $msg;
}
Please Entrar ou Registrar to join the conversation.
- asvarela
-
- Offline
- JCB! Novato
-
- Postagens: 1
- Obrigados Recebidos: 0
Ola Haiashi temte por um email com @com o mesmo provedor de seu site ex: <!-- e --><a href="mailto:sergio@conseguimovel.com.br]sergio@conseguimovel.com.br[/url]<!-- e -->(é o meu email) o joomanager esta no site <!-- w -->[url=http://www.conseguimovel.com.br" onclick="window.open(this.href);return false;]www.conseguimovel.com.br[/url]<!-- w --> Na configuração do seu joomanager va no "config" e no "Contact Email BCC: ponha seu email. Se vc não entendeu contate-me <!-- e --><a href="mailto:novasolucao@uol.com.br]novasolucao@uol.com.br[/url]<!-- e -->Haiashi escreveu: Adquiri o Joomanager só que o formulário de contato dos detalhes do imóvel não está funcionando... Já olhei o código e está tudo legal... Liguei para o provedor da hospedagem e eles dizem que está tudo certo... O erro que aparece é <!-- e --><a href="mailto:PHPMAILER_FROM_FAILEDemail@dominio.com.br]PHPMAILER_FROM_FAILEDemail@dominio.com.br[/url]<!-- e -->
Parece que ele está tendando enviar para o próprio email que o cliente colocou no campo email do formulário. Não sei mais o que fazer ! Por favor me ajudem !
Link do site: http://www.confiareimoveis.com.br/site/index.php
Please Entrar ou Registrar to join the conversation.