Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Sub SendMailWithDefaultClient(ByVal sDeliveredTo As String, ByVal sSubject As String, sBody As String)
' remplace les VBCRLF par son codage, valide uniquement pour le format TXT
sBody = Replace(sBody, vbCrLf, "%0D%0A")
' envoie
Call ShellExecute (0&, "Open", "mailto:" & sDeliveredTo & "?&Subject=" & sSubject & "&body=" & sBody, vbNullString, vbNullString, vbNormalFocus)
End Sub