Title: Automatic e-mail
Last modified: August 31, 2016

---

# Automatic e-mail

 *  Resolved [joostm](https://wordpress.org/support/users/joostm/)
 * (@joostm)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/automatic-e-mail/)
 * Hello,
 * Can anybody tell me if it is possible to autmaticly e-mail (some) user when there
   is placed an new thread or an answer on a thread?
 * [https://wordpress.org/plugins/asgaros-forum/](https://wordpress.org/plugins/asgaros-forum/)

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Author [Asgaros](https://wordpress.org/support/users/asgaros/)
 * (@asgaros)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/automatic-e-mail/#post-7260996)
 * Notifications are planned and will be available in a future release:
    [https://github.com/Asgaros/asgaros-forum/issues/22](https://github.com/Asgaros/asgaros-forum/issues/22)
 *  [jmolenaar](https://wordpress.org/support/users/jmolenaar/)
 * (@jmolenaar)
 * [10 years ago](https://wordpress.org/support/topic/automatic-e-mail/#post-8235908)
 * I use the function script so everbody get The notification there is a new topic/
   thread. The only thing i want to add is The url to the topic/thread. Can anybody
   help me with the code for The threadID?
 *  Plugin Author [Asgaros](https://wordpress.org/support/users/asgaros/)
 * (@asgaros)
 * [10 years ago](https://wordpress.org/support/topic/automatic-e-mail/#post-8282025)
 * Hello [@jmolenaar](https://wordpress.org/support/users/jmolenaar/),
 * what code do you use? Can I have a look so I can check it out?
 *  [jmolenaar](https://wordpress.org/support/users/jmolenaar/)
 * (@jmolenaar)
 * [10 years ago](https://wordpress.org/support/topic/automatic-e-mail/#post-8282226)
 * Offcourse u can. after [http://www.xxx.nl/?view=forum&id=1](http://www.xxx.nl/?view=forum&id=1)
   i would like the threadID so when sombody clicks they directly go to the topic/
   thread. THANK U!!!
 * function after_add($post_id) {
    global $wpdb; $post_title = get_the_title( $post_id);
   $post = $wpdb->get_row($wpdb->prepare(“SELECT text FROM wp_forum_posts WHERE 
   id = %d;”, $post_id)); $to = ‘xxx@xxxx.nl’; $subject = “Nieuw topic geplaats 
   op xxx Forum”; $message = “Er is een nieuwe topic geplaatst het xxxx-forum. <
   br><br><b>Let op!</b> Om op een notificatie te ontvangen wanneer er een reactie
   is geplaatst op het topic dien je je aan te melden voor dit top. Dit doe je door
   onderaan <i><u>Abonneren op dit onderwerp.</u></i> aan te klikken.<br> <br> [http://www.xxx.nl/?view=forum&id=1&#8221](http://www.xxx.nl/?view=forum&id=1&#8221);;
   $headers = ‘From: [no-reply@xxxx.nl](https://wordpress.org/support/topic/automatic-e-mail/no-reply@xxxx.nl?output_format=md)’.“\
   r\n” . ‘BCC: [xxx@xxx.nl](https://wordpress.org/support/topic/automatic-e-mail/xxx@xxx.nl?output_format=md);
   [xxxx@xxxxl.com](https://wordpress.org/support/topic/automatic-e-mail/xxxx@xxxxl.com?output_format=md)’.“\
   r\n” . ‘Reply-To: [no-reply@xxx.nl](https://wordpress.org/support/topic/automatic-e-mail/no-reply@xxx.nl?output_format=md)’.“\
   r\n” . ‘Content-Type: text/html; charset=UTF-8’; ‘X-Mailer: PHP/’ . phpversion();
 *  mail($to, $subject, $message, $headers);
 * }
 *  Plugin Author [Asgaros](https://wordpress.org/support/users/asgaros/)
 * (@asgaros)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/automatic-e-mail/#post-8371831)
 * Hello [@jmolenaar](https://wordpress.org/support/users/jmolenaar/),
 * I just uploaded a new commit on GitHub:
    [https://github.com/Asgaros/asgaros-forum/commit/1aabc3a8ef7c10c275b71ae9afd2cd2e0370c2db](https://github.com/Asgaros/asgaros-forum/commit/1aabc3a8ef7c10c275b71ae9afd2cd2e0370c2db)
 * This adds a new option in the user profiles of all users as long as the subscription-
   functionality is enabled in the forum-settings. With this option each user (this
   means also moderators and administrators) can decide to get notifications on 
   new forum-topics – no matter in which category/sub-forum they got created.
 * **This means that you dont need to use your custom code anymore because everyone
   who wants to get notified on new topics can activate this option now.**
 * I will include this functionality in the upcoming v1.2.4-release which will be
   published in the next few days.
 *  [jmolenaar](https://wordpress.org/support/users/jmolenaar/)
 * (@jmolenaar)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/automatic-e-mail/#post-8375561)
 * Hello [@Asgaros](https://wordpress.org/support/users/asgaros/),
 * That is great news!!! I dont know if i am technical enough to place aan new commit(
   never done it before) but i will give it a try! Else i wait till the new update.
 * TANK U!!!
 *  [jmolenaar](https://wordpress.org/support/users/jmolenaar/)
 * (@jmolenaar)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/automatic-e-mail/#post-8375582)
 * I tried to update. Now i lost all my date :(. Can i fix it?
 *  Plugin Author [Asgaros](https://wordpress.org/support/users/asgaros/)
 * (@asgaros)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/automatic-e-mail/#post-8376840)
 * [@jmolenaar](https://wordpress.org/support/users/jmolenaar/): Version 1.2.4 is
   not released yet, so just please wait for the update.
 *  [jmolenaar](https://wordpress.org/support/users/jmolenaar/)
 * (@jmolenaar)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/automatic-e-mail/#post-8376926)
 * [@asgaros](https://wordpress.org/support/users/asgaros/) to late 🙁 I already
   did the update. So i lost my data. No way to bring it back i think?
 *  Plugin Author [Asgaros](https://wordpress.org/support/users/asgaros/)
 * (@asgaros)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/automatic-e-mail/#post-8376989)
 * What did you exactly, [@jmolenaar](https://wordpress.org/support/users/jmolenaar/)
 *  [jmolenaar](https://wordpress.org/support/users/jmolenaar/)
 * (@jmolenaar)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/automatic-e-mail/#post-8377012)
 * [@Asgaros](https://wordpress.org/support/users/asgaros/), i made a copy trough
   FTP (and saved it on my desktop) from the plugin on our site. Then i deleted 
   the map and i uploaded yours wich i donwloaded from Github 🙂
 * So now the plugin works fine (so thank u!!!) but the topics which already were
   posted are gone.
 *  Plugin Author [Asgaros](https://wordpress.org/support/users/asgaros/)
 * (@asgaros)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/automatic-e-mail/#post-8377308)
 * [@jmolenaar](https://wordpress.org/support/users/jmolenaar/): Did you delete 
   the old version of the plugin via FTP or via the WordPress uninstaller?
 *  [jmolenaar](https://wordpress.org/support/users/jmolenaar/)
 * (@jmolenaar)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/automatic-e-mail/#post-8379885)
 * I think both. It was two times in The list. I dont know for sure.

Viewing 13 replies - 1 through 13 (of 13 total)

 The topic ‘Automatic e-mail’ is closed to new replies.

 * ![](https://ps.w.org/asgaros-forum/assets/icon-128x128.png?rev=1546717)
 * [Asgaros Forum](https://wordpress.org/plugins/asgaros-forum/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/asgaros-forum/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/asgaros-forum/)
 * [Active Topics](https://wordpress.org/support/plugin/asgaros-forum/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/asgaros-forum/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/asgaros-forum/reviews/)

 * 13 replies
 * 3 participants
 * Last reply from: [jmolenaar](https://wordpress.org/support/users/jmolenaar/)
 * Last activity: [9 years, 12 months ago](https://wordpress.org/support/topic/automatic-e-mail/#post-8379885)
 * Status: resolved