To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 12 / 12d2aa017b97ff487eca5cc334afe4f6ec1d0dc6.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (615 Bytes)
| 1 |
class NotifyMail < ActionMailer::Base |
|---|---|
| 2 |
|
| 3 |
helper :mail |
| 4 |
|
| 5 |
def signup(txt) |
| 6 |
body(:name => txt) |
| 7 |
end |
| 8 |
|
| 9 |
def multipart |
| 10 |
recipients 'some_address@email.com' |
| 11 |
subject 'multi part email' |
| 12 |
from "another_user@email.com" |
| 13 |
content_type 'multipart/alternative' |
| 14 |
|
| 15 |
part :content_type => "text/html", :body => render_message("multipart_html", {})
|
| 16 |
part "text/plain" do |p| |
| 17 |
p.body = render_message("multipart_plain", {})
|
| 18 |
end |
| 19 |
end |
| 20 |
|
| 21 |
def implicit_multipart |
| 22 |
recipients 'some_address@email.com' |
| 23 |
subject 'multi part email' |
| 24 |
from "another_user@email.com" |
| 25 |
end |
| 26 |
end |