Re: [Radiant] Radiant Mailer Extesion Error
Hey that's great! Congrats. On Mon, Mar 29, 2010 at 7:34 AM, Anton Aylward wrote: > Anton Aylward said the following on 03/29/2010 09:00 AM: > >>> >>> >>> I would have thought that using sendmail would have made more >>> sense for a mailer interface than trying to inject into port 25. >>> >> >> Such as >> >> ActionMailer::Base.delivery_method = :sendmail >> >> Perhaps? >> I'll try that:-) > > Well it works, works first time, with no problems, and since all that it > does is pipe though to sendmail, its pretty fast. > > I'd recommend this as a much simpler solution that futzing with ports > and passwords! > ___ > Radiant mailing list > Post: Radiant@radiantcms.org > Search: http://radiantcms.org/mailing-list/search/ > List Site: http://lists.radiantcms.org/mailman/listinfo/radiant > Radiant: http://radiantcms.org > Extensions: http://ext.radiantcms.org > ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ List Site: http://lists.radiantcms.org/mailman/listinfo/radiant Radiant: http://radiantcms.org Extensions: http://ext.radiantcms.org
Re: [Radiant] Radiant Mailer Extesion Error
Anton Aylward said the following on 03/29/2010 09:00 AM: >> >> >> I would have thought that using sendmail would have made more >> sense for a mailer interface than trying to inject into port 25. >> > > Such as > > ActionMailer::Base.delivery_method = :sendmail > > Perhaps? > I'll try that:-) Well it works, works first time, with no problems, and since all that it does is pipe though to sendmail, its pretty fast. I'd recommend this as a much simpler solution that futzing with ports and passwords! ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ List Site: http://lists.radiantcms.org/mailman/listinfo/radiant Radiant: http://radiantcms.org Extensions: http://ext.radiantcms.org
Re: [Radiant] Radiant Mailer Extesion Error
Anton Aylward said the following on 03/29/2010 08:28 AM: > >> If you ahve another client (apple >> mail, etc.) setup that sends successfully with a configuration, > > Yes I have a TWiki application that does it. > That's written in perl and has a config file that sends via 'sendmail'. > So its not the same mechanism. > > > I would have thought that using sendmail would have made more > sense for a mailer interface than trying to inject into port 25. > Such as ActionMailer::Base.delivery_method = :sendmail Perhaps? I'll try that:-) ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ List Site: http://lists.radiantcms.org/mailman/listinfo/radiant Radiant: http://radiantcms.org Extensions: http://ext.radiantcms.org
Re: [Radiant] Radiant Mailer Extesion Error
banane said the following on 03/28/2010 10:45 PM: > Anton > > When you say it's sending successfully, how do you know that? I didn't say that, did I? If it was sending successfully I'd be getting the resulting mail and I don't. What it is doing is taking time processing and the production log has an entry (sanitized) Processing MailController#create (for 099.27.68.19 at 2010-03-28 16:31:39) [POST] Parameters: {"page_id"=>"112", "action"=>"create", "mailer"=>{"message"=>"x\r\n1\r\n2\r\n3\r\n4\r\n5", "company"=>"SSS", "name"=>"aaa", "website"=>"xyzzy=2", "required"=>{"name"=>"true", "message"=>"true", "email"=>"true"}, "email"=>"anton.aylw...@rogers.com"}, "controller"=>"mail"} Sent mail to anton.aylw...@rogers.com Completed in 1407ms (View: 1, DB: 118) | 200 OK [http://www.X.com/pages/112/mail] > In the post I wrote re: my process of setting up Mailer, > (databasemailer, btw) I have this bit from my log: > > - "AUTH PLAIN AGJhbmFuZQBraXdpa2l3aQ==\r\n" > -> “235 2.7.0 Accepted\r\n” > <- "MAIL FROM:\r\n” > -> “250 2.1.0 OK 7sm1568664yxg.68\r\n” > <- "RCPT TO:\r\n” > -> “250 2.1.5 OK 7sm1568664yxg.68\r\n” > <- "DATA\r\n" > -> “354 Go ahead 7sm1568664yxg.68\r\n” > writing message from String > wrote 599 bytes > That is the official "it has sent" success. Where did that get logged? At Dreamhost I don't have (or don't see how) I can 'tap' such exchanges. > Another issue- you say it's refreshing the form and not going to the > contact/thanks page. So that's not processing correctly. Can you > manually type in the thanks page and view it? Yes. As I said, I set this up local on the image I have on my laptop of the public site at Dreamhost BEFORE export/import of the pages to the site at Dreamhost. So the only difference is in the way the mailer is set up in environment.rb --- oh, and any differences in the revision of the gems at Dreamhost. They are not good at keeping those up to date :-( That has bitten me before. >>From what you've said so far- looks like the environment.rb is still > misconfigured. Yea, right. I've googled for the perl script to encode the id/password I'm using in environment.rb and then manually 'telnet mail 25' and given the resulting string as a "auth plain" and got a postive ACK back, so I know the id/password is right. > Check the logs/environment.rb for: > - actionmailer framework is installed What do you mean by that? Do you mean the gem is in the library? (dreamhost) $ gem list | grep actionmailer actionmailer (2.3.5, 2.2.2, 2.1.1, 2.1.0) > - form is being processed- what does the log say re: that process > - smpt port, etc. is correct I've given the ONLY log entry that seems to be involved above. > - auth info works. Check w/ dreamhost re: the auth info. telnet access > is diff. than mail auth access. Eh? Why do you say that? > If you ahve another client (apple > mail, etc.) setup that sends successfully with a configuration, Yes I have a TWiki application that does it. That's written in perl and has a config file that sends via 'sendmail'. So its not the same mechanism. I would have thought that using sendmail would have made more sense for a mailer interface than trying to inject into port 25. > or if > dreamhost has a help page that tells you how to set it up, use that. I do wonder. The smtpd responds to the "EHLO" with "AUTH PLAIN" So does using :authentication => :login or :authentication => :plain matter? > > On Sun, Mar 28, 2010 at 3:40 PM, Anton Aylward > wrote: >> I'm following up to this "old" mail because I have the same problem and >> that old thread doesn't have a resolution that seems to apply to me. >> >> I set up the mailer extension on my laptop using my LAN's mail hub and >> it worked fine. Good, so I went ahead and installed it and then copied >> the page (body, email, mailer) to my public site on Dreamhost, created >> the contact/thanks page there and adjusted the entries in >> config/environment.rb to suit .. >> >> and it doesn't work. >> >> >> Like this report, after clicking it reloads at /pages/112/mail#form >> >> And no, it takes it time, so there is some processing going on. >> >> The log shows no error; it says that the mail as sent to the address(es) >> as expected. >> >> Only there is no evidence it was; it doesn't get through. >> There's nothing in the logs. >> >> I've ssh'd to Dreamhost, to the working directory, and from there >> telnet' to to mailserver I have in the configuration, for port 25, an >> yes that's where it is, and being "local" its not asking for a login. >> >> I am NOT using gmail. >> >> I have experimented with the authentication, just in case, and no, that >> makes no difference. >> >> I've checked the Radiant logs and the site web logs and there's no >> indication of what's going on >> >> >> HELP! >> >> >> Mauricio Dulce said the following on 12/04/2009 09:45 AM: >>> Hello, i have work whit radiant and Mailer exte
Re: [Radiant] Radiant Mailer Extesion Error
Anton When you say it's sending successfully, how do you know that? Can you cut and paste part of your log that gives you that impression? In the post I wrote re: my process of setting up Mailer, (databasemailer, btw) I have this bit from my log: - "AUTH PLAIN AGJhbmFuZQBraXdpa2l3aQ==\r\n" -> “235 2.7.0 Accepted\r\n” <- "MAIL FROM:\r\n” -> “250 2.1.0 OK 7sm1568664yxg.68\r\n” <- "RCPT TO:\r\n” -> “250 2.1.5 OK 7sm1568664yxg.68\r\n” <- "DATA\r\n" -> “354 Go ahead 7sm1568664yxg.68\r\n” writing message from String wrote 599 bytes That is the official "it has sent" success. Another issue- you say it's refreshing the form and not going to the contact/thanks page. So that's not processing correctly. Can you manually type in the thanks page and view it? >From what you've said so far- looks like the environment.rb is still misconfigured. Check the logs/environment.rb for: - actionmailer framework is installed - form is being processed- what does the log say re: that process - smpt port, etc. is correct - auth info works. Check w/ dreamhost re: the auth info. telnet access is diff. than mail auth access. If you ahve another client (apple mail, etc.) setup that sends successfully with a configuration, or if dreamhost has a help page that tells you how to set it up, use that. On Sun, Mar 28, 2010 at 3:40 PM, Anton Aylward wrote: > I'm following up to this "old" mail because I have the same problem and > that old thread doesn't have a resolution that seems to apply to me. > > I set up the mailer extension on my laptop using my LAN's mail hub and > it worked fine. Good, so I went ahead and installed it and then copied > the page (body, email, mailer) to my public site on Dreamhost, created > the contact/thanks page there and adjusted the entries in > config/environment.rb to suit .. > > and it doesn't work. > > > Like this report, after clicking it reloads at /pages/112/mail#form > > And no, it takes it time, so there is some processing going on. > > The log shows no error; it says that the mail as sent to the address(es) > as expected. > > Only there is no evidence it was; it doesn't get through. > There's nothing in the logs. > > I've ssh'd to Dreamhost, to the working directory, and from there > telnet' to to mailserver I have in the configuration, for port 25, an > yes that's where it is, and being "local" its not asking for a login. > > I am NOT using gmail. > > I have experimented with the authentication, just in case, and no, that > makes no difference. > > I've checked the Radiant logs and the site web logs and there's no > indication of what's going on > > > HELP! > > > Mauricio Dulce said the following on 12/04/2009 09:45 AM: >> Hello, i have work whit radiant and Mailer extension but this not send >> emails and redirect to page of thank-you, After giving click in email, >> this reloads the same page pages/3/mail#mailer and I have this in the >> log shows no error, this on production servers that have hired. >> >> www.domain.com/contctenos hosted in site5 >> >> Processing MailController#create (for ip at 2009-12-03 14:01:19) [POST] >> Parameters: {"action"=>"create", "page_id"=>"3", >> "mailer"=>{"company"=>"xx", "required"=>{"name"=>"true", >> "subject"=>"true", "message"=>"true", "email"=>"true"}, >> "name"=>"", "country"=>"", "City"=>"Bogotá", >> "subject"=>"test", "phone"=>"00", "Address"=>"Address", >> "message"=>"test text ", "email"=>"t...@domain.com"}, >> "controller"=>"mail"} >> Sent mail to t...@gmail.com >> Completed in 268ms (View: 0, DB: 49) | 200 OK [http://domain.com/pages/3/mail >> ] >> >> >> - >> >> in another company where I have hired a normal plan and not a >> dedicated server, I will work correctly and they are CENTO, Support >> tells me to be somewhat lost and not to do, here I put the log of >> another company where we see that the extension works, I'm using >> google for sending emails. >> >> >> >> Processing MailController#create (for IP at 2009-12-03 21:02:04) [POST] >> Parameters: {"action"=>"create", "page_id"=>"3", >> "mailer"=>{"company"=>"xx", "required"=>{"name"=>"true", >> "subject"=>"true", "message"=>"true", "email"=>"true"}, >> "name"=>"", "country"=>"", "City"=>"Bogotá", >> "subject"=>"test", "phone"=>"00", "Address"=>"Address", >> "message"=>"test text ", "email"=>"t...@domain.com"}, >> "controller"=>"mail"} >> Sent mail to t...@gmail.com >> Redirected to http://domain2.test.com/contact/thank-you >> Completed in 2580ms (DB: 17) | 302 Found >> [http://domain2.test.com/pages/3/mail >> ] >> >> >> Processing SiteController#show_page (for IP at 2009-12-03 21:02:07) >> [GET] >> Parameters: {"url"=>["contact", "thank-you"], "action"=>"show_page", >> "controller"=>"site"} >> Completed in 920ms (DB: 427) | 404 [http://domain2.test.com/contact/thank-you >> ] >> >> I lost in this problem, you have
Re: [Radiant] Radiant Mailer Extesion Error
I'm following up to this "old" mail because I have the same problem and that old thread doesn't have a resolution that seems to apply to me. I set up the mailer extension on my laptop using my LAN's mail hub and it worked fine. Good, so I went ahead and installed it and then copied the page (body, email, mailer) to my public site on Dreamhost, created the contact/thanks page there and adjusted the entries in config/environment.rb to suit .. and it doesn't work. Like this report, after clicking it reloads at /pages/112/mail#form And no, it takes it time, so there is some processing going on. The log shows no error; it says that the mail as sent to the address(es) as expected. Only there is no evidence it was; it doesn't get through. There's nothing in the logs. I've ssh'd to Dreamhost, to the working directory, and from there telnet' to to mailserver I have in the configuration, for port 25, an yes that's where it is, and being "local" its not asking for a login. I am NOT using gmail. I have experimented with the authentication, just in case, and no, that makes no difference. I've checked the Radiant logs and the site web logs and there's no indication of what's going on HELP! Mauricio Dulce said the following on 12/04/2009 09:45 AM: > Hello, i have work whit radiant and Mailer extension but this not send > emails and redirect to page of thank-you, After giving click in email, > this reloads the same page pages/3/mail#mailer and I have this in the > log shows no error, this on production servers that have hired. > > www.domain.com/contctenos hosted in site5 > > Processing MailController#create (for ip at 2009-12-03 14:01:19) [POST] > Parameters: {"action"=>"create", "page_id"=>"3", > "mailer"=>{"company"=>"xx", "required"=>{"name"=>"true", > "subject"=>"true", "message"=>"true", "email"=>"true"}, > "name"=>"", "country"=>"", "City"=>"Bogotá", > "subject"=>"test", "phone"=>"00", "Address"=>"Address", > "message"=>"test text ", "email"=>"t...@domain.com"}, > "controller"=>"mail"} > Sent mail to t...@gmail.com > Completed in 268ms (View: 0, DB: 49) | 200 OK [http://domain.com/pages/3/mail > ] > > > - > > in another company where I have hired a normal plan and not a > dedicated server, I will work correctly and they are CENTO, Support > tells me to be somewhat lost and not to do, here I put the log of > another company where we see that the extension works, I'm using > google for sending emails. > > > > Processing MailController#create (for IP at 2009-12-03 21:02:04) [POST] > Parameters: {"action"=>"create", "page_id"=>"3", > "mailer"=>{"company"=>"xx", "required"=>{"name"=>"true", > "subject"=>"true", "message"=>"true", "email"=>"true"}, > "name"=>"", "country"=>"", "City"=>"Bogotá", > "subject"=>"test", "phone"=>"00", "Address"=>"Address", > "message"=>"test text ", "email"=>"t...@domain.com"}, > "controller"=>"mail"} > Sent mail to t...@gmail.com > Redirected to http://domain2.test.com/contact/thank-you > Completed in 2580ms (DB: 17) | 302 Found > [http://domain2.test.com/pages/3/mail > ] > > > Processing SiteController#show_page (for IP at 2009-12-03 21:02:07) > [GET] > Parameters: {"url"=>["contact", "thank-you"], "action"=>"show_page", > "controller"=>"site"} > Completed in 920ms (DB: 427) | 404 [http://domain2.test.com/contact/thank-you > ] > > I lost in this problem, you have any suggestion to fix this problem > > config of the both server > > CENTOS 5.4 x86_64 standard > Rails 2.3.4 > ruby 1.8.7 (2008-06-20 patchlevel 22) [x86_64-linux] > Site 5 > X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.4, Enterprise > Edition > Other Server > X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.5 > > > ___ > Radiant mailing list > Post: Radiant@radiantcms.org > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant -- intaxification (n): Euphoria at getting a tax refund, which lasts until you realize it was your money to start with. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ List Site: http://lists.radiantcms.org/mailman/listinfo/radiant Radiant: http://radiantcms.org Extensions: http://ext.radiantcms.org
Re: [Radiant] Radiant Mailer Extesion Error
I also had a redirect problem when I was installing mailer. I documented my process in a blog post- it's a very simple example, but I got it working. It also has a lenghty troubleshooting section at the end- the steps i used to figure out the redirect error. http://www.banane.com/2009/10/27/radiant-mailer-extension-installation-basics/ ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Radiant Mailer Extesion Error
Yes i see this yesterday in this group http://groups.google.com/group/radiantcms-dev/browse_thread/thread/815ffc145cdf5290?pli=1 I did all that, but I do not work, switch to Gmail, with normal email, smtp does not work and thought me this could solve. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Radiant Mailer Extesion Error
If you are using gmail for sending from both servers do you have the action_mailer_optional_tls plugin installed in /vendor/plugins? and in config.rb config.after_initialize do # Add new inflection rules using the following format: ActiveSupport::Inflector.inflections do |inflect| inflect.uncountable 'config' end ActionMailer::Base.perform_deliveries = true ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :tls => true, # <-- :address => "smtp.gmail.com", :port => "587", :domain => "", :authentication => :plain, :user_name => "", :password => "" } end I don't know if the action_mailer_optional_tls is required for 1.8.7, but it is something to look at... On 4 Dec 2009, at 14:45, Mauricio Dulce wrote: > Hello, i have work whit radiant and Mailer extension but this not send > emails and redirect to page of thank-you, After giving click in email, > this reloads the same page pages/3/mail#mailer and I have this in the > log shows no error, this on production servers that have hired. > > www.domain.com/contctenos hosted in site5 > > Processing MailController#create (for ip at 2009-12-03 14:01:19) [POST] > Parameters: {"action"=>"create", "page_id"=>"3", > "mailer"=>{"company"=>"xx", "required"=>{"name"=>"true", > "subject"=>"true", "message"=>"true", "email"=>"true"}, > "name"=>"", "country"=>"", "City"=>"Bogotá", > "subject"=>"test", "phone"=>"00", "Address"=>"Address", > "message"=>"test text ", "email"=>"t...@domain.com"}, > "controller"=>"mail"} > Sent mail to t...@gmail.com > Completed in 268ms (View: 0, DB: 49) | 200 OK [http://domain.com/pages/3/mail > ] > > > - > > in another company where I have hired a normal plan and not a > dedicated server, I will work correctly and they are CENTO, Support > tells me to be somewhat lost and not to do, here I put the log of > another company where we see that the extension works, I'm using > google for sending emails. > > > > Processing MailController#create (for IP at 2009-12-03 21:02:04) [POST] > Parameters: {"action"=>"create", "page_id"=>"3", > "mailer"=>{"company"=>"xx", "required"=>{"name"=>"true", > "subject"=>"true", "message"=>"true", "email"=>"true"}, > "name"=>"", "country"=>"", "City"=>"Bogotá", > "subject"=>"test", "phone"=>"00", "Address"=>"Address", > "message"=>"test text ", "email"=>"t...@domain.com"}, > "controller"=>"mail"} > Sent mail to t...@gmail.com > Redirected to http://domain2.test.com/contact/thank-you > Completed in 2580ms (DB: 17) | 302 Found > [http://domain2.test.com/pages/3/mail > ] > > > Processing SiteController#show_page (for IP at 2009-12-03 21:02:07) > [GET] > Parameters: {"url"=>["contact", "thank-you"], "action"=>"show_page", > "controller"=>"site"} > Completed in 920ms (DB: 427) | 404 [http://domain2.test.com/contact/thank-you > ] > > I lost in this problem, you have any suggestion to fix this problem > > config of the both server > > CENTOS 5.4 x86_64 standard > Rails 2.3.4 > ruby 1.8.7 (2008-06-20 patchlevel 22) [x86_64-linux] > Site 5 > X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.4, Enterprise > Edition > Other Server > X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.5 > > > ___ > Radiant mailing list > Post: Radiant@radiantcms.org > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant