With the 0.9.1 version of AM, I could call something like
Mailer.deliver(tmail_obj) to send a pre-fab TMail object.
It seems that this has changed with the 1.0.0 version.
I need to forward a mail received via ActionMailer, and figured this
would suffice
def receive(email)
email.to = "someone-oHC15RC7JGRl57MIdRCFDg@public.gmane.org"
deliver(email)
end
What is the best way to forward mails with the new version?
-tj
I figured it out.
def receive(email)
email.to = "someone-oHC15RC7JGRl57MIdRCFDg@public.gmane.org"
@mail = email
self.deliver!
end
I''m using AM pretty heavily. Perhaps I should add some notes to the
wiki?
On Jul 21, 2005, at 12:35 PM, Toby Boudreaux wrote:
> With the 0.9.1 version of AM, I could call something like
> Mailer.deliver(tmail_obj) to send a pre-fab TMail object.
>
> It seems that this has changed with the 1.0.0 version.
>
> I need to forward a mail received via ActionMailer, and figured
> this would suffice
>
> def receive(email)
> email.to = "someone-oHC15RC7JGRl57MIdRCFDg@public.gmane.org"
> deliver(email)
> end
>
>
> What is the best way to forward mails with the new version?
>
> -tj
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
On Jul 21, 2005, at 11:04 AM, Toby Boudreaux wrote:> I figured it out. > > def receive(email) > email.to = "someone-oHC15RC7JGRl57MIdRCFDg@public.gmane.org" > @mail = email > self.deliver! > end > > I''m using AM pretty heavily. Perhaps I should add some notes to the > wiki?Patches are welcome, too, if you happen to hack a cleaner way of doing something into AM. Unit tests with your patches will certainly expedite things, too. - Jamis
Thanks, I was just trying to figure out how to do that! You should add it to the wiki if you get a chance. -- Joe Clarke On 7/21/05, Toby Boudreaux <rails-lb8SQxIZKShBDgjK7y7TUQ@public.gmane.org> wrote:> I figured it out. > > def receive(email) > email.to = "someone-oHC15RC7JGRl57MIdRCFDg@public.gmane.org" > @mail = email > self.deliver! > end > > I''m using AM pretty heavily. Perhaps I should add some notes to the > wiki? > > > > > On Jul 21, 2005, at 12:35 PM, Toby Boudreaux wrote: > > > With the 0.9.1 version of AM, I could call something like > > Mailer.deliver(tmail_obj) to send a pre-fab TMail object. > > > > It seems that this has changed with the 1.0.0 version. > > > > I need to forward a mail received via ActionMailer, and figured > > this would suffice > > > > def receive(email) > > email.to = "someone-oHC15RC7JGRl57MIdRCFDg@public.gmane.org" > > deliver(email) > > end > > > > > > What is the best way to forward mails with the new version? > > > > -tj > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Yeah, I''m putting notes together. I''m also gonna propose a couple of patches that Jamis and I discussed earlier. -tj On Jul 21, 2005, at 5:44 PM, Joe Clarke wrote:> Thanks, I was just trying to figure out how to do that! You should add > it to the wiki if you get a chance. > > -- > Joe Clarke > > On 7/21/05, Toby Boudreaux <rails-lb8SQxIZKShBDgjK7y7TUQ@public.gmane.org> wrote: > >> I figured it out. >> >> def receive(email) >> email.to = "someone-oHC15RC7JGRl57MIdRCFDg@public.gmane.org" >> @mail = email >> self.deliver! >> end >> >> I''m using AM pretty heavily. Perhaps I should add some notes to the >> wiki? >> >> >> >> >> On Jul 21, 2005, at 12:35 PM, Toby Boudreaux wrote: >> >> >>> With the 0.9.1 version of AM, I could call something like >>> Mailer.deliver(tmail_obj) to send a pre-fab TMail object. >>> >>> It seems that this has changed with the 1.0.0 version. >>> >>> I need to forward a mail received via ActionMailer, and figured >>> this would suffice >>> >>> def receive(email) >>> email.to = "someone-oHC15RC7JGRl57MIdRCFDg@public.gmane.org" >>> deliver(email) >>> end >>> >>> >>> What is the best way to forward mails with the new version? >>> >>> -tj >>> _______________________________________________ >>> Rails mailing list >>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >>> >> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >