Displaying 20 results from an estimated 8000 matches similar to: "actionmailer"
2006 Jun 28
4
argument out of range...
Hi...
I''ve a problem with this :
[code]
def fir_tahiti
@notams=Array.new
Notam.find_all_notams().each do |notam|
@notams.push(notam) if (to_secs(notam.debut)<Time.now.to_i and
to_secs(notam.fin)>Time.now.to_i)
end
end
def to_secs(str = nil)
Time.gm(2000+str[0..1].to_i, str[2..3].to_i, str[4..5].to_i,
str[6..7].to_i, str[8..9].to_i).to_i if str
end
[/code]
It tells
2006 Jun 28
4
How to export data
Hello
I would like to know if there is a webpage or something else (even
another thread in this forum) where there''s an explanation (preferably
simple and detailed)on how to export data from a rail application to a
.doc or a .xls. I have read Agile Web, Rails recipes and a few threads
in this forum but I don''t know how to do it.
Where is stored the model document ? How to
2006 Jul 05
2
How to make a search between two values ?
Hi,
I would like to know if it was possible to make a search between two
values :
For example, I have a table Assignation :
- name (varchar)
- frequency (integer)
- created_on (date)
And I would like to sort all the names of the assignation which have a
frequency betwenn 100 kHz and 500 kHz, or sort all the names that has
been created between two given dates.
For the moment, the only thing
2006 Jun 28
2
Nouvelle Appli Rails (made in france ?) redMine
Salut,
http://rubyforge.org/projects/redmine/
redMine is a project management web application: issues tracking,
news, documents and files management. Written using Ruby on Rails
framework
Complet, Joli! et code tr?s propre, merci ? Jean-Phillipe Lang.
Et en particulier pour son helper pour faire des tris dans des
affichages pagin?s.
J''en abandonnerai presque Mantis..
2005 Mar 10
6
problems with ActionMailer
I''m having some problems with ActionMailer and I''m hoping that someone can
help. I''ve followed the tutorial on "How To Send Emails With Action
Mailer" <URL:
http://wiki.rubyonrails.com/rails/show/HowToSendEmailsWithActionMailer >,
I''ve generated a mailer -- "notifier.rb" -- and I''ve added the following
method to the
2005 May 03
0
ActionMailer w/ attachment
I am having trouble sending email w/ attachments as described in the
following how-to article:
http://wiki.rubyonrails.com/rails/show/HowToSendEmailsWithActionMailer
I can send basic emails successfully but the discussion regarding
attachments is giving me trouble.
mail.set_content_type(''multipart'', blah blah)
mail.parts << my_attachment
Questions:
1) Am I setting the
2006 Jul 24
5
Actionmailer sending many emails in same SMTP connection?
Hi,
I need to implement a mailing list system,
Actionmailer is great, but i haven''t found out a way to send many
(hundreds of) emails without having to reconnect to the SMTP server for
each mail when calling
Mymailer::deliver_my_mail(recipient)
Any tips?
(Possibly without calling directly Net::SMTP, so i can take advantage
of the rhtml rendering of the body)
Thanks,
Best regards,
2005 Dec 16
1
Composing HTML e-mail with a PDF attachment
Hi, everyone. I''ve been using Rails for a little while now, and am
really, really enjoying the experience.
I''m having the darndest time trying to send e-mail whose contents are in
HTML, and which includes a PDF attachment. Following various
instructions (in the Pragmatic book, as well as at
<http://wiki.rubyonrails.com/rails/pages/HowToSendEmailsWithActionMailer>),
2005 Dec 20
1
Sending mail error
hey,
i get this message when i want to send a mail
5.3.3 AUTH not available
c:/ruby/lib/ruby/1.8/net/smtp.rb:680:in `check_response''
c:/ruby/lib/ruby/1.8/net/smtp.rb:582:in `auth_login''
c:/ruby/lib/ruby/1.8/net/smtp.rb:581:in `critical''
c:/ruby/lib/ruby/1.8/net/smtp.rb:581:in `auth_login''
c:/ruby/lib/ruby/1.8/net/smtp.rb:571:in `__send__''
2005 Dec 19
0
Re: Rails Digest, Vol 15, Issue 392
Peter Bohm wrote:
> which way do you send the email? Using the raw TMail object as described
> in the HowToSendMimeMultipartEmailsWithActionMailer? Can you post some code?
I''ll describe the problem in a bit more detail, and then will describe what I did to solve it.
The site I''m working on wanted to send an acknowledgment to people using our e-commerce site. The message
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 =>
2006 Aug 15
0
ActionMailer
Im trying to send an email see the code below:
Model: order_mailer.rb
class OrderMailer < ActionMailer::Base
def send_an_email()
@recipients = "myadress@isp.co.uk"
@from = "myaddress@isp.co.uk"
@subject = "Ruby Test"
@body = "The Body"
end
end
View: send_an_email.rhtml
<p>Email was sent!.</p>
Controller: Admin.rb
def
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
2006 Mar 14
1
ActionMailer Error - Please Help!
I''m trying to send an email to myself when someone comments on my site.
Here''s my code, if you don''t mind, could you tell me if you see
something wrong?
#environment.rb
# Include your application configuration below
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => "mail.mydomain.com",
:domain =>
2006 Mar 14
2
ActionMailer not working correctly
Anyone know why this wouldn''t work? I''m using acts_as_authenticated for
my login, and the mail is not getting sent. I''m using dreamhost. Here''s
my settings:
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.server_settings = {
:address => "mail.mydomain.com",
:port => 25,
:domain => ''mydomain.com'',
2006 Aug 14
0
ActionMailer in an infinite loop? Looks like framework bug.
I would rather post this on the dev list since it looks like only the
developers can explain why this is failing. However, I can''t find where
you subscribe to it! Any ideas?
Here is my problem. Whenever I try to send an email I get a
SystemStackError saying stack level too deep. Here is the exception
trace:
2005 Oct 13
0
Does ActionMailer support multiple configurations? Can an ActionMailer child class define a custom configuration?
Hello,
I read that the ActionMailer configuration should be set in the
environment.rb file (See http://am.rubyonrails.com/ and page 399 in the PP
Rails Book).
In my case, I have a customer rep admin application that administers
multiple websites. One of the features involves emailing the login info for
new subscribers that that sign up for the websites by mail.
I would like to use the
2007 May 29
0
specs for ActionMailer
Hi,
Email notifications are an important part of my app and I would like
to spec them. Here''s what I have going so far. It seems to work. I''d
appreciate comments/suggestions.
Rails script/generate mailer produces tests for the email contents
etc. I''ve started by manually converting the generated unit tests to
rspec, and then changing/adding examples as I
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
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