tunapanda / TI-wp-content-theme

Wordpress theme for Tunapanda content.
Creative Commons Zero v1.0 Universal
0 stars 5 forks source link

Mail server not functioning #43

Closed mrlarso closed 8 years ago

mrlarso commented 8 years ago

Cannot enter into password recovery. Receive the following error:

The email could not be sent. Possible reason: your host may have disabled the mail() function.

limikael commented 8 years ago

There are 2 ways basically to get mail working from PHP.

The first option, to configure sendmail, is a special kind of hell. What's worse, there is not really any good ways to test if it has been configured properly. We should avoid this.

The second way is to use a SMTP server, and then install a plugin for wordpress that allows sending mail through that SMTP server. There are a few plugins for this:

I have used the folowing and gotten it to work. However, the other ones have more installs...

https://wordpress.org/plugins/wp-mail-bank/

There are probably more... We should do some research in order to find out which one works best...

Unfortunately, I don't think the information in the description "You can use Gmail, Yahoo, Hotmail's SMTP server if you have an account with them" is accurate. It doesn't seem like gmail actually allows this anymore.

Instead, I think we need to find a cloud based SMTP service. Maybe: http://www.easy-smtp.com/

So... We need to register there and test if it works...

neerajkamdar commented 8 years ago

Postfix is another option: http://www.postfix.org

Or Mailgun is an SMTP service that has a free tier upto 10,000 emails which should be enough for our purpose - https://www.mailgun.com. It has a wordpress plugin too: https://wordpress.org/plugins/mailgun/

limikael commented 8 years ago

@neerajkamdar That is awesome info! We should certainly give that a go. Btw, have you actually used any solution "in the wild" so you can testify which one might be the best?

neerajkamdar commented 8 years ago

I have setup postfix on a digital ocean droplet for a client. But it is only used for outgoing messages sent by the system, not for incoming email. 

I have not used Mailgun - I have used Mandrill (a services similar to Mailgun - now that I think about it they also have a free tier of upto 12000 emails per month).

I think for this purpose postfix is the best as we don’t have to think about it once it’s installed and worry about API keys for Mandrill or Mailgun etc. 

My understanding is we only have to setup outgoing mail for the system to be able to send emails, so postfix should do the job and it’s not very difficult to setup since we don’t have to worry about incoming mail. 

If you want me to set it up, then just send me the access info for the server and I can set it up.

Thanks, Neeraj 

