Bonjour,
Dans une page HTML je voudrai que lorsque l'utilisateur clique sur un bouton cel� envoie un mail automatiquement sans que ne s'affiche le message outlook.
J'ai essay� d'utilisation la fonction suivante :
Mais d�s la 1ere ligne IE (v7) se ferme.
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9
10
11
12 function AutoMail(sendto,subject,bodytxt,attach){ var theApp=new ActiveXObject("Outlook.Application"); var theNameSpace=theApp.GetNameSpace("MAPI").CurrentUser; var theMailItem=theApp.CreateItem(0); theMailItem.Recipients.Add(sendto); theMailItem.Subject=(subject); theMailItem.Body=(bodytxt); theMailItem.Attachments.Add(attach); theMailItem.Send; theNameSpace.Logoff; theApp=null; }
Avez vous une id�e ?
Merci d'avance.
Partager