Something bad in email sending ?
Bug #497152 reported by
Guillaume Bort
This bug affects 1 person
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
Check these points:
1. Call send() without setting the ContentType: NullPointerExce
Wrong. It should say that the template is not found
2. Call send() putting text/plain as ContentType. It tries to find the
methodName.txt template OK
3. Call send() putting text/plain;
tries to find the methodName.html template. Wrong. Maybe nobody
thought about using "charset=" in the contentType.
4. Call send() putting text/html as ContentType. It tries to find the
methodName.html template OK
5. Call send() with any other contentType it tries to find an html
template. Well, I have no problem with this.
Changed in play: | |
status: | New → In Progress |
Changed in play: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
In the 1.1 version I am planning to use the jakarta commons email library to have something a bit more consistent. Essential it will become send(email) instead of the long and error prone send(a,b, c, d, e, f, ... x, z y) methods. Anyone against it or has a better suggestion? (I will send the same proposal on the google group).