How to configure Ghost CMS to send emails with Mailgun

Поділитися
Вставка
  • Опубліковано 5 вер 2024
  • Check out my Ghost courses: profitabletool...
    Learn to configure transactional and bulk email for self-hosted Ghost CMS.
    I'm using Mailgun in this video, it's required for bulk emails in Ghost.
    Try Mailgun for free:
    get.profitable...
    Don't want to bother with this config but still want to use Ghost? Ghost Pro is for you.
    get.profitable...
    Ghost Documentation on sending mail (referenced in video):
    ghost.org/docs...
    🔔 SUBSCRIBE TO THE CHANNEL
    / profitabletools ?sub_confirmation=1
    ✉️ Dave's Toolbox (Free Newsletter)
    daveswift.com
    💪 Hire Dave for WordPress Management
    clientamp.com
    🔗 Links To Some of My Favorite Things
    Cloudways: get.profitable...
    Jasper: get.profitable...
    WooFunnels: get.profitable...
    Elementor: get.profitable...
    Amazon: amzn.to/3Oo8I7k
    AppSumo: get.profitable....
    Astra: get.profitable....
    LearnDash: get.profitable....
    WP Fusion: get.profitable...
    🚨 ETHICS & DISCLAIMER
    Reviews are never sponsored. Opinions are authentic. Sponsored videos are clearly marked.
    Your clicks fuel Profitable Tools. When you click our links, we may earn a commission. Products are occasionally provided by manufacturers for review.
    📝 CREDITS
    This is a Client Amp LLC production (clientamp.com)
    Contact Dave on Twitter @davidswift
    📷 Stock footage & photos via Envato Elements - get.profitable...
    🎸 Stock music via Epidemic Sounds - get.profitable...

