ruby-on-railssendmail

send email using RoR


I followed THIS site on how to send an email using RoR. After running the server and calling the method, it shows in the console:

Rendered user_mailer/welcome_email.html.erb (1.0ms)
Rendered user_mailer/welcome_email.text.erb (1.0ms)

Sent mail to xyz@gmail.com (1128ms)
Date: Sun, 18 Sep 2011 13:44:49 +0530

From: from@example.com

To: xyz@gmail.com

Message-ID: <4e75a87912b3b_ed@XYZ-PC.mail>

Subject: Welcome to My Awesome Site

Mime-Version: 1.0

Content-Type: multipart/alternative;

 boundary="--==_mimepart_4e75a878dffeda646659d";

 charset=UTF-8

Content-Transfer-Encoding: 7bit
.......

but I'm not getting any email in my inbox. Could someone please tell me what's the issue here...


Solution

  • I guess you haven't:

    config.action_mailer.perform_deliveries = true
    

    in your development.rb file.