# Unable to send Emails

**URL:** <https://forum.ghost.org/t/unable-to-send-emails/17613>\
**Category:** Memberships & subscriptions\
**Created:** [October 11, 2020, 8:26pm UTC](https://forum.ghost.org/t/unable-to-send-emails/17613 "2020-10-11T20:26:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickdonato](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/rickdonato/32/5061_2.png) [@rickdonato](https://forum.ghost.org/u/rickdonato)\
**Post date:** [October 11, 2020, 8:26pm UTC](https://forum.ghost.org/t/unable-to-send-emails/17613/1 "2020-10-11T20:26:37Z")

</div>

When trying to send an email at the point of publishing an article. It’s telling me there is an error. i.e

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/e/ef90e29621f48570d304f0e1636574f9f11ed024.png)

on the CLI I’m getting the following from the docker logs of the ghost container…

```auto
[2020-10-11 20:14:16] INFO "PUT /ghost/api/v3/admin/posts/5dbc96993c5e7d0001e58961/?send_email_when_published=true" 200 366ms
(node:1) UnhandledPromiseRejectionWarning: InternalServerError: The server has encountered an error.
    at new GhostError (/var/lib/ghost/versions/3.35.4/node_modules/@tryghost/errors/lib/errors.js:10:26)
    at sendEmailJob (/var/lib/ghost/versions/3.35.4/core/server/services/mega/mega.js:249:15)
    at async /var/lib/ghost/versions/3.35.4/node_modules/@tryghost/job-manager/lib/job-manager.js:29:13
    at async JobManager.worker (/var/lib/ghost/versions/3.35.4/node_modules/@tryghost/job-manager/lib/job-manager.js:6:22)

Error: SQLITE_ERROR: too many SQL variables

```

Any suggestions?

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [October 12, 2020, 11:07am UTC](https://forum.ghost.org/t/unable-to-send-emails/17613/2 "2020-10-12T11:07:27Z")

</div>

@rickdonato it appears you are using sqlite as your database. sqlite is intended for development use rather than production use and has limitations with scale as number of members grows which is what you have run into here.

I’d suggest switching to mysql or alternatively upgrading the version of sqlite you are using as 3.32 increased the number of variables that are allowed in a query.

---

<div class="post-metadata">

**Author:** ![rickdonato](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/rickdonato/32/5061_2.png) [@rickdonato](https://forum.ghost.org/u/rickdonato)\
**Post date:** [October 22, 2020, 9:01pm UTC](https://forum.ghost.org/t/unable-to-send-emails/17613/3 "2020-10-22T21:01:05Z")

</div>

OK thanks.
