Forums

2 mail problems

teoce 20 May, 2009
I love chronocomment so much but i have 2 mail problems

1) why when i set SMTP as mailer in Joomla configuration i don't receive mail, no notification mail and no validation mail. Is that normal?

2) and most important: i don't need validation mail and i don't need notification mail to admin, but i absolutily need notification mail to article author. How can i modify the code to obtain what i need.

Thank you very much and sorry for my bad englis.
GreyHead 21 May, 2009
Hi teoce,

If SMTP doesn't work then there is probably something wrong with the setup. SMTP Usually requires a password and username - maybe those are missing or incorrect. Or the mailer url is wrong?

I don't know the answer to Q2, sorry.

Bob
teoce 21 May, 2009
Thank you very much for your answer. I checked again but i think is all ok with SMTP because mail from other components arrive correctly for example registration mail to community builder new users. But most important for me question number 2. I have already read this post: http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=16&t=12414 very interesting but i can't find the indicated row in code, probably i have a new version and this post is about an old version. I found the relativ line in new code but probably also the code to add need modifications.

Thank you very much to everyone and sorry for my bad english
GreyHead 21 May, 2009
Hi teoce,

ChronoForms uses the standard mailer code so if other components are working with SMTP then so will ChronoForms. In that case there's probably something wrong with your form's email settings, please check the Emails tutorial from the link above.

Bob
teoce 21 May, 2009
Thank you very much, you are really patient. Anyway, i think my form is ok because if i switch joomla mailer configuration to sendmail or php mailer mails arrive correctly, with the same mail configuration on chronocomments and SMTP set in joomla configuration mails dont't arrive (is it possible a SPAM block on the mailto address? I tried just only one mailto address). Anyway that's just a little problem, i can set my joomla configuration on php mailer definitively and all mails are good. I just need solution to question number 2. Thank you very much again for your patience.
GreyHead 21 May, 2009
Hi teoce,

It's quite possible that there is a different spam filter on the SMTP server.

Bob
teoce 21 May, 2009
Hi i think i have no made a very good work but in my particular case it works, naturally i speak about qustion number 2:

I added in file comment-form-html.php this code:

<input name="autore" type="hidden" value="<?php echo substr($_GET['id'],0,strpos($_GET['id'],':')); ?>" />


at line 121

then i added in file chronocomments.php this code:


global $mainframe;
$database =& JFactory::getDBO();
$query     = "SELECT * FROM jos_content WHERE id='".$post['autore']."'";
$database->setQuery( $query );
$autore2=$database->loadObject();
$query     = "SELECT * FROM jos_users WHERE id='".$autore2->created_by."'";
$database->setQuery( $query );
$user = $database->loadObject();
JUtility::sendMail($configs->get('nemail_fromemail'), $configs->get('nemail_fromname'), $user->email, $subject, $email_body, true, NULL, NULL, NULL, NULL, NULL );


at line 197. Naturally now admin and author receive the same message but in my case this is not a problem.

Thank everyone and sorry for my bad english
This topic is locked and no more replies can be posted.