Displaying 20 results from an estimated 3000 matches similar to: "Mail now in ActionMailer"
2009 Oct 31
3
1.9 Compat and merging mail gem into ActionMailer
Hi all of both RoR Core and TMail.
You may know me better as the maintainer of TMail.
However, TMail has been a bit difficult to get working with Ruby 1.9,
so in the light of that, I sat down over the past few months and wrote
myself an all encompasing mail gem. Mail passes all of its hundreds
of specs equally well in Ruby 1.8.6, 1.8.7 and 1.9.1. Mail reads
every email in the TMail test suite
2006 Mar 29
1
ActionMailer - Message-id issue
Whenever I send e-mails through rails, part of the header comes out
as follows:
From: johndoe@domain1.com
To: janedoe@domain2.com
Message-Id: <442aba6514d50_154f7ba03530@iMac.local.tmail>
With Outlook 2003 SP2''s new "anti-phishing" feature, it''s tagging all
of these e-mails as junk. I tried sending the same content from my
mail software, using the same
2009 Mar 04
1
Question on phone line "pass through"
Hi all,
I have a TDM2400 full of FXS cards and a TDM800 full of FXO cards.
If I have a fax machine on the FXS port dialing out through asterisk
on the TDM800 FXO, should I be expecting any problems?
Or should this just work as expected? (ie, flawlessly with the
asterisk box essentially transparent to the whole operation).
I am doing it this way to allow many faxes and modems to share a dial
2007 Jul 18
10
Rails - Mock going out of scope?
Hello list,
I think I have a rails related RSpec problem with a mock going out of
scope on a recursive call to a model.
The code is at: http://pastie.textmate.org/79821 if you want to see it
highlighted. I have pasted it below as well.
Basically, I have an acts_as_nested_set model called "Node", which
works fine. I have a function which finds the language name of the
node instance.
2008 Nov 05
5
rake features and cucumber feature/name not producing same result
Hi all.
If I run rake features or cucumber features/* I get one failing FIT scenario
in one of my features.
If I then run that feature that contains the FIT table with the failing
scenario manually, it passes.
I run it again with rake features or cucumber features/* it fails, run
individually, it passes.
Obviously some state is carrying over between the features.
Any idea where i would start
2009 May 27
3
Call in progress tones
Hello all,
I've played with background and play sounds apps and googled around
and asked the list before to no avail.
Does anyone know of a way to have tones played during the call
progress stage of the call?
We (especially on some international circuits) get up to 5 seconds of
silence before the phone starts ringing or is busy.
I don't want to force "R" on the Dial app as
2008 Dec 03
8
Indentation Conventions for Ruby and Cucumber
On Thu, Nov 27, 2008 at 4:28 PM, Aslak Helles?y <aslak.hellesoy at gmail.com>wrote:
> When (if) this thread ends, let''s start a discussion about indentation
> conventions!
>
Oh... let the pleasure be mine!... and why wait?
_EVERYONE_ knows that the only way to indent ruby code is 2 plain spaces.
Tabs are known to be the source of all evil and 4 spaces obviously wastes
2009 Jan 11
6
Why does ActiveRecord allow perception of success when updating an ID, however it doesn't really work(i.e. no change in database)?
Hi,
Why does ActiveRecord allow perception of success when updating an ID,
however it doesn''t really work(i.e. no change in database)?
Here''s an example. The update of "id" versus update of a non-existent
attribute.
?> ai = AccountItem.find(:first) => #<AccountItem id: 1, account_id: 1,
date: "2009-01-11", amount:
2007 Jul 29
24
View-Driven-Development by Behavior-Driven-Development and RSpec
One of the things that turned me on to BDD and RSpec was speccing
views first, that the desired end would drive the development. In
previous projects while using Test::Unit I would try to make educated
guesses as to what would be needed in the model and controllers to
derive the view without actually writing the view until afterwards.
This is all because testing relied on each previous
2007 Jul 24
2
Mocking Resolv::DNS?
Hello Rspecers,
I have a rails project where I am calling Resolv::DNS.open and then
using the block to check a domain name.
The code snippet in question is:
domain = "mytest.com"
Resolv::DNS.open do |dns|
@mx = dns.getresources(domain, Resolv::DNS::Resource::IN::MX)
end
I obviously want to stub this out, especially for speed but can''t
quite work out how.
I
2007 Jul 24
11
Mock or Stub strategy for validates_uniqueness_of
Hi,
I''m a bit stuck with mocking a unit test of a join model with regards to a
validates_uniqueness_of clause.
I have
class Book < AR:B
has_many :clippings
various validates_presence_of etc
end
class Clip < AR:B
has_many :clippings
various validates_presence_of etc
end
class Clipping < AR:B
belongs_to :book
belongs_to :clip
validates_uniqueness_of :clip_id,
2006 Aug 04
1
[Info] TMail included in ActionMailer differs from ''normal'' TMail
Issue:
Just to hopefully save someone else a bunch of fun in the future - a
modified version of TMail is automatically installed with Rails in the
ActionMailer module. This version of TMail (which is required in your
rails environment by convention) differs significantly from the
package available at:
http://i.loveruby.net/en/projects/tmail/
(Second hit on Google for
2008 Apr 11
7
Net::SMTPAuthenticationError
Hey guys,
I want to send an email via ROR and I have put this code at the very end
in the config/environment.rb file-
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.logger = nil
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.smtp_settings = {
:address => "[my smtp server]",
:port => 25,
:domain
2008 Nov 17
4
Debugging Asterisk
Hello all,
Two questions:
1) What do people on the list do to debug phone quality issues. Phone
quality seems to be a very subjective thing. But are there metrics that you
can work against? Like maybe generating a tone and measuring the return
quality etc? It looks like all trial and error right now. If that is the
way it is, then fine. But anything more accurate / scientific?
2) Also
2007 Jun 29
1
Speeding up :dependent => :destroy
I have a tree of models that represent a book. Looks like this:
book
sections
documents
paragraphs
index entries
glossary entries
footnotes
index entries
glossary entries
These are all models with has_many from parent and the child has
belongs_to. They also all have dependent => :destroy
2008 Jul 04
4
select_datetime // datetime_select
Hi I have 2 question for you guys,
1. Which is the difference between this two methods? (select_datetime,
datetime_select)
2. How I assign the selected date-time values, to an specific variable
or array using select_datetime
I know do it using datetime_select(''object'',''method'')
I aprecciate your attention.
Thanks
PD: Sorry about my english.
2008 Feb 21
1
Using Really Simple History on Rails
Hello all,
I am getting Really Simple History working in rails.
I''ve got this history content up etc, but I am a bit lost on how to
capture the XHR response data from the Rails app to insert into the
history.
My understanding would be to have some way of grabbing the response
data from the Rails app, inserting that into the history with
dhtmlHistory.add(''PageName'',
2008 Dec 21
5
Good comparisons on cheaper VOIP phones
Hello list,
I am doing some work for a non profit group.
As part of this, I am going to be putting in a 30 handset Asterisk solution.
We are trying to keep the costs down as much as possible, as this job
includes cabling, I am looking at POE solutions.
On the switch side, I am considering something like some Netgear ProSafe
FS726TP 24 port switches, or maybe the equivalent Linksys SRW224MP 24
2008 Nov 18
1
Asterisk not reading fast DTMFs, was: PBX -> PRI -> * -> Telco not working
On Mon, Nov 17, 2008 at 10:20 AM, Tony Mountifield <tony at softins.clara.co.uk
> wrote:
> > If I do this from an NEC digital extension I get 141496920000, but if I
> do
> > it from an NEC POTS extension I get 1942124000
>
> That looks like when you pick up the analogue phone and dial 9, it
> immediately opens the outgoing line and sends the 141 acces code, but
>
2008 Nov 30
4
ActionMailer weirdness: bad html '=3d' for all '='
I am getting html output in my email body with spurious characters
that cannot be rendered, so that my links are not handled properly.
What am I not getting here?
My email body contains:
-----------------clip-------------
<A href=mailto:"<%=h(''support-t1rxLZ7CIXjQT0dZR+AlfA@public.gmane.org'')%>?
Support">Support</A><br/>
with any