Set objMail = CreateObject("CDO.Message")
objMail.Subject = "VotreObjet"
objMail.Sender = "E-Mail de l'expéditeur"
objMail.To = "E-Mail Destinataire"
objMail.TextBody = "Corps du message"
'objMail.addattachment "c:\chemin\nompiecejointe"
[COLOR=lime][B][COLOR=green]'Nom du serveur SMTP [/COLOR][/B]
[/COLOR]objMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "Nom serveur SMTP"
[COLOR=green][B]'Le user ID de votre compte[/B][/COLOR]
[COLOR=lime][/COLOR]objMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusername") = "Le User ID de votre compte"
[COLOR=green][B]'Le password de votre compte[/B][/COLOR]
[COLOR=lime][/COLOR]objMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "Le mot de passe"
[COLOR=green][B]'Port Server (habituellement 25)[/B][/COLOR]
[COLOR=lime][/COLOR]objMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'Type de l'authentification : NONE, Basic (Base64 encoded), NTLM
objMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic
'utliser sécurité SSL pour la connection
objMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = true
objMail.Send