Support Forum

INSTALLATION POST BY EMAIL PLUGIN

RI Riccardo
Riccardo
Member

I’ve just installed the post by email plugin.. Can you help me to set it correctly??    I’ve read this http://codex.simple-press.com/codex/plugins/our-plugins/available-plugins/plugin-post-by-email/ but I’ve not understood something. What does “name of the mail server” mean ???  And what does “Each forum for which you opt to enable PBE requires it’s own, unique mailbox” mean ??? If I have on my website 10 forum do I have to create 10 mailboxes ??? I’ve not understood really well :) Thank you for your help :)

19 Answers

New Answer

BR Brandon
Brandon
Member

Each forum that you setup for PBE has to have it’s own email address but all use the same password.

The mail server is where or what is handling the emails.

Most people use the same mail server they have for their website. If you want to do that you would go to your server’s email setup and add an new email address. The email address would be the forum slug/name and the server name. So something like forumone@mywebsite.com.
In the main email options the servername you put in would be the server name shown when you setup the email. In lot of cases they are something like mail.mywebsite.com When you setup the email address it should show you all the settings needed.

Then add the email address to the forum itself under the forum edit properties. Once that is done you can run the little test under the email options and see if it connects. After that you can add more email addresses to your server and assign them to each forum. Just be sure to use the same password for all of them.

You also have to setup the permissions for members to use it as shown in that codex article.

 

 

 

CA Carlos
Carlos
Member

it would be a great idea to make a custom file with an example config with GMAIL for example 

RI Riccardo
Riccardo
Member

I’ve managed:) thank you.. I’ve another two questions if I can..

1) In “permission” I’ve turned off the possibility to users to reply to topics using email. So a user will receive just the content of a new message for example, but he could not  reply it.. At the end of each email there is a line that says that in order to delete the subscription the user should visit his own profile at http :  mywebsite / forum/profile..subscriptions (something like this). The problem is that because I don’t use simplepress profile but another, users don’t have access to that url. Is there a way to delete that line ??? Thank you for your help :)

2) The emails that users receive have as sender “WORDPRESS” and not the name of my website. For example the emails that I receive from simplepress forum  have as sender Simple:Press Support and not WordPress. Is there a way to change this with the name of my website ???? 

Thank you very much :)

YS Yellow Swordfish
Yellow Swordfish
Member
  1. That’s a very good question. There is no easy way of doing it – messy ways bit not an easy way. I think we should possibly address this in the plugin and suppress that prt of the email dependent upon profile setting. We will discuss the pros and cons of doing that here.
  2. Have you set up the email values in the forum admin > Options > Email Settings?
RI Riccardo
Riccardo
Member

1) I’ve not understood. Can you explain me what I have to do ?

2) Yes, I’ve set up the email values.

Thank you very much :)

 

YS Yellow Swordfish
Yellow Swordfish
Member

On 1 – I am suggesting that we talk this over here and let you know. We may have to make code changes…

MP Mr Papa
Mr Papa
Member

for now, you can use the filter ‘sph_subscriptions_notification’ to strip out that message from your emails…

RI Riccardo
Riccardo
Member

I’m sorry but.. what is a filter ?? How can I add that ?? thank you very much :)

MP Mr Papa
Mr Papa
Member

http://codex.wordpress.org/Plugin_API is how WP does filters (and hooks)… we support the same system..

so something like

add_filter('sph_subscriptions_notification', 'my_subs_email_filter');
function my_subs_email_filter($msg) {
    $msg = str_replace('your string', '', $msg);
    return $msg;
}

just change the text in the quotes ‘your string’ with the exact line from the emails you want to remove…

MP Mr Papa
Mr Papa
Member

you add the code I gave you, with your modification/completion, to your spFunctions.php file in your sp theme…

RI Riccardo
Riccardo
Member

Perfect..The line I have to replace should be that in English. is it correct? or can I replace that translated in my language ??????

MP Mr Papa
Mr Papa
Member

if that string is translated, it should be what it is in the translated language – not English…

RI Riccardo
Riccardo
Member

It works!:) Thank you so much. 

You posted me this code :

add_filter('sph_subscriptions_notification', 'my_subs_email_filter');
function my_subs_email_filter($msg) {
    $msg = str_replace('your string', '', $msg);
    return $msg;
}

I've added this, but if I want to replace the line I wanted to delete with another, where do I have to add it ?? In which part of the code you suggested me ???  Thank you for your help :)