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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:31:13+00:00 2026-05-26T07:31:13+00:00

First time every trying to send an email from Rails. It seems to be

  • 0

First time every trying to send an email from Rails. It seems to be working all expect the email never get delivered.

So here’s the mailers class:

class UserMailer < ActionMailer::Base
  default :from => "contact@triplingo.com"

  def purchase_email(name, email, txid, itemname, code)
    @name = name
    @txId = txid
    @itemName = itemname
    @code = code
    @email = email[1].gsub("%", "@")
    mail(:to => @email, :subject => "Thank you for your purchase")
  end

end

I call it in the controller here:

UserMailer.purchase_email(@name, @email, @txId, @itemName, @code).deliver

No errors, in fact I get a great feedback in the console:

Rendered user_mailer/purchase_email.html.erb (0.6ms)
Rendered user_mailer/purchase_email.text.erb (0.5ms)

Sent mail to ross@triplingo.com (25ms)
Date: Tue, 18 Oct 2011 14:40:03 -0400
From: contact@triplingo.com
To: ross@triplingo.com
Message-ID: <4e9dc803a34b2_1f83ffc0d5d19f4487bd@RossRankins-MacBook-Pro.local.mail>
Subject: Thank you for your purchase
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="--==_mimepart_4e9dc8038ee3f_1f83ffc0d5d19f4484b3";
 charset=UTF-8
Content-Transfer-Encoding: 7bit

----==_mimepart_4e9dc8038ee3f_1f83ffc0d5d19f4484b3
Date: Tue, 18 Oct 2011 14:40:03 -0400
Mime-Version: 1.0
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-ID: <4e9dc803a179e_1f83ffc0d5d19f448553@RossRankins-MacBook-Pro.local.mail>

-<snip>-

----==_mimepart_4e9dc8038ee3f_1f83ffc0d5d19f4484b3
Date: Tue, 18 Oct 2011 14:40:03 -0400
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-ID: <4e9dc803a27fc_1f83ffc0d5d19f44864b@RossRankins-MacBook-Pro.local.mail>

<!DOCTYPE html>
<html>
 -<snip>-

----==_mimepart_4e9dc8038ee3f_1f83ffc0d5d19f4484b3--

So how do I start to diagnose the issue? Thanks!

  • 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-26T07:31:14+00:00Added an answer on May 26, 2026 at 7:31 am

    By default Rails doesn’t actually send emails in the development environment. If you want emails sent in development then you should follow the steps in this question:

    Sending mail with Rails 3 in development environment

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

Sidebar

Related Questions

When trying to get geolocation on iPhone the first time - I declined. Every
I'm trying join in Rails 3 for the first time, and can't get the
Every time I try to post to twitter in my rails app, the first
I am trying to send parameters that I get from a table in my
I'm trying to get an QML animation to Start every time it's clicked, without
I'm stumped. I'm trying to get a list of all the email address a
Rails 2.3.11 I'm trying to send an activation-style email whenever a user registers. The
Every time you start Visual Studio, the first time you click Add Reference to
I'm using SqlServer for the first time, and in every single one of our
I have a strange issue. I'm trying to get Apple Push Notifications working with

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.