Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

script mailto avec Windows 7, IE8 et Outlook

Featured Replies

Posté(e)

Bonjour à tous, voilà mon problème :

j'ai un fichier script (mail.js) remplit dynamiquement avec des "mailto" :

window.parent.location.href="mailto:test1@test1.com?subject=Validation test1&body= test1"; 
window.parent.location.href="mailto:test2@test2.com?subject=Validation test2&body= test2"; 
window.parent.location.href="mailto:test3@test3.com?subject=Validation test3&body= test3"; 

Je fait appel à ce script en ajax (grâce à JQuery) dans mon fichier mail.html :

$.ajax({
   type: "GET",
   url: "mail.js",
   cache: false,
   dataType: "script",
   success: function(msg){
       window.location = window.location;
   }

});

Sous windows XP j'ai bien mes trois fenêtres Outlook pour mes trois mail qui s'affiche, mais le problème, c'est que sous Windows seven je n'ai que la première fenêtre d'envoi de mail qui s'affiche.

Et le souçi c'est que l'entreprise où je bosse est en train de passer tout ses PC sous W7, ce qui pose problème ^^.

Quelqu'un aurait une idée ?

Merci d'avance !

Posté(e)

Sans avoir testé, ce que j'essayerais :

- Définir la location de la fenêtre actuelle (pas parente)

- Si ça ne marche pas essayer d'utiliser la fonction window.open pour ouvrir une popup pointant vers le mail

Posté(e)
  • Auteur

Salut !

J'ai donc essayé avec location.href : même résultat.

Par contre avec

window.open("mailto:test1@test.com?subject=Validation test&body= test");

ça fonctionne, le problème c'est que sa ouvre autant de fenetre IE que de mail :(

J'ai donc essayé ça :

win = window.open("mailto:test1@test.com?subject=Validation test&body= test");if (win && win.open &&!win.closed) win.close();

mais sans résultat.

Sa fonctionne toujours nikel sous IE7/WinXP mais sous IE8/Win7 les fenêtres IE ne se referment pas.

D'autres idées ?

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.