Actionmailer Rails 3 <p>I have added a contact form to my site and am having a problem, when the message is sent I get my flash message, "successfully sent", however the email never arrives in my inbox. I am in development mode at the moment and my app/config file looks like this</p> <pre><code> class Application &lt; Rails::Application ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.perform_deliveries = true ActionMailer::Base.raise_delivery_errors = true config.action_mailer.smtp_settings = { :address =&gt; "smtp.gmail.com", :port =&gt; 587, :domain =&gt; "gmail.com", :user_name =&gt; "myemail@gmail.com", :password =&gt; "example", :authentication =&gt; :plain, :enable_starttls_auto =&gt; true } config.action_mailer.default_url_options = { :host =&gt; "gmail.com" } </code></pre> <p>My contact Controller is like this</p> <pre><code> def new @message = Message.new end def create @message = Message.new(params[:message]) if @message.valid? NotificationsMailer.new_message(@message).deliver redirect_to(root_path, :notice =&gt; "Message was successfully sent.") else flash.now.alert = "Please fill all fields." render :new end end end </code></pre> <p>and finally my Notification Mailer</p> <pre><code> class NotificationsMailer &lt; ActionMailer::Base default :from =&gt; "myemail@gmail.com" default :to =&gt; "myemail@gmail.com" def new_message(message) @message = message if message.file attachment_name = message.file.original_filename attachments[attachment_name] = message.file.read end mail(:subject =&gt; "[myemail@gmail.com] #{message.subject}") end end </code></pre> <p>Am I missing anything obvious here as I have implemented this in another site which worked fine, just cant figure out what is going on</p> <p>Any help appreciated</p>