# Mysql away after sending email

**URL:** <https://www.ruby-forum.com/t/mysql-away-after-sending-email/173565>\
**Category:** Rails\
**Created:** [August 11, 2009, 2:25pm UTC](https://www.ruby-forum.com/t/mysql-away-after-sending-email/173565 "2009-08-11T14:25:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luciano](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/f05b48/32.png) [@Luciano](https://www.ruby-forum.com/u/Luciano)\
**Post date:** [August 11, 2009, 2:25pm UTC](https://www.ruby-forum.com/t/mysql-away-after-sending-email/173565/1 "2009-08-11T14:25:44Z")

</div>

Hello there,

I’m having a strange issue with my app that was built with rails  
2.2.2:

- I have a form where one employee can send a price quote to a client;
- the action just mark the quote as ‘sent’ on the database and deliver  
the email;
- the email delivery is taking too long, about 45 second;
- after that the next action will show a 500 error;
- checking the logs I found it a mysql away error;

since I’m not delivering multiples emails and the client is waiting  
for it’s quote I see no reason for sending the email later, also,  
everything was working fine before this smpt slowness…

does anyboby have any advice here?

thanks a lot!

Luciano
