Jenny,
towards the bottom of the wiki you reference there is a section titled
"Gmail SMTP".  Did you do this part?
The instructions tell you to put the config in init.rb.  I put it in
production.rb and use the before_app_loads hook instead of the after
hook as the docs show.  Then in development.rb and test.rb, I change
the config to use test mode.  See below:

1 - production.rb
Merb::BootLoader.before_app_loads do
  # Activate SSL Support
  Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
  # Configure Merb Mailer
  Merb::Mailer.config = {
    :host   => 'smtp.gmail.com',
    :port   => '587',
    :user   => '[email protected]',
    :pass   => 'pass',
    :auth   => :plain
  }
end

2 - development.rb and test.rb
Merb::BootLoader.before_app_loads do
   Merb::Mailer.delivery_method = :test_send
end


Jon

On Jan 1, 3:23 am, Jenny <[email protected]> wrote:
> I'm looking through the tutorial:http://wiki.merbivore.com/howto/mailers
> using sendmail.
>
> However, I'm a bit confused. When it says:
>
> "def contact
>     send_mail(ContactMailer, :notify, {
>       :from => '[email protected]',
>       :to => "[email protected]",
>       :subject => "Free gym socks. Used!"
>     })
> "
>
> What would I put in place of '[email protected]'? Does sendmail
> somehow assign me a name? Do I have to attach an existing name (such
> as a gmail account) to send mail for this to work? Can I just make
> something up and put it there? I used an existing gmail account (all I
> did was put it there, no associations or anything, which I don't think
> is right) and I got the following message (which seems to indicate
> that I did things right, according the the tutorial:
>
> merb : worker (port 3000) ~ notify_on_event sent to [email protected]
> about =?utf-8?Q?Free_gym_socks._Used!?=
>
> However, no e-mail is showing up at the account I expect it to.
>
> I know I can hook it up into a gmail account by using a different
> configuration, but when I tried to do that, it timed out without doing
> anything. At least using sendmail it THINKS it's working.
>
> Most tutorials I see on sendmail are php based, so I'm at a bit of a
> loss here. If anyone has any tips, or sees anything ridiculously wrong
> that I'm doing, let me know?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to