# Deprecated libraries?

**URL:** <https://forum.ghost.org/t/deprecated-libraries/4900>\
**Category:** Developer help\
**Created:** [January 8, 2019, 7:45pm UTC](https://forum.ghost.org/t/deprecated-libraries/4900 "2019-01-08T19:45:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![diomed](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/diomed/32/1678_2.png) [@diomed](https://forum.ghost.org/u/diomed)\
**Post date:** [January 8, 2019, 7:45pm UTC](https://forum.ghost.org/t/deprecated-libraries/4900/1 "2019-01-08T19:45:39Z")

</div>

Shouldn’t some libraries be upped?

I mean:

![nodemailer](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex015/uploads/ghost2/original/2X/6/6be7b0c23c5659fef0879d8e6932f2a4dc00fe88.png)

nodemailer is in version 5 now, for example, while in Ghost it’s still on 0.7.1. 😑

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [January 8, 2019, 7:56pm UTC](https://forum.ghost.org/t/deprecated-libraries/4900/2 "2019-01-08T19:56:53Z")

</div>

There’s a lot of public information available about why we deliberately haven’t upgraded that dependency. This is a good place to start:

> <https://github.com/TryGhost/Ghost/issues/8933>
>
> Would be great if Ghost could bump Nodemailer version from \`0.7\`, which is three… years old, to \`4.x\`. This will have some good effects like possibility to use API endpoints instead of SMTP. See https://github.com/TryGhost/Ghost/issues/7930. The one reason why it can be handy is that our project team cannot use Mailgun's SMTP workflow due to our client's restrictions and we are using API key instead. 
> 
> A bunch of similar issues were closed before (https://github.com/TryGhost/Ghost/issues/4125, https://github.com/TryGhost/Ghost/issues/4817) arguing that there should be a PR opened for this instead. Well, there is now (https://github.com/TryGhost/Ghost/pull/8930), though it's pretty raw one, but nevertheless, it's working for us (just for us, probably). There I was advised to open a PR (we've gone full circle now I suppose :) to discuss this further, so here we are.
> 
> So, summarizing all the steps required for this to work as I see it, we need to:
> 
> \- Bump \`nodemailer\` package.
> \- Add custom Nodemailer transports (e.g. \`nodemailer-mailgun-transport\`, possibly not in root folder but in \`core/server/mail\` as nested dependencies).
> \- Rewrite \`GhostMailer.js\` for smoothly utilizing new Nodemailer's API without breaking changes to \`mail\` config (in order to avoid major Ghost version bump).
> \- Rewrite \`GhostMailer\_spec.js\` tests.
> \- Update documentation.
> 
> I think a somewhat good starting point could be my pull request \[here\](https://github.com/TryGhost/Ghost/pull/8930).
> 
> I'd be happy to hear from Ghost devs and community about it. Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [January 22, 2019, 7:56pm UTC](https://forum.ghost.org/t/deprecated-libraries/4900/3 "2019-01-22T19:56:53Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
