jmn
April 28, 2020, 2:13am
1
I have this in my Post.hbs:
{{#if @labs.members}}
<section class="post-subscribe">
<form data-members-form="subscribe" class="post-subscribe-form">
<input data-members-email type="email" required="true" placeholder="you@domain.net" class="post-subscribe-input"/>
<button type="submit" title="Subscribe by email. No spam, only posts, promise!" class="post-subscribe-button">Subscribe</button>
<p data-members-error>
<!-- error message will appear here -->
</p>
</form>
</section>
{{/if}}
If I go to one of my posts (e.g. https://ghost.jmnorlund.net/instrumenting-an-elixir-phoenix-pow-application/ ) and try to sign up, it doesn’t work, the form gets the success attribute set but I don’t get an e-mail so a new member won’t be added. Any idea on how to fix this? Thanks.
The form is used for sending a signup link. When a user clicks the signup link, the user will be added to the members list on your dashboard.
jmn
April 28, 2020, 2:21am
3
I do realize this, and it used to work, but it doesn’t work for me anymore. When the user fills out the form they don’t get an email. I am currently looking into if it might be the e-mail configuration.
jmn
April 28, 2020, 2:27am
4
I use e-mail transport “Direct” and when I test my e-mail configuration, the e-mail is received successfully. So I don’t understand why the membership e-mail doesn’t seem to be delivered.
Try using an external mail service instead of Nodemailer. Ghost recommends Mailgun.
Find out how to configure your Ghost publication or override Ghost's default behaviour with robust config options, including mail, storage, scheduling and more!
jmn
April 28, 2020, 3:04am
6
Thanks! I’m setting up Mailgun. Hopefully it works.
Update: It worked! Thanks.
1 Like