Add the possibility to choose the sent type mime
This implementation may be improved !