similar to: ActionMailer::Base

Displaying 20 results from an estimated 100000 matches similar to: "ActionMailer::Base"

2008 Apr 09
0
Understanding ActionMailer::Base.new
While writing a small plugin I stumbled upon this strangeness. I have TMail objects stored in database for process that sends them out whenever needed. Obvious way of sending them out would be calling ActionMailer::Base.deliver(my_mail_object) That works just fine. However I have method chain hooking into instance method deliver!: alias_method_chain :deliver!, :something_crazy so I need to
2006 Nov 29
1
actionmailer on Debian Etch
Hello, I have two debian etch systems, both have rails. I have installed them with apt, not gems. No problems so far. Now I have tried to use the actionmailer. The results: mage@miranda:~/temp$ rails mailer create create app/controllers [....] create log/test.log mage@miranda:~/temp$ cd mailer mage@miranda:~/temp/mailer$ script/generate mailer Letter test send
2009 Feb 10
0
ActionMailer getaddrinfo: Name or service not known..
When I deploy my rails 2.2.2 app to bluehost, I''m having trouble with the ActionMailer SMTP settings. When I attempt to send emails through Rails/SMTP, I get the following error message: getaddrinfo: Name or service not known google says that this means there''s an error negotiating with the mail server. Here are the settings I''m using for SMTP delivery:
2007 Aug 10
1
ActionMailer and Dreamhost
Hello, I am running my RoR app on localhost and am trying to implement ActionMailer. In my environment.rb config file, I am pointing to my smtp server on Dreamhost: ActionMailer::Base.delivery_method = :sendmail ActionMailer::Base.server_settings = { :address => ''mail.domain.info'', :port => 25, :domain =>
2007 Mar 28
0
mail sending problem with ActionMailer
hi friends, i have written settings in environment.rb as follews and have created necessary models and views for sending mail but mails are not sent. please help me. environment.rb coding ~~~~~~~~~~~~~~~~~~~~~ ActionMailer::Base.delivery_method = :smtp config.action_mailer.raise_delivery_errors = true config.action_mailer.perform_deliveries = true ActionMailer::Base.default_charset =
2008 Jun 23
1
ActionMailer Fails To Send Emails Post Authentication
I am trying to send emails via actionmailer. It was working fine before and now suddenly what was working is no longer working! I have one version of the application running in production and whenever I try to run it in production I get the error No connection could be made because the target machine actively refused it. - connect(2) (see details in the attached text file) Now when I try to
2008 Sep 04
1
actionmailer sends from commandline but not from web
Hello all, I''m having trouble with this simple email class I made for postbacks. When I run this from the command line an email is sent, however when I access this .rb file through a browser nothing happens. ------------------------- #!/usr/bin/ruby require "rubygems" require "action_mailer" ActionMailer::Base.delivery_method = :smtp
2006 Oct 31
3
ActionMailer how to check mail sent
OS X 10.4.8 I am sending an email via Actionmailer settings are written correctly in environment.rb ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.raise_delivery_errors = :true ActionMailer::Base.perform_deliveries = :true ActionMailer::Base.default_charset = "utf-8" ActionMailer::Base.server_settings = { :address => "mail.mydomain.com", :port => 25,
2006 Sep 09
2
actionmailer HELP
Hi, I want to receive emails with actionmailer.And I try to do this example: http://wiki.rubyonrails.org/rails/pages/HowToReceiveEmailsWithActionMailer I am working on windows and I couldn''t set up Actionmailer for windows. How can I configure actionmailer for windows? I am glad,if anybody can help me Regards... -- Posted via http://www.ruby-forum.com/.
2007 Nov 11
0
ActionMailer Difficulties
I''m using ActionMailer in test mode (so, in the config file I have config.action_mailer.delivery_method = :test ) I have my mailer set up as such... def confirm(message, sending_user, user) @subject = "You have a message from #{sending_user.login}" @body["message"] = message @body["user"] = user @body["sender"] = sending_user
2009 Jan 18
3
ActionMailer and url_for in helper methods
Hi, I was wondering how to get url_for to work inside ActionMailer. I did research on the web but I can''t seem to find something that fits what I need. In my application, each user can specify their custom domain to access their. I have an ActionMailer that sends them notifications of changes that occur. In there, I have a breadcrumbs helper method, which generages something like:
2007 Nov 12
1
help debugging ActionMailer with restful_authentication?
In a nutshell, I''m using restful_authentication that emails the user when they sign up for an account The development.log file shows the body of the e-mail message being prepped to send out, but doesn''t show confirmation that it made it. When I use gmail''s SMTP server, a Rails exception is thrown because gmail expects an encrypted connection. A different type of Rails
2006 Nov 07
2
ActionMailer outside of Rails?
Does anyone know of issues using ActionMailer outside of Rails? I''m already selectively using ActiveRecord, so I thought perhaps I could use ActionMailer as well. (To solve one of those last minute "And could you make the app email me if it throws any errors" questions that was never in the original spec...) When I built a single file to test with, it worked fine and I
2007 Jun 19
1
ActionMailer cancel send from one of deliver_* methods
Seems like executing a return in one of the deliver_* methods of ActionMailer doesn''t cancel the delivery. The template is still read right after the return method has been executed and because all variables in the template are empty, all kinds of errors occur. I need to validate the email (and test whether it actually exists) before a delivery is made and I''m trying to put all
2007 Feb 15
1
Has anyone run function tests on ActionMailer?
I am running function tests to see if ActionMailer mails out an email. I have two development machines, both with rails 1.1.6. On one machine, the ActionMailer::Base.deliveries array resets itself after each test. On the other machine, the array keeps accumulating the emails from the previous function tests and doesn''t clear out the array after each test. Both machines have identical
2008 Jul 17
2
Passing array to the email body using ActionMailer
Hi, all I am new to actionmailer. I am writing a script that sends emails contains lots of file names. So the email will look like: hi, filename1 filename2 filename3 . . . filenameN So I want to pass an array containing all the filenames into the email body. My code is below: class Notifier < ActionMailer::Base def log_report(recipient, files) from
2009 Jan 20
2
Do I need an SSL certificate to use ActionMailer 2.2.2?
Hi guys - I''m sorry to post about this issue again but after several days I still cannot get ActionMailer working and I''ve been through every tutorial/forum looking for the answer. I know ActionMailer now requires SSL validation, does that mean I need to purchase an SSL certificate before I can send emails? If not, is there anyone out there who can help me set up my mailer to
2009 Mar 25
1
I18n + ActionMailer = conflict ?
Hi there, can anybody tell me why I get the error message: "undefined method ''t'' for #<Mailer:0xb6d501e0>" ... when I call the following Mailer? ================================= class Mailer < ActionMailer::Base def signup_notification(user) @recipients = "#{user.email}" @from =
2008 Feb 19
2
sending mail [not the ActionMailer way?]
Hi folks, I''ve recently stepped away from PHP web dev and I''m trying out ROR now. I like it so far. But there''s something I cannot figure out on my own. Searching on the API of ROR and Google about the possibilities of sending emails with ROR only gave me the ActionMailer way of sending mails. What I want to do is to send a mail where the body is submitted by a user.
2009 Mar 26
1
Turning off the layout in ActionMailer?
So I''m happy to see that ActionMailer supports layouts now (it may have for a while, but I just now realized it). But I don''t see a way to turn them off selectively or by multipart type. For example, if I have a layout that''s really simple in "layouts/ email.html.erb": <div style="border:1px solid gray"> <%= yield %> </div> I