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 6635973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:07:31+00:00 2026-05-25T23:07:31+00:00

ers, Whenever my application send out a plain text email to notify people of

  • 0

ers,
Whenever my application send out a plain text email to notify people of various things that email is interpreted or received by some email clients as two different emails. It works fine for gmail and comcast. Users who have get their email through a generic host like those that come with web hosting receive two emails of the same plain text email. This is terribly annoying. I would appreciate any insights. I can’t launch until fixed. Please bestow your mighty wisdom! I love this site!

config/initializers/setup_mail.rb

ActionMailer::Base.default_content_type = "text/plain"

config/environments/production.rb

config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address              => "mail.xxxessment.com",
:port                 => 26,
:domain               => "www.xxxessment.com",
:user_name            => "systemadmin+xxxessment.com",
:password             => "secret",
:authentication       => "plain",
:enable_starttls_auto => false
}

models/actionitem_observer.rb

def after_save(actionitem)
   if actionitem.responsible_id_changed? and !actionitem.responsible_id.nil?
     Notifier.deliver_responsible_alert(actionitem, actionitem.responsible.email)
   end
   end

mailers/notifier.rb

    def responsible_alert(actionitem,responsible_email)
    subject       "New action item assignment from xxxxx Assessment"
    from          "systemadmin@xxxxxsessment.com"
    recipients    responsible_email
    sent_on       Time.zone.now
    content_type  "text/plain"
    body          :actionitem => actionitem
end

views/notifier/responsible_alert.text.erb

You have been assigned Action Item #<%= @actionitem.id %> in the xxxessment system. 
Action Item: <%= @actionitem.name %>
Please login in and look at the My Action Items tab to find the new item.
Thank you.
  • 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-05-25T23:07:32+00:00Added an answer on May 25, 2026 at 11:07 pm

    Th eproblem here is an old version of the syntax. I guess this wasn’t the rails 3 way of writing the code in notifier.rb and it works great.

    def responsible_alert(actionitem,responsible_email)
        @actionitem = actionitem      
        @responsible_email = responsible_email
        mail(:to => @responsible_email, :subject => "New action item assignment from SXXXXXssessment") do |format|
            format.html
            format.text
        end     
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello StackOverflow'ers, I have a (flex) app that, on the click of a button,
I'm working on a C# application that allows users to basically import tables of
Do any tcl'ers out there know what is happening with the (possible) transition of
StackOverflow'ers, I realize the new @mentions is a very new feature to facebook, but
When messing around with Haskell using GHC, I can use various meta-commands like :i
Esteemed Overflow-ers of the Stack, So I've recently been trying to fully wrap my
Here is the screen shot of the vb.net: http://www.mypicx.com/12132009/ers/ And here is my code:
I'm developing an add on to a system I have that will allow my
Good day stackoverflow 'ers I'm doing a simple AJAX form, imagine some kind of
Does anyone know if Expression Web (and Blend, for that matter) has any form

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.