[Patch] New functions for libs/Mail.java and mvc/Mailer.java to set character-set and etc.
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
play framework | Status tracked in 1.0 | |||||
1.0 |
Fix Released
|
Undecided
|
Nicolas Leroux | |||
1.1 |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
I made a patch for libs/Mail.java and mvc/Mailer.java to enable to,
1. set subject character-set
2. set body character-set
3. set personal, so it can be like "foo <email address hidden>" and not just "<email address hidden>".
4. add header, like "Content-
The reason why I started to make these, because some of the Japanese cell phone doesn't support UTF-8.
So, after I modified the libs/Mail.java and mvc/Mailer.java, I can write like this,
public class Mails extends Mailer {
public static void commented(Post post) {
}
}
I hope that this proposal is useful.
Changed in play: | |
assignee: | nobody → Nicolas (nicolas-lunatech) |
status: | New → Triaged |
Changed in play: | |
status: | Fix Committed → Incomplete |
Changed in play: | |
status: | Incomplete → Fix Committed |
That is useful I think, thanks. I have a question. Why would the body charset be different from the subject charset?
The main sendmail method has too much parameters I believe, so it might be better to use a bean to construct the email, but that is another issue.