Project

General

Profile

Bug #3093 ยป 3093.patch

krileon, 15 December 2011 17:13

View differences:

administrator/components/com_comprofiler/comprofiler.class.php
$mail->Sendmail = $_CB_framework->getCfg( 'sendmail' );
}
}
$mail->Sender = $mail->From;
$email_parts = explode( '@', $mail->From );
$email_domain = ( isset( $email_parts[1] ) ? $email_parts[1] : null );
$site_domain = parse_url( $_CB_framework->getCfg( 'live_site' ), PHP_URL_HOST );
if ( $email_domain && ( stripos( $site_domain, $email_domain ) !== false ) ) {
$mail->Sender = $mail->From;
}
$mail->Subject = $subject;
$mail->Body = $body;
    (1-1/1)