gwtmp01 / mac.com wrote:

>
> On Jan 9, 2006, at 3:29 PM, David Vallner wrote:
>
>> Speaking of which, by mere coinkydink I needed that article right  
>> now too. Yet my ISPs SMTP server doesn't seem to let me through;  
>> does anyone know what are the common limitations that ISPs enforce  
>> on e-mails sent via their SMTP servers? I'm wondering whether  
>> setting my HELO domain to my webhost's as opposed to something that  
>> looks like what the ISP might have given me could cause a failure  in 
>> the mail being deliverred.
>
>
>
> Many ISPs block outbound TCP connections to port 25 (the SMTP port).
> They require you to connect to the mail server provided by the ISP,
> which will then deliver the mail outside the ISP's network.

Well, my ISP is rather happy with anything I do, I had a problem which 
seemed like a server config failure. Turned out silly me was using a 
semicolon instead of a comma to separate multiple recipients...

>
> Some ISPs have a procedure to lift the outbound port 25 filters for  
> specific
> customers.  You'll have to check with your ISP.
>
> You can thank the spammers for this situation.  It is designed to  
> provide
> a mechanism for auditing outgoing email such that spam sources can be  
> identified
> and shutdown before they cause the ISP to be put on various  
> blacklists as a source
> of spam.   If your address block gets put on such a list it can have  
> a serious
> operational impact (i.e. email to/from your customers stops flowing)  
> so ISP's
> have to be aggressive about identifying and eliminating sources of SPAM.
>
> Gary Wright
>
>
>
>
Anyways, that problem got resolved, but here's another quirk. My test 
method went like:


    class Notify
        def notifier_test(test_message)
            recipients "fred / example.com, barney / example.com,
    wilma / example.com"
            from "betty / example.com"
            subject "Notifier Test"
           
            body ["test_message" = test_message]
        end
    end

(That's using the traits versions of the code).

And the template was:

    Notifier Test

    Test message: <%= @test_message %>


And when I tried to go Notify.deliver_notifier_test("Testing.") in a 
Rails console, I got a very weird Exception / traceback, possibly while 
compiling the ERB template:

    ActionView::TemplateError:

    ActionView::TemplateError (`@test_messageTesting.' is not allowed as
    an instance
     variable name) on line #0 of app/views/notify_tn1/notifier_test.rhtml:
    1: This is a notifier test e-mail.
    2:
    3: The test message is: <%= @test_message %>
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:333
    :in `instance_variable_set'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:333
    :in `assign_variables_from_controller'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:333
    :in `assign_variables_from_controller'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:323
    :in `evaluate_assigns'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:264
    :in `compile_and_render_template'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:244
    :in `render_template'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:205
    :in `render_file'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:226
    :in `render'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.5/lib/action_mailer/base.rb:
    357:in `render'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.5/lib/action_mailer/base.rb:
    352:in `render_message'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.5/lib/action_mailer/base.rb:
    300:in `create!'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.5/lib/action_mailer/base.rb:
    263:in `initialize'
        d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
    `new'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.5/lib/action_mailer/base.rb:
    223:in `method_missing'
        (irb):1:in `irb_binding'
        d:/ruby/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'
        d:/ruby/lib/ruby/1.8/irb/workspace.rb:52


            from On line #0 of app/views/notify_tn1/notifier_test.rhtml

        1: This is a notifier test e-mail.
        2:
        3: The test message is: <%= @test_message %>
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:333
    :in `instance_variable_set'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:333
    :in `assign_variables_from_controller'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:333
    :in `assign_variables_from_controller'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:323
    :in `evaluate_assigns'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:264
    :in `compile_and_render_template'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:244
    :in `render_template'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:205
    :in `render_file'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:226
    :in `render'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.5/lib/action_mailer/base.rb:
    357:in `render'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.5/lib/action_mailer/base.rb:
    352:in `render_message'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.5/lib/action_mailer/base.rb:
    300:in `create!'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.5/lib/action_mailer/base.rb:
    263:in `initialize'
        d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
    `new'
       
    d:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.5/lib/action_mailer/base.rb:
    223:in `method_missing'
        (irb):1:in `irb_binding'
        d:/ruby/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding'
        d:/ruby/lib/ruby/1.8/irb/workspace.rb:52
    Maybe IRB bug!!