# Sending Error in Mautic

**URL:** <https://forum.mautic.org/t/sending-error-in-mautic/19203>\
**Category:** Product Support\
**Created:** [April 27, 2021, 2:13am UTC](https://forum.mautic.org/t/sending-error-in-mautic/19203 "2021-04-27T02:13:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesjosh912](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jamesjosh912/32/2810_2.png) [@jamesjosh912](https://forum.mautic.org/u/jamesjosh912)\
**Post date:** [April 27, 2021, 2:13am UTC](https://forum.mautic.org/t/sending-error-in-mautic/19203/1 "2021-04-27T02:13:49Z")

</div>

**Your software**  
My Mautic version is: 4.15.0  
My PHP version is: 7.4.16  
My Database type and version is: ?

**Your problem**  
My problem is: Cannot Create Email Channels or Send Emails

These errors are showing in the log:

[2021-04-27 00:20:07] mautic.NOTICE: Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The “swiftmailer.transport.real” service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead. (uncaught exception) at /var/www/html/mautic/vendor/symfony/dependency-injection/Container.php line 275 while running console command `mautic:emails:send`

[2021-04-27 00:20:07] mautic.WARNING: Command `mautic:emails:send` exited with status code 1

Steps I have tried to fix the problem: None

---

<div class="post-metadata">

**Author:** ![torabi142003](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/torabi142003/32/1501_2.png) [@torabi142003](https://forum.mautic.org/u/torabi142003)\
**Post date:** [May 9, 2021, 1:05pm UTC](https://forum.mautic.org/t/sending-error-in-mautic/19203/2 "2021-05-09T13:05:39Z")

</div>

found a workaround:

replace it with:

/var/www/html/mautic/bin/console swiftmailer:spool:send --message-limit=1 --env=prod

the above limit=1 can be changed to anything u want

---

<div class="post-metadata">

**Author:** ![jamesjosh912](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jamesjosh912/32/2810_2.png) [@jamesjosh912](https://forum.mautic.org/u/jamesjosh912)\
**Post date:** [May 31, 2021, 3:12pm UTC](https://forum.mautic.org/t/sending-error-in-mautic/19203/3 "2021-05-31T15:12:08Z")

</div>

Thank you. Do I do this in WINSCP? I am not sure where to make this change.
