email not working in for contact (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: email not working in for contact
|
setanta (User)
Fresh Boarder
Posts: 4
|
|
Re:email not working in for contact 2 Years, 4 Months ago
|
Karma: 0
|
|
Can you cut and paste your mailToFriend function so I can check with mine. If you no-oped some code as per my post, maybe, just maybe, you no-oped too much or didn't no-op enough.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:email not working in for contact 2 Years, 4 Months ago
|
Karma: 0
|
Here it is :
| Code: |
function mailToFriend($option,$act,$task,$id,$send ) {
global $database, $my, $mainframe, $ea_footer;
global $mosConfig_live_site, $mosConfig_sitename;
global $mosConfig_mailfrom, $mosConfig_fromname;
if($send == 0){ // show mailform
/*$obj = new mosContent( $database );
$obj->load( $id );
if ( $obj->id === null || $obj->access > $my->gid ) {
mosNotAuth();
return;
} else {*/
$query = "SELECT template FROM #__templates_menu"
. "\n WHERE client_id = 0"
. "\n AND menuid = 0";
$database->setQuery( $query );
$tmpl = $database->loadResult();
$ea_footer = 0; // do not show EA footer in popup window
HTML_frontend_estateagent::«»show_mtfForm( $obj->id, $obj->title, $tmpl );
}
/*}*/
else{ // send email to friend
$validate = mosGetParam( $_POST, mosHash( 'validate' ), 0 );
if (!$validate) {
// probably a spoofing attack
echo _NOT_AUTH;
return;
}
$oid = mosGetParam( $_POST, 'id', '0' );
$email = mosGetParam( $_POST, 'email', '' );
$sendername = mosGetParam( $_POST, 'sendername', '' );
$senderemail = mosGetParam( $_POST, 'senderemail', '' );
$subject_default = _EA_ETF_INFO .' ' . $sendername;
$subject = mosGetParam( $_POST, 'subject', $subject_default );
if ($oid < 1 || !$email || !$senderemail || ( check_email( $email ) == false ) || (check_email( $senderemail ) == false)) {
echo "<script> alert('"._EA_ETF_ERR_NOEMAIL."'); window.history.go(-1);</script>";
}
$query = "SELECT template FROM #__templates_menu"
. "\n WHERE client_id = 0"
. "\n AND menuid = 0";
$database->setQuery( $query );
$tmpl = $database->loadResult();
$link = sefRelToAbs( $mosConfig_live_site .'/index.php?option=com_estateagent&act=object&task=showEO&id='. $oid );
$msg = sprintf( _EA_ETF_MSG, $sendername, $senderemail, $mosConfig_sitename, $link );
mosMail( $senderemail, $sendername, $email, $subject, $msg );
HTML_frontend_estateagent::emailTFSent( $email, $tmpl );
}
}
|
Thanx for having a look on this
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
DreNL (User)
Expert Boarder
Posts: 107
|
|
Re:email not working in for contact 2 Years, 4 Months ago
|
Karma: 6
|
|
Well when I install it on a fresh Joomla it is running good, so it is not a hosting problem.. It has something to do with settings that are different on my life site. Have tried everything to no avail. So I have given up on it a little.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
setanta (User)
Fresh Boarder
Posts: 4
|
|
Re:email not working in for contact 2 Years, 4 Months ago
|
Karma: 0
|
|
Sorry, no help. It looks just like mine.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
jim (User)
Fresh Boarder
Posts: 1
|
|
Re:email not working in for contact 2 Years, 3 Months ago
|
Karma: -1
|
Works Now Thank You Very Much I Love Your EA.
LINK CONTACTS IN CONTACT MANAGER TO SAME USERS THAT ADMINISTER EA. IN CATEGORY DROP DOWN CHOSE "ESTATE AGENTS"
Mail to a Friend function works fine ...unless ... you've messed around with the code ...
 <br><br>Post edited by: jim, at: 2006/04/13 17:26
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|
|