Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8078939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:57:04+00:00 2026-06-05T15:57:04+00:00

I’m averaging about 2000ms per email. Is this normal? Can you give me some

  • 0

I’m averaging about 2000ms per email. Is this normal? Can you give me some examples of times from your apps? The emails get delivered fine. I know I should probably be using DelayedJob or an SMTP relay like SendGrid, but I’m guessing its way too long and there’s an underlying problem.

2012-06-13T21:28:55+00:00 app web.1 - - Sent mail to ... (7856ms)
2012-06-13T21:28:57+00:00 app web.1 - - Sent mail to ... (2003ms)
2012-06-13T22:24:42+00:00 app web.1 - - Sent mail to ... (3094ms)
2012-06-13T22:24:43+00:00 app web.1 - - Sent mail to ... (1722ms)
2012-06-14T02:20:37+00:00 app web.1 - - Sent mail to ... (5932ms)
2012-06-14T02:22:16+00:00 app web.1 - - Sent mail to ... (1830ms)
2012-06-14T02:22:18+00:00 app web.1 - - Sent mail to ... (1740ms)

If not, how do I go about debugging whats taking so long?

(btw logentries rocked for collecting this data)

My SMTP settings for posterity:

ActionMailer::Base.smtp_settings = {
  :address => "smtp.gmail.com",
  :port => 587,
  :domain => "example.com",
  :authentication => "plain",
  :user_name => "mail@example.com",
  :password => "...",
  :enable_starttls_auto => true 
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T15:57:06+00:00Added an answer on June 5, 2026 at 3:57 pm

    No, this is average. I have an app that I have run on powerful servers, my own machine, and even a simple low end server, and they usually always ran about the same time to send it. It has to do with the authentication when talking to Google or who ever you are sending it through.

    My app sends the email as soon as the user hits the email button on my screen, it then take a second or two for the alert to pop up on screen letting me know it was successfully sent. I am using a Google Apps Gmail account that I have associated with my business with the same kind information listed in the ActionMailer::Base.smtp_settings in my Rails Project as you do.

    The reason is usually because it is connecting to Google, authenticating it and letting google send it off.

    You could technically could use sendmail on your own server, if using Linux or Mac. Sendmail works faster because of the fact that it is sending it from the server itself, not connecting to google and then authenticating.

    I have done this for client machines when sending huge bulk emails out, like news letters and such. The problem with this approach is that the header of the email doesn’t have any authentication from a real mail server like Gmail, Hotmail, etc proving that the person who sent it actually sent it from a google/hotmail/etc server and can sometimes be seen as spam since its not truly authentic. There are plenty of guides on how to do it, like in this one that I just found:

    http://raflabs.com/blogs/silence-is-foo/2011/02/07/configuring-rails-3s-actionmailer-work-sendmail-debian/

    There are many others that you can use, it just depends on your style of working.

    Be careful though if you go this route, your mail may be seen as spam. If the clients know they are going to be getting it though, it will usually go through just fine though.

    If you still want to send mail using the method you are currently using, I would recommend having the email be handled by a queue in the background, that way, it is faster and doesn’t cause any delay to the user when working with your app.

    I hope that helps and answers your question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
Does anyone know how can I replace this 2 symbol below from the string
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I am reading a book about Javascript and jQuery and using one of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.