Sorry, hat sich erledigt. Ich hatte das in der Dokumentation übersehen:
If you want to explicitly render only certain templates, pass a block: mail(:to => user.email) do |format| format.text format.html end Viele Grüße Michael Kastner Am 08.02.2012 um 07:47 schrieb rubyonrails...@galt.de: > Hallo, > > ich habe im Template-Verzeichenis (Rails 3.2) des mailers zwei Templates für > html und Text. Ich möchte aber nicht in jedem Fall HTML-Emails verschicken, > sondern manchmal auch _nur_ Textmails. Das würde ich gerne über die Anwendung > steuern. Gibt's da irgendeine Möglichkeit im Mailer die Einbindung für ein > bestimmte Template- oder MIME-Typen zu verhindern? > > Viele Grüße > > Michael Kastner > _______________________________________________ > rubyonrails-ug mailing list > rubyonrails-ug@headflash.com > http://mailman.headflash.com/listinfo/rubyonrails-ug > _______________________________________________ rubyonrails-ug mailing list rubyonrails-ug@headflash.com http://mailman.headflash.com/listinfo/rubyonrails-ug