Re: [Rails] ActionMailer: end of file reached (EOFError)

2018-05-11 Thread 'krfg' via Ruby on Rails: Talk
Solved at Stackoverflow https://stackoverflow.com/q/50201093/507 > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@goo

Re: [Rails] ActionMailer: end of file reached (EOFError)

2018-05-08 Thread 'krfg' via Ruby on Rails: Talk
On Monday, May 7, 2018 at 10:37:36 AM UTC+2, David Merrick wrote: > > EOF usually mean you reached the end of the file or are to read past it. > > So why my code produces this error message? I checked all the required ends: there are two, one for class Emailer and one for method test_email --

Re: [Rails] ActionMailer: end of file reached (EOFError)

2018-05-07 Thread David Merrick
EOF usually mean you reached the end of the file or are to read past it. On Mon, May 7, 2018 at 7:19 PM, 'krfg' via Ruby on Rails: Talk < rubyonrails-talk@googlegroups.com> wrote: > I am studying Peter Cooper's book Beginning Ruby. > According to the author ActionMailer can be used independently

[Rails] ActionMailer: end of file reached (EOFError)

2018-05-07 Thread 'krfg' via Ruby on Rails: Talk
I am studying Peter Cooper's book Beginning Ruby. According to the author ActionMailer can be used independently of Rails. So I installed the ActionMailer gem in a dedicated gemset and wrote the code below which is an extract from the book: require 'action_mailer' ActionMailer::Base.smtp_set

[Rails] ActionMailer Preview. Is it posible to use multiple paths?

2017-03-25 Thread Илья Николаевич
Hi there! In my project I have a few engines. Each engine has its own set of Mailers and templates. I want to have Previews for each specific engine, and keep them in engines. I've found that ActionMailer Preview provides a way to change a path to preview classes, but looks like it's impossibl

[Rails] ActionMailer ActiveJobs and register_interceptor/register_observer

2017-02-11 Thread Andrew Kaspick
Hi, I'm using delayed job to send emails (via ActionMailer) as a background job, but I also have an interceptor registered via http://api.rubyonrails.org/classes/ActionMailer/Base.html#method-c-register_interceptor and an observer registered via http://api.rubyonrails.org/classes/ActionMailer

[Rails] ActionMailer `deliver_later`, retrieving job details

2015-06-11 Thread itsmechlark
Hi, Is it possible to retrieve job details after `*deliver_later`?* Thank you, Chlark -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+u

[Rails] ActionMailer not delivering mail from one particular server

2015-04-03 Thread Aleksey Gladysh
We have a client who insisted on having their Rails app set up with Oracle DB on a Red Hat Enterprise Linux server behind their VPN. This is not a setup we are very familiar with as we generally run DigitalOcean droplets with Ubuntu and use MySQL/PostgreSQL. Needless to say, this has caused a l

[Rails] ActionMailer: Remove Content-ID from multipart emails

2013-05-19 Thread Fernando Morgenstern
Hi, Already asked this question in StackOverflow, but as not responses arrive, decided to give it a try here :) I'm using action mailer to send emails with both html and plain text version. Something like this: mail(:to => 'exam...@example.com', :subject => 'Test message', :from => 'sen.

[Rails] ActionMailer test helpers

2012-11-14 Thread akalyaev
Hi, I recently found these two helpers (assert_emails, assert_no_emails) inside ActionMailer gem: https://github.com/rails/rails/blob/master/actionmailer/lib/action_mailer/test_helper.rb I wonder why they are not mentioned in the official documentation: - http://guides.rubyonrails.org/testin

Re: [Rails] ActionMailer problem

2012-08-09 Thread Ashokkumar Yuvarajan
Thank you Walter.. On Thu, Aug 9, 2012 at 7:47 PM, Walter Lee Davis wrote: > > On Aug 8, 2012, at 9:57 AM, Maddy wrote: > > > Hi guys! > > > > I used action mailer in my project,in that the from ID show always my > own ID.I need it show some default ID like.,f...@gmail.com > > > > Here my codin

Re: [Rails] ActionMailer problem

2012-08-09 Thread Walter Lee Davis
On Aug 8, 2012, at 9:57 AM, Maddy wrote: > Hi guys! > > I used action mailer in my project,in that the from ID show always my own > ID.I need it show some default ID like.,f...@gmail.com > > Here my coding, > > In my set_mailer.rb > > ActionMailer::Base.smtp_settings = { > :address

[Rails] ActionMailer problem

2012-08-09 Thread Maddy
Hi guys! I used action mailer in my project,in that the from ID show always my own ID.I need it show some default ID like.,f...@gmail.com Here my coding, In my set_mailer.rb ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :dom

[Rails] ActionMailer doesn't accepts content_type when the body of the message is from RTE

2012-07-09 Thread Tsvetelina Borisova
Hello I have a problem with the content type of ActionMailer. I am using markit-up and when I submit the form and send email with the entered message I get this in my box: http://gmail.com";>This is a message. I have this in my mailer: mail(:content_type=>"text/html",:to=>@email,:sub

[Rails] ActionMailer::Base.deliveries returns array with duplicated elements in production env

2012-07-06 Thread Tsvetelina Borisova
Hello, I am testing for email sending from my app and I have a scenario that passes in test env but not in production. When I make dump of ActionMailer::Base.deliveries I saw that it returns array with duplicated elements in production env but not in test env. I am using sqlite3 for test env an

Re: [Rails] ActionMailer Linode

2012-05-07 Thread Bruno Meira
Hi Rodrigo, I'll take a look. Thx :D 2012/5/6 Rodrigo Vieira > Try the guides: http://guides.rubyonrails.org/action_mailer_basics.html > > You should also look for your Linode SMTP settings. > > On 06/05/2012, at 19:21, Bruno Meira wrote: > > Hi Guys, > I created a mail server at Linode. > I wo

Re: [Rails] ActionMailer Linode

2012-05-07 Thread Rodrigo Vieira
Try the guides: http://guides.rubyonrails.org/action_mailer_basics.html You should also look for your Linode SMTP settings. On 06/05/2012, at 19:21, Bruno Meira wrote: > Hi Guys, > I created a mail server at Linode. > I would like to configure my rails app to send mails using one of this mail

[Rails] ActionMailer Linode

2012-05-06 Thread Bruno Meira
Hi Guys, I created a mail server at Linode. I would like to configure my rails app to send mails using one of this mail accounts. Does anybody know any tutorial about how to do it? Thx Bruno Meira -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk

Re: [Rails] ActionMailer message delivery content

2012-03-09 Thread Colin Law
On 9 March 2012 18:29, Roger Patrick wrote: > I have the ability to send email to a user if a certain user has > requested interest in their product. In my email I want to include > certain information that is pulled from users but at the moment I am > getting errors because it states that they ar

[Rails] ActionMailer message delivery content

2012-03-09 Thread Roger Patrick
I have the ability to send email to a user if a certain user has requested interest in their product. In my email I want to include certain information that is pulled from users but at the moment I am getting errors because it states that they are undefined despite these lines being used elsewhere

[Rails] ActionMailer message delivery content

2012-03-09 Thread Roger Patrick
I have the ability to send email to a user if a certain user has requested interest in their product. In my email I want to include certain information that is pulled from users but at the moment I am getting errors because it states that they are undefined despite these lines being used elsewhere

Re: [Rails] ActionMailer and Ruby SMTP causing a segmentation fault!

2012-01-29 Thread Paul
First, the 1.9.1 is "normal". That's always the folder it uses. Second, are you having this problem? http://www.christopherirish.com/2011/09/02/ruby-1-9-2-segmentation-fault-and-openssl/ On Sat, Jan 28, 2012 at 1:14 PM, Don wrote: >>> tries to send out the confirmation-link email I get a segment

Re: [Rails] ActionMailer and Ruby SMTP causing a segmentation fault!

2012-01-28 Thread Don
>> tries to send out the confirmation-link email I get a segmentation-fault >> error in Ruby's SMTP library: >> >> ... lib/ruby/1.9.1/net/smtp.rb:583: [BUG] Segmentation fault > If you are using ruby 1.9.1 then upgrade to 1.9.2 (or 1.9.3 though > maybe it is still a bit new) or go back to 1.8.7 >1

Re: [Rails] ActionMailer and Ruby SMTP causing a segmentation fault!

2012-01-28 Thread Colin Law
On 27 January 2012 23:14, Don wrote: > I just activated Devise' :confirmable option in my User model.  As Devise > tries to send out the confirmation-link email I get a segmentation-fault > error in Ruby's SMTP library: > > ... lib/ruby/1.9.1/net/smtp.rb:583: [BUG] Segmentation fault If you are u

Re: [Rails] Actionmailer woes

2011-12-14 Thread Colin Law
On 14 December 2011 11:50, Pieter Hugo wrote: > hi Guys > > I have now spent hours on this and turn to you in desperation. > > I am using Actionmailer to fetch emails, but I need to pass a userid to > the receive method, so that the receive method knows what user to pass > the email to. I tried: >

[Rails] Actionmailer woes

2011-12-14 Thread Pieter Hugo
hi Guys I have now spent hours on this and turn to you in desperation. I am using Actionmailer to fetch emails, but I need to pass a userid to the receive method, so that the receive method knows what user to pass the email to. I tried: (ATTEMPT 1) class PokeMailer < ActionMailer::Base def rece

[Rails] Actionmailer Help Needed

2011-07-28 Thread Jenny Blunt
Hello everyone, Nice to meet you all, am new to the forum. I'm stuck with rake / actionmailer trying to display a set of found records. We have a simple actionmailer rake task that is supposed to send a daily email digest of tasks that are due for a specific user. So far, it's working but the em

[Rails] ActionMailer Problem

2011-06-27 Thread News Aanad
Hi, I wanted to send an attachment in mail. for testing , I have send png image attachement in mail. Mail delivery is completely working but the attachment in that mail show file name as "nonname" what should i do?? My code is: class SendMail < ActionMailer::Base default :from => "x...@gmail.com

Re: [Rails] ActionMailer and Authlogic error

2011-06-18 Thread uncle mantis
I am going to go have breakfast. I am hoping I can take it from here. Thank you for your help. Also thank you #rubyonrails too! Regards, Michael On Sat, Jun 18, 2011 at 11:22 AM, uncle mantis wrote: > Yup. and now i have a new one! > > NameError in ActivationsController#new > > undefined

Re: [Rails] ActionMailer and Authlogic error

2011-06-18 Thread uncle mantis
Yup. and now i have a new one! NameError in ActivationsController#new undefined local variable or method `require_no_user' for # Rails.root: /home/unclemantis/rails_projects/bitcoin_raffle2 Application Trace | Framework Trace

Re: [Rails] ActionMailer and Authlogic error

2011-06-18 Thread Colin Law
On 18 June 2011 16:30, uncle mantis wrote: > Now I have something new. Presumably you found what was causing the earlier problem. > > NoMethodError in UsersController#create > > undefined method `activation_instructions' for Notifier:Class > > Rails.root: /home/unclemantis/rails_projects/raffle2

Re: [Rails] ActionMailer and Authlogic error

2011-06-18 Thread uncle mantis
Now I have something new. NoMethodError in UsersController#create undefined method `activation_instructions' for Notifier:Class Rails.root: /home/unclemantis/rails_projects/raffle2 Application Trace | Framework Trace | Full

Re: [Rails] ActionMailer and Authlogic error

2011-06-18 Thread Colin Law
On 17 June 2011 22:50, unclemantis wrote: > This is my first post to the mailing list. > > https://gist.github.com/46dc099c344c19002a79 > > I am getting the runtime error > > You can no longer call ActionMailer::Base.default_url_options > directly. You need to set config.action_mailer.default_url_

[Rails] ActionMailer and Authlogic error

2011-06-18 Thread unclemantis
This is my first post to the mailing list. https://gist.github.com/46dc099c344c19002a79 I am getting the runtime error You can no longer call ActionMailer::Base.default_url_options directly. You need to set config.action_mailer.default_url_options. If you are using ActionMailer standalone, you n

[Rails] ActionMailer Layouts for Rails 2.1.1

2011-04-26 Thread cipher_neo
Hi guys, I am using rails 2.1.1 on a project and would like to enable mailer layouts for it. I know that in later versions of rails, this is supported, but I do not have the time just now to upgrade my app. Are there any plugins to do this? I found http://www.railslodge.com/plugins/590-action-m

[Rails] ActionMailer : Not able to send out mails

2011-04-22 Thread Shashank
Hello, I have the following code in my environment/development.rb config.action_mailer.raise_delivery_errors = true; config.action_mailer.delivery_method = :smtp; config.action_mailer.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :user_name => "my...@gmail.com", :pa

Re: [Rails] ActionMailer - Setting Header Values - Version Issues

2011-04-15 Thread Bryan Crossland
On Fri, Apr 15, 2011 at 11:39 AM, doug wrote: > When I first started using Rails, actionmailer set email header values > by assigning values to instance variables within a model method. > There were some specific instance variables such as 'subject', 'from', > etc

[Rails] ActionMailer - Setting Header Values - Version Issues

2011-04-15 Thread doug
When I first started using Rails, actionmailer set email header values by assigning values to instance variables within a model method. There were some specific instance variables such as 'subject', 'from', etc. Header values for which there was no specific instance variable a

[Rails] ActionMailer: hostname was not match with the server certificate

2011-02-18 Thread Sam Kong
Hi, I am setting up SMTP for my Rails 3 App. This configuration works. ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => "mydomain.com", :user_name=

Re: [Rails] ActionMailer

2011-02-05 Thread Walter Lee Davis
On Feb 5, 2011, at 11:49 AM, Bhasker Harihara wrote: Hi Walter, Thanks for your input. Since I want a messaging system which will not send messages outside, will it be helpful to use ActionMailer or just write my own set of classes. If you're not actually delivering e-mail using the Int

Re: [Rails] ActionMailer

2011-02-05 Thread Bhasker Harihara
Hi Walter, Thanks for your input. Since I want a messaging system which will not send messages outside, will it be helpful to use ActionMailer or just write my own set of classes. Regards On Sat, Feb 5, 2011 at 9:48 PM, Walter Lee Davis wrote: > > On Feb 4, 2011, at 10:32 PM, Bhasker Harihara

Re: [Rails] ActionMailer

2011-02-05 Thread Walter Lee Davis
On Feb 4, 2011, at 10:32 PM, Bhasker Harihara wrote: Hi, I am planning to write an internal messaging system for my users. Should I be using Actionmailer ? I am not interested in using any plugin or 3rd party sw as I want to learn some ror. Is actionmailer used mainly for feedback and

[Rails] ActionMailer::Base.default_url_options

2011-02-05 Thread S. Widmann
Hi, I want so set a default url for ActionMailer. I know, ActionMailer::Base.default_url_options is deprecated, so I use config.action_mailer.default_url_options = { :host => "localhost" } in my environments (test.rb, production.rb, ...). The problem is, I get a deprecation error and r

[Rails] ActionMailer

2011-02-04 Thread Bhasker Harihara
Hi, I am planning to write an internal messaging system for my users. Should I be using Actionmailer ? I am not interested in using any plugin or 3rd party sw as I want to learn some ror. Is actionmailer used mainly for feedback and sending general emails. I am a new to rails so any suggestion

[Rails] ActionMailer - Adding an attachment from S3

2010-12-05 Thread CuriousNewbie
Seems simple enough but I haven't been able to get it to work. The files work fine from S3 on my web app, but when I email them out via ActionMailer as attachments, see the code below, the files are corrupt. App Stack: rails 3, heroku, paperclip + s3 Here's the code: class UserMailer < Actio

[Rails] ActionMailer 3 does not generate a body from template

2010-10-25 Thread James Byrne
I am unable to generate a message body using ActionMailer 3. This problem occurs even for ActionMailer classes and views that are unchanged from Rails-2.3. When these files are run with Rails 2.3 emails with bodies result. When exactly the same files are used in a Rails 3 project the headers are

[Rails] ActionMailer multipart messages with attachment rails3

2010-10-14 Thread Thomas Grebschrop
Hi, I try to send a multipart message with actionmailer under rails3. When the mail client receives the mail the attachment is empty. I do definitely attach a non-empty file. Here is the code: >snip recipients ["sec...@secret.com"] from "sec...@secret.com" subject "my subject" attachments.in

Re: [Rails] actionmailer and warning: regexp match /./n against to IBM437 string

2010-10-12 Thread radhames brito
This is familiar , it look like this problem http://openhood.com/rack/ruby/2010/07/15/rack-test-warning/ read the article and see if its your case, i hope it helps -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, s

[Rails] actionmailer and warning: regexp match /./n against to IBM437 string

2010-10-12 Thread Eoloe Eoloe
Hello guys! Here is my code. My platform is vista. require 'action_mailer' class Gmailer < ActionMailer::Base def GmailMsg (expe, dest, subj, text, path) if path != 0 mail.attachments[(path.split('\\')[-1])] = File.read(path) end mail(:to => dest, :subject => subj,

[Rails] ActionMailer Caching

2010-08-01 Thread K. R.
Hi everyone I've a big problem with sending a mail over ActionMailer::Base (HTML mail). I deploy my app with capistrano (2.5.9) and use passenger (2.2.15) / apache as webserver. But sometimes, when a send a mail, it takes an old template (of an old release of capistrano) and encode the content not

Re: [Rails] ActionMailer + GMail STMP: How to set FROM header?

2010-06-23 Thread Jon Brisbin
On Jun 23, 2010, at 4:16 PM, Tom Pett wrote: > I am using Ruby 1.8.7 with Rails 2.3.8 and the GMail SMTP configuration. > > However all mail being sent by my application has its 'from' field as > the gmail address that logs in, instead of what I supply in the from > function of my ActionMailer.

[Rails] ActionMailer + GMail STMP: How to set FROM header?

2010-06-23 Thread Tom Pett
I am using Ruby 1.8.7 with Rails 2.3.8 and the GMail SMTP configuration. However all mail being sent by my application has its 'from' field as the gmail address that logs in, instead of what I supply in the from function of my ActionMailer. Is there any way to change this, or this is a restrictio

[Rails] ActionMailer or alternatives in Rails 2.X

2010-06-10 Thread slindsey3000
I am developing in Rails 2.X (I forget the latest release!) Anyway. I need to incorporate email capability to my app. Is actionmailer the way to go or is there a plugin that is better. It seems quite easy and straightforward. I have already created some simple functionality with actionmailer.

Re: [Rails] ActionMailer + Gmail = Timeout::Error

2010-05-26 Thread kannav rajeev
hi brain i just cofig this one for my app . please check out app/models/users_application. > > rb:108:in `mail_app!' > and if possible plugin use action_mailer_tls that works for me thanks On Thu, May 27, 2010 at 5:01 AM, brianp wrote: > So in my local dev environment everything works fine. R

[Rails] ActionMailer + Gmail = Timeout::Error

2010-05-26 Thread brianp
So in my local dev environment everything works fine. Rails 2.3.5, Ruby 1.8.6. and require the smtp_tls plugin to send mail. In production I have Ruby 1.8.7 So the plugin is counter productive (will error). Without the plugin I receive the following error: Timeout::Error (execution expired): /u

[Rails] ActionMailer Confusion

2010-05-08 Thread doug
I am running Rails 2.3.2. I had something like the following in my environment.rb file: ActionMailer::Base.delivery_method=:smtp ActionMailer::Base.server_settings={ :whatever } Strangely, everything seemed to work just fine. Then Rails started complaining about my environment. Specifically, i

[Rails] ActionMailer Attachment : Character encoding for :filename

2010-03-28 Thread Adrien Coquio
Hi, I want to send a file "joke.txt" with ActionMailer but I want to rename the file in the mail "député.txt" I set the parameters :filename of the attachment to "député.txt" But when I receive the mail I can see : "d��put��.txt" In the log : filename*=iso-2022-jp'ja'd%c3%a9put%c3%a9.txt How ca

[Rails] ActionMailer configuration for Solaris and mailx

2010-03-25 Thread rtacconi
Does anyone knows how to configure ActionMailer with Solaris and mailx? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] ActionMailer - attaching a PDF

2010-03-10 Thread Adam Ziemba
http://pastie.org/863834 The "a.body" appears to want a string, which is why I tried render_to_string as shown in the code linked above. This doesn't work, I get "undefined method for render_to_string". I basically need to attach a PDF that is generated in another controller, passing 'data' as p

[Rails] ActionMailer using wrong layouts on prod box

2010-02-02 Thread Josh
haml app/views/notifier/test.text.plain.haml app/views/layouts/email.text.html.haml app/views/layouts/email.text.plain.haml *Both* parts of this multipart email use the HTML layout. However, each individual part uses the appropriate HTML/PLAIN template. 1) I've verified this isn't related to Rails/A

[Rails] ActionMailer attaching generated files

2010-01-31 Thread Ryan Abbott
I have a script that is running as a runner script, its job is to find reports that have recently been published and send emails to the users notifying them of the reports. The reports are available online, but are also available via a generated PDF which the users can see by tacking on .pdf to the

[Rails] ActionMailer does not find templates in production mode

2010-01-25 Thread Thilo-Alexander Ginkel
Hello everyone, I am currently struggling with the following issue that only seems to appear in my production environment: When attempting to send a mail from an ActionMailer the template location algorithm does not seem to pick up the corresponding template: ActionView::MissingTemplate (Missi

Re: [Rails] Actionmailer and Mass Mailing

2010-01-11 Thread Curtis Cooley
My guess is that you need to get your email account verified with the smtp service provider to send that many emails. As far as I know, you can send up to 500 a day through gmail, so that may be an option. On Mon, Jan 11, 2010 at 9:36 AM, Serafino Picozzi wrote: > Hello, I'm having a problem with

[Rails] Actionmailer and Mass Mailing

2010-01-11 Thread Serafino Picozzi
Hello, I'm having a problem with actionmailer and mass (sort of) mailing. Basically, sometimes I need to notify every subscribed user in my app by mail. Since the amout of users is very small (subscription is not public), i thought that actionmailer would be enough. When i need to send these emai

Re: [Rails] ActionMailer SITE constant

2010-01-07 Thread bill walton
Hi Ralph, On Thu, 2010-01-07 at 18:27 +0100, Ralph Shnelvar wrote: > ActionMailer is expecting the constant SITE to be initialized. > > I could put > SITE = 'http://localhost:3001' > in development.rb > > but > > what I would like to do is to set this constant programmaticly to the > current

Re: [Rails] ActionMailer SITE constant

2010-01-07 Thread steve ross
env['HTTP_HOST'] Maybe? On 1/7/10 9:27 AM, "Ralph Shnelvar" wrote: > ActionMailer is expecting the constant SITE to be initialized. > > I could put > SITE = 'http://localhost:3001' > in development.rb > > but > > what I would like to do is to set this constant programmaticly to the > curr

[Rails] ActionMailer SITE constant

2010-01-07 Thread Ralph Shnelvar
ActionMailer is expecting the constant SITE to be initialized. I could put SITE = 'http://localhost:3001' in development.rb but what I would like to do is to set this constant programmaticly to the current site. Is there a way to do this? -- Posted via http://www.ruby-forum.com/. -- You rec

[Rails] ActionMailer intermittent test failure

2010-01-06 Thread Curtis Cooley
I've written a test for a controller that sends email using ActionMailer. The problem is the test fails sporadically. It almost seems like ActionMailer::Base.deliveries isn't being updated by the time the assert checks, but I don't think ActionMailer sends emails asynchronously, at least nothing i

[Rails] actionmailer with attachment created with ERB

2009-12-09 Thread Dave
Hi all, I have an app that sends out a few e-mail notifications. Most of them work except for this one, which send a blank e-mail and an attached letter that was created using ERB. def donation_notification state, letter recipients @state.email subject'Donation Notification'

[Rails] [ActionMailer] "Form:" header is not being shown properly.

2009-12-08 Thread Vikrant Chaudhary
Hi, I'm using "action_mailer.delivery_method = :test", and trying to send an email with "from" address as "Ex ", However when I look at the email from "ActionMailer::Base.deliveries []", the "from" header is stripped down as "From: Ex". I'm using Rails 2.3.5, - thanks. -- You received this messag

[Rails] ActionMailer charset

2009-12-08 Thread Arthur Ccube
Hi Guys, How can I update the action mailer smtp charset. I am using Gmail as my smtp server, and setup the :default_charset => "big5" or :charset => "big5" Both case sent my mail in utf8. I want it to be big5 as my EmailToSMS required me to do so. How to set up the charset? Thanks, Arthur

Re: [Rails] ActionMailer dont function with JRuby?

2009-12-04 Thread Paulo Coutinho
Yeah. I try copy only the tls_smtp.rb to lib, but i got the same problem. Im searching for it on google, but i found only people with the same problem. If anyone can help or know a solution, please post here :( 2009/12/5 Dhruva Sagar > I had tried the same plugin as well, but I couldn't ge

Re: [Rails] ActionMailer dont function with JRuby?

2009-12-04 Thread Dhruva Sagar
I had tried the same plugin as well, but I couldn't get it working for some reason, since I had a short deadline at that time, I didn't investigate much, for me having the tls_smtp.rb file inside *lib* folder and having a require statement worked... Hopefully someone else would have more clarity on

Re: [Rails] ActionMailer dont function with JRuby?

2009-12-04 Thread Paulo Coutinho
Thx for response. But im already have this file "smtp_tls.rb", im using a plugin called: "action_mailer_optional_tls" With normal ruby(native) it run OK, but only when i use jruby it dont send. Im using ruby 1.8.7(come with jruby) and rails 2.3.5 Ty again. =

Re: [Rails] ActionMailer dont function with JRuby?

2009-12-04 Thread Dhruva Sagar
Ahhh so you require TLS :). Well firstly you want to add the config I mentioned in the previous email here so that it logs errors for you. Regarding TLS, can you tell me what rails version & ruby version are you using ? If your using Ruby version 1.8.x then it turns out that ActionMailer is not wo

Re: [Rails] ActionMailer dont function with JRuby?

2009-12-04 Thread Paulo Coutinho
; D:/www/teste_235/vendor/rails/actionmailer/lib/action_mailer/base.rb:523:in `deliver!' D:/www/teste_235/vendor/rails/actionmailer/lib/action_mailer/base.rb:395:in `method_missing' D:/www/teste_235/app/models/job_teste.rb:7:in `perform' D:/www/teste_235/vendor/plugins/delayed_job/lib/d

Re: [Rails] ActionMailer dont function with JRuby?

2009-12-04 Thread Paulo Coutinho
Im using the normal configuration in "/config/environment.rb": # Configuração do smtp ActionMailer::Base.default_content_type = 'text/html' ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :tls => true, :address => 'smtp.gmail.com', :port => 587, :domain => '

Re: [Rails] ActionMailer dont function with JRuby?

2009-12-04 Thread Dhruva Sagar
In your config/environments/development.rb, have you configured things properly for ActionMailer ? What is your config for config.action_mailer.raise_delivery_errors ? it should be set to true for it to report errors. You will have to give more details regarding your mail server as well... Thanks

[Rails] ActionMailer dont function with JRuby?

2009-12-04 Thread Paulo Coutinho
I have application that i send email normal with native ruby. But when i execute the sample application with jruby, it dont send email and dont get error. What can be wrong? -- Atenciosamente, Paulo Coutinho. Blog: www.prsolucoes.com/blog Site: www.prsolucoes.com Msn: pa...@prsolucoes.com --

[Rails] Using multiple SMTP accounts with Rails & ActionMailer

2009-10-27 Thread Tony
I have a need to send mail from more than 1 SMTP account in Rails and I stumbled upon this post http://broadcast.oreilly.com/2009/03/using-multiple-smtp-accounts-w.html The Author wasn't thrilled with his solution and I'm hoping this forum can come up with something a little cleaner. I took a d

[Rails] ActionMailer plain/text attachments

2009-10-16 Thread GregD
Does anyone know how to prevent a plain/text attachment to be inline within an email? Is it as simple as changing the content_type to an application type? My app (not a web app) is using ActionMailer outside of rails and everything is working like a charm, but I don't like that a plain text atta

[Rails] Actionmailer 2.3.4 error

2009-09-05 Thread Mark Studebaker
Hello - I'm using action mailer in a SVN post-commit script to send out emails. Everything was working fine with actionmailer 2.2.2. Now that U upgraded to actionmailer 2.3.4 I'm getting errors. This is the code I'm using and was working. def simple_message(repo, to, sub, message) from "

[Rails] ActionMailer - Problem

2009-08-18 Thread rails and rails only
Hi, I am some problem in action mailer. if I run the same project in other system it is working fine. But now working in my system. Could please help me to solve this problem? Thanks Jk -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~

[Rails] Actionmailer ignores return-path setting

2009-08-18 Thread ACTRAiSER
Hello, i have the problem that i want to set the return-path to the envelope of outgoing emails so bounces can be handled. I tried to set the header as followed in my mailer class: def newsletter subject 'subject' reply_to 'donotre...@domain.com' from 'f...@doma

[Rails] ActionMailer method level layouts

2009-08-17 Thread nextpulse
I am using layouts in 2.3's ActionMalier. I know I can specify a layout at the class level: class MyMailer < ActionMailer::Base layout 'foo' ... end Is it possible to define one at the method level? i.e. class MyMailer < ActionMailer::Base layout 'foo' ... def invite # USE LAYOUT FOO

[Rails] Actionmailer whoes

2009-07-29 Thread Dan Dunn
Im pulling some emails off of a server, parsing them with TMail and looping through them in the view and displaying them. My problem is that I want to display the html emails I have but when I put them on the page the and tags of the email Im importing are being injected into my sites html and

[Rails] ActionMailer task in cron

2009-07-27 Thread James Byrne
I have a Ruby script that sends an email. It works perfectly well when run from the command line of a user session, wheter in development or test mode. When run by cron as the same user however, it fails with this: /usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response': 501 5.0.0 HELO requires d

[Rails] actionmailer and local i18n

2009-07-24 Thread Marcelo Barbudas
Hi, When sending mails often enough they are sent to another party than the current logged in user (like when commenting on a blog), and that user can have another default i18n. It would be nice to be able to specify a local I18n for ActionMailer. There is a plugin that does this: http://github

[Rails] actionmailer and i18n

2009-07-02 Thread Marcelo Barbudas
Hi, When sending mails often enough they are sent to another party than the current logged in user (like when commenting on a blog). It would be nice to be able to specify a local I18n for ActionMailer. There is a plugin that does this: http://github.com/Bertg/i18n_action_mailer In my case it

[Rails] ActionMailer plain text problem and UPPERCASE chars

2009-06-22 Thread elliottg
Hello, I am using ActionMailer 2.3.3 to send out a very simple plain text email. I am having a very strange issue where the email will not be sent out if some of the the lines in the view are set to all caps. I can't figure this one out. It took almost a day to even narrow it down to this. I am j

[Rails] ActionMailer(1.3.5) model problem in my Rails1.2.5

2009-06-14 Thread geniusfox
Hi all: I user the command : ruby script/generate mailer FinanceMailer alert_customer_balance, then ,i have this files: class FinanceMailer < ActionMailer::Base def alert_customer_balance(sent_at = Time.now) @subject= 'FinanceMailer#alert_customer_balance' @body = {}

[Rails] ActionMailer Views Confusion

2009-06-10 Thread JannaB
I have an ActionMailer, which has a corresponding controller (shown below). The form to create the email gets invoked from another form, a list of names and email addresses from another Model. I would like to return to this list after the mail is sent (for now, however, I am merely trying to retur

[Rails] ActionMailer HTML emails appear as HTML code in email client

2009-06-08 Thread creativetags
Hi I'm trying to send multipart emails with something like this: Taken from http://api.rubyonrails.org/classes/ActionMailer/Base.html [code=] class ApplicationMailer < ActionMailer::Base def signup_notification(recipient) recipients recipient.email_address_with_name subject

[Rails] ActionMailer - which object has perform_delivery_test method

2009-05-07 Thread James Byrne
How do I determine where the method perform_delivery_test(mail) is located? This method is defined as part of ActionMailer::Base as a private method but I cannot find it defined when I do this in the console: >> print ActionMailer::Base.private_methods.sort -- Posted via http://www.ruby-forum.c

[Rails] ActionMailer view template:

2009-04-30 Thread James Byrne
I am attempting to generate a plain text list from an array of arrays. If I do this: <% for currency in @rates -%> <% if currency[2] == 'USD' -%> <%= currency[2] -%> ... <%= currency[4] %> <% end -%> <% end -%> Then I see this:

[Rails] ActionMailer sending mass emails,Suggestion for validation

2009-04-01 Thread Sandeep Asp
Hi all, I've used below link to send mass emails to people.I am able to send using the same code without any issues. http://www.tutorialspoint.com/ruby-on-rails/rails-send-email.htm Now,Is that i need to validate Subject,Recipient,Message text boxes.Can you please suggest me how this can be ach

[Rails] ActionMailer sending mass emails,Suggestion for validation

2009-04-01 Thread Sandeep Asp
Hi all, I've used below link to send mass emails to people.I am able to send using the same code without any issues. Now,Is that i need to validate Subject,Recipient,Message text boxes.Can you please suggest me how this can be achieved.As i am very new to rails and i beleive ActionRecord cannot b

[Rails] ActionMailer multipart: html, plain and attachment?

2009-03-27 Thread Danimal
#x27;t get this to work. If I explicitly put in "multipart/mixed" (to support the attachment) it won't do the two alternatives. If I explicitly put in "multipart/alternative" (to support the HTML and plain text parts), it won't show the attachment. Is this a Rails/Acti

[Rails] ActionMailer not send email and not generate error in log

2009-03-26 Thread Nurzed Lkham
hello guys.. i was trying configuring SMTP with GMail n my rails appliaction. when running everything seems alright but the mails not getting delivered. also the logs show the action as successful . in environment.rb: ActionMailer::Base.delivery_method =:smtp ActionMailer::Base.smtp_settings = {

[Rails] ActionMailer Sends Multiple Messages

2009-03-25 Thread Richard Schneeman
When i use "MyMailer.deliver_reply()" in my console, I send an email exactly as i would expect, but when i call "MyMailer.deliver_reply()" inside of my receive method, my app sends multiple duplicate messages, Do you have any clue what may be causing this behavior? Here is a copy of my log file h

  1   2   >