| 
Welcome, Guest

NO Confirmation Mail sent
(1 viewing) (1) Guest

TOPIC: NO Confirmation Mail sent

Re:NO Confirmation Mail sent 2 years, 2 months ago #118513

  • Posts:
  • Karma:
It might be Google... maybe this will shed some light?
Jamie (Rapunzl)
Community Builder Team Member

Before posting on forums: Read all CB Articles | Specially the FAQ | Help us help you
CB links: Subscribe to CB documentation | Our templates | Paid Subscriptions | Get Hosting | Our Forge
Visit my CB Profile

My personal site Rapunzl's Reality always under reconstruction
The topic has been locked.

Re:NO Confirmation Mail sent 2 years, 2 months ago #118514

  • Posts:
  • Karma:
Thanks, Rapunzl. I will look through their rules and see if I'm in compliance.
The topic has been locked.

Re:NO Confirmation Mail sent 2 years, 1 month ago #119222

  • Posts:
  • Karma:
Hello I have the same problem emails do not reach the admin and not the user, use the CB version 1.2.1 and joomla 1.5.15, and add that code to have here, but when I do, I go to register page goes blank and no longer goes from there, until you leave the same class.php.

settings administrator joomla
program mail: Smtp server
autenticacion: YES
SMTP Port: 26 (using my hosting)
user smtp: This e-mail address is being protected from spambots. You need JavaScript enabled to view it
pass stmp: *****
server smtp: mail.mydomain.com

All settings in the registry that brings the default joomla works if I send emails to the admin and user
only with the CB does not work

thank u
The topic has been locked.

Re:NO Confirmation Mail sent 2 years, 1 month ago #119229

  • Posts:
  • Karma:
smtp authentication setting was added to Joomla since CB 1.2.1.

Fix is in this forum and in upcoming next CB release:

bottom of this page:

www.joomlapolis.com/component/option,com...imit,6/limitstart,6/
Beat
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly
CB links: Subscribe to CB documentation - Our templates - Paid Subscriptions - Get Hosting - Our Forge - Incubator
Visit my CB Profile - Send me a Private Message (PM)
--
help us spend more time coding by helping others in this forum, many thanks
The topic has been locked.

Re:NO Confirmation Mail sent 2 years, 1 month ago #120642

  • Posts:
  • Karma:
@ Nick. A

Fabulous! Thanks very much indeed. This was completely doing my head in!

Once again, thanks, Eugenio
The topic has been locked.

Re:NO Confirmation Mail sent 2 years ago #123500

  • Posts:
  • Karma:
I am running CB 1.2 Joomla 1.5.15 and was having trouble getting SMTP mail to work in CB. All would work fine if I had Joomla global configuration set to php mail function or sendmail, but nothing if I used smtp settings. I wanted to have it all go through a gmail account and had joomla configured as such.

All other joomla functions such as contact forms worked great.

I took a look at the code in ../administrator/components/comprofiler/comprofiler.class.php and the functions for sending mail were a mess.

I decided to rewrite it to use the built in joomla functions for this and all works great now no matter which mail setting joomla is using (php mail, sendmail, or smtp).

Here is the code I used:

comprofiler.class.php starting at line 50

replace the entire function & comprofilerCreateMail with this:

 
function & comprofilerCreateMail( $from = '', $fromname = '', $subject, $body ) {
global $_CB_framework;
$mail = JFactory::getMailer();
if($from == '')
{
$_CB_framework->getCfg( 'mailfrom' );
}
if($fromname == '')
{
$_CB_framework->getCfg( 'fromname' );
}
 
$mail->setSender( array( $from, $fromname ) );
$mail->setSubject( $subject );
$mail->setBody( $body );
 
return $mail;
}
 
 


I also had to change the way the replyto is configured in the function comprofilerMail to work properly. This function follows directly after function & comprofilerCreateMail. I will post the whole function here to be sure you can replace with the necessary code:

 
function comprofilerMail( $from, $fromname, $recipient, $subject, $body, $mode = 0, $cc = null, $bcc = null, $attachment = null, $replyto = null, $replytoname = null ) {
$mail = comprofilerCreateMail( $from, $fromname, $subject, $body );
 
// activate HTML formatted emails
if ( $mode ) {
$mail->IsHTML(true);
}
 
if( is_array( $recipient ) ) {
foreach ( $recipient as $to ) {
$mail->AddAddress( $to );
}
} else {
$mail->AddAddress($recipient);
}
if ( isset( $cc ) ) {
if ( is_array( $cc ) ) {
foreach ( $cc as $to ) {
$mail->AddCC( $to );
}
} else {
$mail->AddCC( $cc );
}
}
if ( isset( $bcc ) ) {
if ( is_array( $bcc ) ) {
foreach ($bcc as $to) $mail->AddBCC($to);
} else {
$mail->AddBCC($bcc);
}
}
if ( $attachment ) {
if ( is_array( $attachment ) ) {
foreach ( $attachment as $fname ) {
$mail->AddAttachment($fname);
}
} else {
$mail->AddAttachment( $attachment );
}
}
if ( $replyto ) {
if ( is_array( $replyto ) ) {
reset( $replytoname );
foreach ( $replyto as $to ) {
$toname = ( ( false !== (list( $key, $value ) = each( $replytoname ) ) ) ? $value : '' );
$mail->AddReplyTo( array($to, $toname) );
}
} else
$mail->AddReplyTo( array($replyto, $replytoname) );
}
$mailsSent = $mail->Send();
/*
global $_CB_framework;
if( $_CB_framework->getCfg( 'debug' ) ) {
//$mosDebug->message( "Mails send: $mailssend"«»);
}
if( $mail->error_count > 0 ) {
//$mosDebug->message( "The mail message $fromname <$from> about $subject to $recipient <b>failed</b><br /><pre>$body</pre>", false );
//$mosDebug->message( "Mailer Error: " . $mail->ErrorInfo . "" );
}
*/

return $mailsSent;
}
 
 


Please be sure that you are running a similar configuration to mine and you are not using joomla 1.0.x since this fix is for joomla 1.5

Hope this helps. I do not see how others got SMTP to work since the phpmailer was never told to run IsSMTP(); anywhere in the code.
The topic has been locked.
Time to create page: 0.91 seconds