×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Email not being sent when deleting comment from Administrator

Email not being sent when deleting comment from Administrator 14 years 1 month ago #10524

  • pillarprojects
  • pillarprojects's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi. My whole component (4.1.7 Stable) is working well apart from this.

When a user submits a comment it is auto published, and the Administrator receives the notification emails ok. The Administrator can go in and delete this comment ok, but if he uses the 'delete and send notification..' button the comment is deleted but no email is sent. An error message appears 'Comment deleted. Could not send email'. All other emails from the site are ok.

Any ideas?

Thanks

www.kilmorecottage.com/en/blog/

Email not being sent when deleting comment from Administrator 14 years 1 month ago #10525

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Really cool website!!! Awesome header!
We use the default joomla settings (configured in global config) to send the mail. So if joomla is managing to send a mail upon new registration of an user or system mails, then our component should be able too.

I guess you are using the standard option - php sent function - perhaps try to configure your site with the smtp option.

Email not being sent when deleting comment from Administrator 14 years 1 month ago #10579

  • pillarprojects
  • pillarprojects's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Thanks for the compliment Daniel.

That change didnt do it, but its okay I think he client can live with it.

Email not being sent when deleting comment from Administrator 14 years 1 month ago #10580

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hm, that is strange.
Is the super administrator group selected in the group of moderators???

Email not being sent when deleting comment from Administrator 14 years 1 month ago #10581

  • pillarprojects
  • pillarprojects's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Yes, Administrator and Super Administrator are selected. (under Settings > Security > Moderator groups )

Email not being sent when deleting comment from Administrator 14 years 1 month ago #10582

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Well the function that sends the emails is residing in components/com_comment/classes/joomlacomment/josc_notification.php
notifyMailList. Look at line 335:
if (JUTility::sendMail($mailer->From, $mailer->FromName, $mail, $subject, $message, true, $mailer->cc, $mailer->bcc, $mailer->attachment, $mailer->ReplyTo, $mailer->FromName )) {

As I said we use the standard joomla function.

Perhaps what you could do is to make a var_dump before this function and watch the result:
var_dump (JUTility::sendMail($mailer->From, $mailer->FromName, $mail, $subject, $message, true, $mailer->cc, $mailer->bcc, $mailer->attachment, $mailer->ReplyTo, $mailer->FromName )) ;
 
Now when you publish a comment you should see an error message and the form for comment should be filled with the error message. If no error message is shown this would mean that this function is not called and this could be only the case if you have selected to disable email notifications in backend.

Since you said that it is not that important - I don't expect you to do this, but I'm interested to know what is wrong :)
  • Page:
  • 1
Time to create page: 0.103 seconds