КОМЕНТАРІ • 48

  • @DallinHitchcock
    @DallinHitchcock 3 місяці тому +2

    This video was excellent. You're a godsend, Dave.

  • @harleeeide
    @harleeeide Рік тому +2

    Dude. Thank you so much. Followed your vid and now everything on my installation works. One thing to note is that there has been an update to the Sending > Domain Settings > Tracking area of the Mailgun dashboard to include a selection for Tracking Protocol. This needs to be set to HTTPS or the transactional email links for signups/resets won't open properly in the browser for security reasons.

    • @dave-swift
      @dave-swift  Рік тому

      Hey Harlee, thanks for the note about tracking and HTTPS. I actually have run into this issues with mailgun and several other providers (not ghost related).
      The bummer with mailgun is that they don't provide this option to flex-plan (pay as you go). Instead they want to you to create some rules with Cloudflare, which depending on your SSL settings in cloudflare, might not work. (is there an emoji for pulling your hair out? there should be)
      I also use Elastic Email with my agency and they will enable it for you, but there is no mention of it in their interface, instead you have to proactively contact support to turn it on.

    • @harleeeide
      @harleeeide Рік тому

      @@dave-swift Not sure if you've seen their pricing recently, but they have a flex plan (pay as you go). I'm currently on this plan. Once you finish the free trial and they bump you up to Foundation 50k, you just need to go back into Billing and downgrade to the Flex model. Max send is 1k.

    • @dave-swift
      @dave-swift  Рік тому +1

      The flex plan is exactly what I'm referring to, actually. Checkout the blue box at the top of this doc: help.mailgun.com/hc/en-us/articles/360011566033-How-to-Enable-HTTPS-Tracking-Links

    • @harleeeide
      @harleeeide Рік тому

      @@dave-swift You'd think for how engineer-centric Mailgun is that we could at least get a heads up about this important limitation from WITHIN the dashboard whenever downgrading to Flex or toggling the protocol selector after downgrading.. lol. Well, it looks like I'm giving Mailgun $35/mo. Im working on a few projects

    • @dave-swift
      @dave-swift  Рік тому

      Since you already have it on during your trial, I'd be curious if they keep it on for you after you switch to flex.

  • @ShannonWare
    @ShannonWare Рік тому +1

    Thank you very much. This is just what I need. Thank you for the level of detail and the advice from lessons learned!
    Update: I had to work through it a couple of times but I finally got it. For example, I had to use the secure port in the config file. However, I especially appreciate the details you provided around the DNS records; that part went perfectly the first time through.

  • @RandyHanley
    @RandyHanley Рік тому

    This video was incredibly helpful! I was originally assuming that the "Newsletter" config would take care of the Staff creator email portion. It makes sense that SMTP is used for member creation, since that's not a "Bulk" email need. Thanks for this video!

  • @rguifa
    @rguifa Рік тому

    Thank you for this video, it helped me a lot to setup my new blog. A little update though. The test email option is no longer on the post's side panel, it is now located on the post's preview window by clicking the envelope icon.

    • @dave-swift
      @dave-swift  Рік тому

      Glad it helped! Thanks for the update.

  • @redaltkey
    @redaltkey 10 місяців тому

    Great video, and amazing walkthrough.

  • @cowboychronicle
    @cowboychronicle 2 місяці тому

    Getting this when trying to restart from terminal: Message: The content folder is not owned by the current user.
    Ensure the content folder has correct permissions and try again.
    Any idea what this could be referring to?

  • @vladromanov8380
    @vladromanov8380 4 місяці тому

    Hey Dave, I'm confused by one of the steps - You've mentioned that for those using Gmail you shouldn't need to setup the MX records. You've still set them up and from what I saw at the end of the video you're still getting the emails in Gmail. Is that because you've used the "m" subdomain or you didn't actually set those up in the background. I'm looking to get Ghost / Gmail / Mailgun running and I'm not sure if I understood what needs to be done at that specific step.

    • @dave-swift
      @dave-swift  4 місяці тому

      Hi Vlad,
      Three are three types of email here.
      Person to person email/aka Work email, typically sent via Gmail/Office 365.
      Transactional email, sent via Mailgun in my case -- but you can use any SMTP provider with Ghost.
      Marketing email, sent via Mailgun. This is required, no other mail providers are supported.
      You want to be careful not to modify you primary domain's MX records when setting up mailgun, because if you do, you wont' be able to receive email to your regular, person to person, work email.
      That's all I was getting at. Hope this helps.

  • @panda72418
    @panda72418 Місяць тому

    Hey Dave, great tutorial. I am having an issue with my MailGun provided IP being blocked by Yahoo, so none of my yahoo subscribers get my emails. Is this something I need to add a dmarc record for?

    • @dave-swift
      @dave-swift  Місяць тому

      All senders will provided shared IPs pools, unless you purchase a dedicated one. This means occasionally you’ll get blacklisted.
      You should contact Mailgun and request they move you to a healthier pool. If your volume is high enough (min 50k-100k) you should purchase your own dedicated IP and warm it up before sending to your entire list.
      Hope that helps, good luck.

  • @mind_glowing
    @mind_glowing Рік тому +1

    I had an error on forgot password, and I also couldn't send bulk emails.
    However adding the following to the config.production.json solved my issue:
    "secure": false,

  • @nurhafizramadhona9896
    @nurhafizramadhona9896 Рік тому

    Hi, can you cover how to setup Ghost with Elastic Email (or other SMTP service)?

    • @dave-swift
      @dave-swift  Рік тому

      Ghost requires MailGun. ghost.org/docs/faq/mailgun-newsletters/?via=dave61

  • @nixon1333
    @nixon1333 Рік тому

    thank you for the video :)

  • @shinebayar
    @shinebayar Рік тому

    Quality content.

  • @fretbuzzly
    @fretbuzzly 3 місяці тому +1

    How quickly technology changes. This video is no longer accurate just a year later. Currently there is no API Keys link under user account. And going to API Security, which is where that link takes you, there is no longer a Private and Public API Key listed. Those have been replaced by Verification public key. Etc. But the biggest change of all is that under the free Mailgun account you can no longer use your own domain. You are limited to using the provided sandbox domain and you are rate limited to 100 emails per hour. You still get 5,000 for a month. Looking for another provider, because the first step up is $35 per month.

    • @dave-swift
      @dave-swift  3 місяці тому

      I think you might just need to verify your account if you just signed up.
      They have a pay as you go option that is 1000 emails for $1.
      Sign-up for a trial and then switch to PAYG which they call the Flex Plan.
      help.mailgun.com/hc/en-us/articles/360048661093-Can-you-explain-pay-as-you-go-PAYG-billing

    • @KarbuunSocial
      @KarbuunSocial 3 місяці тому

      I just noticed that also, Did you figure out how to do it With the new page view. I don't have that Public API? options

    • @maryboy666
      @maryboy666 Місяць тому

      Having the same issue re: not being able to find the private API key. Anyone have any luck figuring this out in 2024?

    • @dave-swift
      @dave-swift  Місяць тому

      @maryboy666 ​​⁠ have you verified your account and added a payment method?

  • @kodyako00
    @kodyako00 Рік тому

    Have you tried looking at the email through outlook? I followed this method, and it works in google, but in outlook, it goes to spam and written on the sender information is "sent on behalf of"

    • @dave-swift
      @dave-swift  Рік тому

      Yes, this is true. If it bothers you, you can either change your mailgun domain to to be the root domain or change your sending domain to match the subdomain you set in mailgun.

  • @theaaronromano
    @theaaronromano Рік тому

    i'm now a swiftie.

  • @subhashgottumukkala
    @subhashgottumukkala Рік тому

    Hi, I followed your tutorial and transactional emails are working fine but newsletters are not sending. it's saying error. I'm using private API key

    • @dave-swift
      @dave-swift  Рік тому

      I recommend googling the specific error message and contacting Mailgun's support. Setting up the API connection should just copy and paste, so there must be something else going on.

  • @danielosthues5229
    @danielosthues5229 Рік тому

    Hi Dave! I followed your brilliant tutorial but still end up having issues with the transactional part. I cannot send invites and email resets when you hit the forgot email button.
    It says : Error sending email! Error sending email: Failed to send email. Reason: Invalid login: 535 Authentication failed. Please check your email settings and resend the invitation.
    I'm using Mailgun + Ghost self - hosting on Digital Ocean.
    Is there anything that may have changed on the Ghost end?

    • @dave-swift
      @dave-swift  Рік тому

      Hi Daniel,
      Try the secure connection settings on this page: ghost.org/docs/config/#mail
      Let me know if it helps?

  • @GeorgeBakalovPRO
    @GeorgeBakalovPRO Рік тому

    Can Ghost be setup to use with Mautic?

    • @dave-swift
      @dave-swift  Рік тому

      It should be possible with webhooks or a zapier style tool (n8n to keep it FOSS). It's not something I've tried before though.

    • @GeorgeBakalovPRO
      @GeorgeBakalovPRO Рік тому

      @@dave-swift doesn't seem like it's possible though. Zapier is limited to what the API allows which is only automations relative to adding a new subsciber. So yeah I can add new subscribers to Mautic and trigger a drip campaign but Mautic can't replace Mailgun. Love Ghost and the fact they have a free starter tier with Mailgun but why not allow the API to extend to services like Mautic?

    • @dave-swift
      @dave-swift  Рік тому

      Oh I didn’t understand that you wanted to replace email sending.
      Mautic can extend the features of Ghost via adding marketing automation and drip campaign but it is not meant for sending transactional emails.
      Mautic itself requires an email sending service to operate so you’re right back where you started.