From: Mikael Lindqvist notifications@github.com Reply: tunapanda/TI-wp-content-theme reply@reply.github.com Date: February 4, 2016 at 8:56:23 AM To: tunapanda/TI-wp-content-theme ti-wp-content-theme@noreply.github.com CC: Neeraj Kamdar neeraj.kamdar@gmail.com Subject:  Re: [TI-wp-content-theme] Mail server not functioning (#43)

@neerajkamdar That is awesome info! We should certainly give that a go. Btw, have you actually used any solution "in the wild" so you can testify which one might be the best?

— Reply to this email directly or view it on GitHub.

limikael commented 8 years ago

Yep, it's only for outgoing mail, the incoming mail is handled by gmail.

But you have access, right? The neeraj user should have administration rights? And that should be all that's needed to install required plugins and set them up. I wouldn't mind giving you root access to the server, but I think for this particular issue I think the ideal solution would be one where this wouldn't be needed. Am I missing something?

Anyway, it might be the case that @mrlarso (that's Mick :) ) already started working on this, so coordinate with him...

neerajkamdar commented 8 years ago

For postfix, we have to install it on the server - it is not affiliated with wordpress - once installed it is configured to be used for all system mail functions such as PHPs mail function. So if we decide to use Postfix then I will need server access - unless @mrlarso can set it up.

If we decide to use Mandrill or Mailgun, then I don’t think server access is necessary. I think I can setup the plugin.

Let me know which one you prefer. 

Neeraj 

From: Mikael Lindqvist notifications@github.com Reply: tunapanda/TI-wp-content-theme reply@reply.github.com Date: February 4, 2016 at 1:16:41 PM To: tunapanda/TI-wp-content-theme ti-wp-content-theme@noreply.github.com CC: Neeraj Kamdar neeraj.kamdar@gmail.com Subject:  Re: [TI-wp-content-theme] Mail server not functioning (#43)

Yep, it's only for outgoing mail, the incoming mail is handled by gmail.

But you have access, right? The neeraj user should have administration rights? And that should be all that's needed to install required plugins and set them up. I wouldn't mind giving you root access to the server, but I think for this particular issue I think the ideal solution would be one where this wouldn't be needed. Am I missing something?

Anyway, it might be the case that @mrlarso (that's Mick :) ) already started working on this, so coordinate with him...

— Reply to this email directly or view it on GitHub.

mrlarso commented 8 years ago

I haven't had too much time to look into it, but I also think postfix sounds like the best option here. Neeraj, if you want to set it up that would be great!

limikael commented 8 years ago

Hm... I actually disagree... I checked out postfix and it is a server component, a replacement for sendmail. I think there is value to rely as much as possible on things that can be installed in Wordpress. So I think Mandrill or Mailgun is the best alternative.

neerajkamdar commented 8 years ago

Ok .. I’ll setup Mandrill or Mailgun first. If we decide to move to postfix at a later stage, we can set that up and remove the plugin. It will not cause any disruption to the system . 

From: Mikael Lindqvist notifications@github.com Reply: tunapanda/TI-wp-content-theme reply@reply.github.com Date: February 4, 2016 at 1:31:42 PM To: tunapanda/TI-wp-content-theme ti-wp-content-theme@noreply.github.com CC: Neeraj Kamdar neeraj.kamdar@gmail.com Subject:  Re: [TI-wp-content-theme] Mail server not functioning (#43)

Hm... I actually disagree... I checked out postfix and it is a server component, a replacement for sendmail. I think there is value to rely as much as possible on things that can be installed in Wordpress. So I think Mandrill or Mailgun is the best alternative.

— Reply to this email directly or view it on GitHub.

mrlarso commented 8 years ago

Cool, was just discussing with Micke and he convinced me that one of the plugins is the best way to go :)

On Thu, Feb 4, 2016 at 1:49 PM, Neeraj Kamdar notifications@github.com wrote:

Ok .. I’ll setup Mandrill or Mailgun first. If we decide to move to postfix at a later stage, we can set that up and remove the plugin. It will not cause any disruption to the system .

From: Mikael Lindqvist notifications@github.com Reply: tunapanda/TI-wp-content-theme reply@reply.github.com Date: February 4, 2016 at 1:31:42 PM To: tunapanda/TI-wp-content-theme ti-wp-content-theme@noreply.github.com CC: Neeraj Kamdar neeraj.kamdar@gmail.com Subject: Re: [TI-wp-content-theme] Mail server not functioning (#43)

Hm... I actually disagree... I checked out postfix and it is a server component, a replacement for sendmail. I think there is value to rely as much as possible on things that can be installed in Wordpress. So I think Mandrill or Mailgun is the best alternative.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/tunapanda/TI-wp-content-theme/issues/43#issuecomment-179767627 .

neerajkamdar commented 8 years ago

Ok .. I’ve installed Mandrill plugin and set it up. I sent myself a test password reset and it worked. 

I’ll send you the Mandrill login credentials separately.

If those who were having trouble getting emails when signing up can test this again, it would be great.  

From: mrlarso notifications@github.com Reply: tunapanda/TI-wp-content-theme reply@reply.github.com Date: February 4, 2016 at 1:52:14 PM To: tunapanda/TI-wp-content-theme ti-wp-content-theme@noreply.github.com CC: Neeraj Kamdar neeraj.kamdar@gmail.com Subject:  Re: [TI-wp-content-theme] Mail server not functioning (#43)

Cool, was just discussing with Micke and he convinced me that one of the plugins is the best way to go :)

On Thu, Feb 4, 2016 at 1:49 PM, Neeraj Kamdar notifications@github.com wrote:

Ok .. I’ll setup Mandrill or Mailgun first. If we decide to move to postfix at a later stage, we can set that up and remove the plugin. It will not cause any disruption to the system .

From: Mikael Lindqvist notifications@github.com Reply: tunapanda/TI-wp-content-theme reply@reply.github.com Date: February 4, 2016 at 1:31:42 PM To: tunapanda/TI-wp-content-theme ti-wp-content-theme@noreply.github.com CC: Neeraj Kamdar neeraj.kamdar@gmail.com Subject: Re: [TI-wp-content-theme] Mail server not functioning (#43)

Hm... I actually disagree... I checked out postfix and it is a server component, a replacement for sendmail. I think there is value to rely as much as possible on things that can be installed in Wordpress. So I think Mandrill or Mailgun is the best alternative.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/tunapanda/TI-wp-content-theme/issues/43#issuecomment-179767627 .

— Reply to this email directly or view it on GitHub.

mrlarso commented 8 years ago

Awesome. Just tested and it's working perfectly. Thanks!

On Thu, Feb 4, 2016 at 2:21 PM, Neeraj Kamdar notifications@github.com wrote:

Ok .. I’ve installed Mandrill plugin and set it up. I sent myself a test password reset and it worked.

I’ll send you the Mandrill login credentials separately.

If those who were having trouble getting emails when signing up can test this again, it would be great.

From: mrlarso notifications@github.com Reply: tunapanda/TI-wp-content-theme reply@reply.github.com Date: February 4, 2016 at 1:52:14 PM To: tunapanda/TI-wp-content-theme ti-wp-content-theme@noreply.github.com CC: Neeraj Kamdar neeraj.kamdar@gmail.com Subject: Re: [TI-wp-content-theme] Mail server not functioning (#43)

Cool, was just discussing with Micke and he convinced me that one of the plugins is the best way to go :)

On Thu, Feb 4, 2016 at 1:49 PM, Neeraj Kamdar notifications@github.com wrote:

Ok .. I’ll setup Mandrill or Mailgun first. If we decide to move to postfix at a later stage, we can set that up and remove the plugin. It will not cause any disruption to the system .

From: Mikael Lindqvist notifications@github.com Reply: tunapanda/TI-wp-content-theme reply@reply.github.com Date: February 4, 2016 at 1:31:42 PM To: tunapanda/TI-wp-content-theme < ti-wp-content-theme@noreply.github.com> CC: Neeraj Kamdar neeraj.kamdar@gmail.com Subject: Re: [TI-wp-content-theme] Mail server not functioning (#43)

Hm... I actually disagree... I checked out postfix and it is a server component, a replacement for sendmail. I think there is value to rely as much as possible on things that can be installed in Wordpress. So I think Mandrill or Mailgun is the best alternative.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub < https://github.com/tunapanda/TI-wp-content-theme/issues/43#issuecomment-179767627

.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/tunapanda/TI-wp-content-theme/issues/43#issuecomment-179780072 .

limikael commented 8 years ago

Alright, so @neerajkamdar and @mrlarso tested it. (Which is 2 different people, which is what we are aiming for...) So shall we close it?

mrlarso commented 8 years ago

I just closed it.

On Fri, Feb 5, 2016 at 9:23 AM, Mikael Lindqvist notifications@github.com wrote:

Alright, so @neerajkamdar https://github.com/neerajkamdar and @mrlarso https://github.com/mrlarso tested it. (Which is 2 different people, which is what we are aiming for...) So shall we close it?

— Reply to this email directly or view it on GitHub https://github.com/tunapanda/TI-wp-content-theme/issues/43#issuecomment-180218369 .