"Please Enter a Valid Email Address" Error When Members Sign Up

Hi,

I am using Ghost 3.28 which was installed using Docker container.

My website is https://linuxhandbook.com/ and I am using Auden theme.

I have enabled membership, both free and paid. I have both free and paid members signing up.

In last few hours, I have got at least two complaints of “Please Enter a Valid Email Address” error when trying to sign up for membership. The sign up page is here: Linux Handbook

I would also like to add that there are new successful sign ups as well. So it’s happening only for some people.

I have not set up Mailgun because I use MailerLite for newsletter.

What could be the possible reason for this error and how can I fix it? Any pointers would be appreciated.

Thanks

Hi Abhishek, I am having the same problem. Did you find a solution?

Please let me know if you did. Thank you.

Hello Ryan,

Indeed, I found a solution. I set up the SMTP with Mailgun.

By design, Ghost require you to have Mailgun (or some other SMTP service) for the newsletter. But this is not mandatory for normal, transactional email.

However, this issue resolves if you switch to an SMTP service like Mailgun.

Here are the steps to follow (only follow the steps under Mail section):

Hope it helps.

1 Like

I had actually resolved the situation before getting your reply. However, thank you. You are correct. I had SMTP added via MailGun. The solution worked on all my Ghost sites, except one. I am trying to figure out why its not resolving on that one site.

1 Like

So, after implementing this, sign up email is sent, but post email is not sent…

If I change API key from private to public in Ghost settings - it works vice versa - Posts are sent, but signup email is not sent…

Any advice?

Ok, so at this moment seems like issue is solved. I have a Ghost install on Digital Ocean.

What I did:

In mailgun admin:

  • I generated new API key from Sending → Domain settings (in the bottom) - > Tab Sending API keys.
  • Reset password

Then added this in config.production.json

“mail”: {
“transport”: “SMTP”,
“options”: {
“service”: “Mailgun”,
“host”: “smtp.mailgun.org”,
“port”: 465,
“secureConnection”: true,
“auth”: {
“user”: “postmaster@example.mailgun.org”,
“pass”: “1234567890”
}
}
},

But, port 465 instead of 587

And added API key in Ghost mailgun dashboard.

Maybe it will help. Would be cool if someone can clarify why it seems to solve the issue.

1 Like