So it turns out mailers hate loop inside of them. So here's my loop.
- for ["love", "hate", "war"].each do |f|
= f
Which returns this went sent through actionmailer in rails 2.3.5 :
promotion_reminder.html.haml:17: syntax error, unexpected ';', expecting tCOLON2 or '[' or '.'
...ry_temp));}\n", 0, false);end;_hamlout.push_text(" ...
Hi,
Currently for sending rails emails we use google apps for our emails, but we're limited to 500 emails/account/day.
I was wondering if there's any way to track how many emails we're sending, and then switch accounts if needed - as in, if we're under 500 emails for the day, use account 1, and if we've hit 500, use account 2, If we hi...
I had previously a mailer set up to send me emails to all user accounts. But now I'm trying to debug it. So I gutted it out completely and it still sends emails to me.
I have absolutely no reasoning or understanding as to why. Insanity! :D
controller
def org_blast_send
Delayed::Job.enqueue OrgBlast.new(params[:subject], params[:edi...
I implemented an authentication system using authlogic, and have added password reset functionality as per this tutorial http://github.com/rejeep/authlogic-password-reset-tutorial
It all works, but I am confused as to why it does..
There is this code..
class User < ActiveRecord::Base
def deliver_password_reset_instructions!
rese...
What's the equivalent of relative_url_root in ActionMailer?
I've tried setting it up in default_url_options, but it appends the parameter in the query string.
Adding :skip_relative_url_root = false doesn't work either.
Using :host = 'somehost.com/subdir' does work, but is that appropriate?
Thanks!
...
I have this code:
class Mailer < ActionMailer::Base
def foo
recipients "[email protected]"
from "[email protected]"
subject "Foo"
body :var => "value"
end
end
With two views in app/views/mailer:
foo.en.erb
foo.fr.erb
When I use Mailer.deliver_foo, the view used to build the email is foo.en.erb sinc...
If I attach xls files as attachment in the mailer like this
attachments["1.xls"] = File.read "1.xls"
If I try open the attachment from the received mail, Excel is unable to open and it says the file is corrupted.
Please let me know if I am missing something?
Please let me know if additional information is needed?
...
I just ran a command that's sending out mass emails to everyone.
How do I force stop my action mailer?
the job was done through delayed_job and I tried rake jobs:clear and script/delayed_job stop
...
Hi,
I am using Exim. I am trying to "send" all emails to a rails controller, but unfortunately I have no experience with Piping emails. Any help with the configuration of Exim is welcome. What i want is that Exim should forward all emails that are going to "bounce", because no such user exists, to the script
...
Hi. I use ActionMailer with the action_mailer_optional_tls plugin to send mails via Gmail.
Here is my setup:
class InstantMailer < ActionMailer::Base
layout "email"
def support(ticket)
@recipients = "[email protected]"
@from = ticket.email #this is the user's email
@subject = "[#{ticket.category}] #{tic...
Here are my smtp settings for Google Apps in setup_mail.rb.
:address => "smtp.gmail.com",
:port => 587,
:domain => 'mysite.co',
:user_name => '[email protected]',
:password => 'password',
:authentication => 'plain', ...