Envoi mail outlook

DevDragon Messages postés 51 Date d'inscription mercredi 22 septembre 2004 Statut Membre Dernière intervention 10 mars 2008 - 5 déc. 2007 à 16:38
stagmec Messages postés 3 Date d'inscription mardi 16 décembre 2008 Statut Membre Dernière intervention 1 juillet 2009 - 1 juil. 2009 à 16:30
Hello tous,

Je un souci pas mal sioux pour ce qui aime:

Voici mon souci :

Je cherche a envoyer des mails via une application avec la dll outlook voici mon code :
<?xml:namespace prefix o ns "urn:schemas-microsoft-com:office:office" /??> 

            Dim olApp As Microsoft.Office.Interop.Outlook.Application

            Dim objNewMail As Microsoft.Office.Interop.Outlook.MailItem

 

            olApp = New Microsoft.Office.Interop.Outlook.Application

            objNewMail = olApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem)

 

            objNewMail.Subject = txtExp.Text & " : " & txtObjet.Text

            objNewMail.Body = rTxtCorps.Text

            objNewMail.Recipients.Add([mailto:nom@monEntreprise.fr nom@monEntreprise.fr])

            objNewMail.Send()

  

et voilà mon beau message d'erreur  au niveau de objNewMail.Recipients.Add([mailto:nom@monEntreprise.fr nom@monEntreprise.fr]):
Opération abandonnée (Exception de HRESULT : 0x80004004 (E_ABORT))

Si vous pourriez me donner un ptit coup de main ...

Merci d'avance

Youpitralalalalere

1 réponse

stagmec Messages postés 3 Date d'inscription mardi 16 décembre 2008 Statut Membre Dernière intervention 1 juillet 2009
1 juil. 2009 à 16:30
si t'a trouvé la reponce
merci de la dir car j'ai le mm blem
cordialement
0
Rejoignez-nous