Accueil > Forum > > > > Outlook Message : Un programme tente d'envoyer un message en votre nom .... Comment empecher ce message !
Outlook Message : Un programme tente d'envoyer un message en votre nom .... Comment empecher ce message !
mercredi 16 mai 2007 à 11:32:49 |
Outlook Message : Un programme tente d'envoyer un message en votre nom .... Comment empecher ce message !

GigaCool
|
Bonjour a tous , Quand on envoi un message automatiquement par Outlook on une fenêtre qui affiche le message suivant : Un programme tente d'envoyer du courrier en votre nom ! l'autorisez vous à poursuivre ? J'ai a cet effet trouvé sur la toile un logiciel appeler ClickYes qui clique Oui ( à notre place ) à chaque fois que ce message apparaît! Alors je me demande s'il ya pas un autre moyen de ne même pas faire apparaitre ce message ? Genre un code qui permette de contourner ce message ? Merci et bonne journée
|
|
mercredi 16 mai 2007 à 11:37:34 |
Re : Outlook Message : Un programme tente d'envoyer un message en votre nom .... Comment empecher ce message !

Exploreur
|
Salut, Il me semble que l'on ne peut pas contourner cette sécurité... A+ Exploreur
Linux a un noyau, Windows un pépin 
|
|
mercredi 16 mai 2007 à 11:59:15 |
Re : Outlook Message : Un programme tente d'envoyer un message en votre nom .... Comment empecher ce message !

Molenn
|
Réponse acceptée !
C'est effectivement impossible (déjà plusieurs posts sur ce forum en parlant). Tu n'as que deux options quand tu lances un message via Outlook en VBA :
- Soit ton code comporte un .send et dans ce cas, tu as obligatoirement ce message - Soit à la place tu colles un .display Le message n'est plus envoyé automatiquement, à la place, il ets affiché sur le poste de l'utilisateur et il est obligé de faire Envoyer le mail, mais dans ce cas, bien sûr, plus de message.
Molenn
|
|
mercredi 16 mai 2007 à 14:44:15 |
Re : Outlook Message : Un programme tente d'envoyer un message en votre nom .... Comment empecher ce message !

GigaCool
|
Merci pour vos lumières et bonne journée!
|
|
mercredi 16 mai 2007 à 16:06:00 |
Re : Outlook Message : Un programme tente d'envoyer un message en votre nom .... Comment empecher ce message !

chapaleufu
|
tsss tsss !! mais si c'est possible !!!
il existe au moins 3 possibilites pour s'affranchir des securites mises en place sur outlook: la premiere est d'utiliser l'outlook redemption developpe par dimitry streblechenko (une des 2 super pointures sur outlook avec sue mosher),
la 2eme est de recourrir a l'utilitaire "yesclick" (gratuit) qui va dire oui a la place de l'utilisateur quand le message d'outlook apparait (un peu dangereux car il dit oui a n'importe quoi)
la 3eme est d'utilser l'outils "mapilab" (gratuit aussi) et plus elabore, il indique a l'utilisateur quel dll essaie d'acceder a outlook et il a la possibilite d'accepter, de toujorus accepter ou de refuser.
pour moi la solution la plus satisfaisante est l'ulitisation de outlook redemption mais il n'est pas gratuite.
|
|
mercredi 16 mai 2007 à 16:21:39 |
Re : Outlook Message : Un programme tente d'envoyer un message en votre nom .... Comment empecher ce message !

Molenn
|
Ce n'est donc pas possible via VBA et donc OutLook lui-même. CQFD  Personnellement, j'ai tenté tout ce que je pouvais sur un fichier à utilisation professionnelle, dans ma boîte : Et bien, puisque j'ai le droit de ne rien installer et de n'utiliser que des produits "officiels" dûement licenciés, j'affirme qu'avec MS OutLook 2003, c'est impossible. Et je ne vois aucun code VBA qui soit capable de passer outre. Mais je ne demande pas mieux qu'on me prouve le contraire, avec de vraies instructions VBA (mieux même, ça m'arrangerait !)  Molenn
|
|
mercredi 16 mai 2007 à 16:38:41 |
Re : Outlook Message : Un programme tente d'envoyer un message en votre nom .... Comment empecher ce message !
|
jeudi 28 août 2008 à 17:08:09 |
Re : Outlook Message : Un programme tente d'envoyer un message en votre nom .... Comment empecher ce message !

hadji26
|
Moi j'suis preneur m'sieur! Effectivement ça me semble très intéressant. Merci pour le lien.
|
|
lundi 14 décembre 2009 à 12:06:04 |
Re : Outlook Message : Un programme tente d'envoyer un message en votre nom .... Comment empecher ce message !

aniahnorev
|
Essaye avec ce code que j'ai trouvé dans le net :
Premièrement :
- Ouvrir Outlook puis Outils/Macro/Visual Basic Editor
- Dans la palette Projet : double Cliquer sur Projet1/Microsoft Office Outlook/ThisOutlookSession
- Coller le code suivant :
Option Explicit
' Code: Send E-mail without Security Warnings
' OUTLOOK 2003 VBA CODE FOR 'ThisOutlookSession' MODULE
' (c) 2005 Wayne Phillips (http://www.everythingaccess.com)
' Written 07/05/2005
' Last updated v1.4 - 26/03/2008
'
' Please read the full tutorial here:
' http://www.everythingaccess.com/tutorials.asp?ID=Outlook-Send-E-mail-without-Security-Warning
'
' Please leave the copyright notices in place - Thank you.
Private Sub Application_Startup()
'IGNORE - This forces the VBA project to open and be accessible using automation
' at any point after startup
End Sub
' FnSendMailSafe
' --------------
' Simply sends an e-mail using Outlook/Simple MAPI.
' Calling this function by Automation will prevent the warnings
' 'A program is trying to send a mesage on your behalf...'
' Also features optional HTML message body and attachments by file path.
'
' The To/CC/BCC/Attachments function parameters can contain multiple items by seperating
' them by a semicolon. (e.g. for the strTo parameter, 'test@test.com; test2@test.com' is
' acceptable for sending to multiple recipients.
'
Public Function FnSendMailSafe(strTo As String, _
strCC As String, _
strBCC As String, _
strSubject As String, _
strMessageBody As String, _
Optional strAttachments As String) As Boolean
' (c) 2005 Wayne Phillips - Written 07/05/2005
' Last updated 26/03/2008 - Bugfix for empty recipient strings
' http://www.everythingaccess.com
'
' You are free to use this code within your application(s)
' as long as the copyright notice and this message remains intact.
On Error GoTo ErrorHandler:
Dim MAPISession As Outlook.NameSpace
Dim MAPIFolder As Outlook.MAPIFolder
Dim MAPIMailItem As Outlook.MailItem
Dim oRecipient As Outlook.Recipient
Dim TempArray() As String
Dim varArrayItem As Variant
Dim strEmailAddress As String
Dim strAttachmentPath As String
Dim blnSuccessful As Boolean
'Get the MAPI NameSpace object
Set MAPISession = Application.Session
If Not MAPISession Is Nothing Then
'Logon to the MAPI session
MAPISession.Logon , , True, False
'Create a pointer to the Outbox folder
Set MAPIFolder = MAPISession.GetDefaultFolder(olFolderOutbox)
If Not MAPIFolder Is Nothing Then
'Create a new mail item in the "Outbox" folder
Set MAPIMailItem = MAPIFolder.Items.Add(olMailItem)
If Not MAPIMailItem Is Nothing Then
With MAPIMailItem
'Create the recipients TO
TempArray = Split(strTo, ";")
For Each varArrayItem In TempArray
strEmailAddress = Trim(varArrayItem)
If Len(strEmailAddress) > 0 Then
Set oRecipient = .Recipients.Add(strEmailAddress)
oRecipient.Type = olTo
Set oRecipient = Nothing
End If
Next varArrayItem
'Create the recipients CC
TempArray = Split(strCC, ";")
For Each varArrayItem In TempArray
strEmailAddress = Trim(varArrayItem)
If Len(strEmailAddress) > 0 Then
Set oRecipient = .Recipients.Add(strEmailAddress)
oRecipient.Type = olCC
Set oRecipient = Nothing
End If
Next varArrayItem
'Create the recipients BCC
TempArray = Split(strBCC, ";")
For Each varArrayItem In TempArray
strEmailAddress = Trim(varArrayItem)
If Len(strEmailAddress) > 0 Then
Set oRecipient = .Recipients.Add(strEmailAddress)
oRecipient.Type = olBCC
Set oRecipient = Nothing
End If
Next varArrayItem
'Set the message SUBJECT
.Subject = strSubject
'Set the message BODY (HTML or plain text)
If StrComp(Left(strMessageBody, 6), "<HTML>", vbTextCompare) = 0 Then
.HTMLBody = strMessageBody
Else
.Body = strMessageBody
End If
'Add any specified attachments
TempArray = Split(strAttachments, ";")
For Each varArrayItem In TempArray
strAttachmentPath = Trim(varArrayItem)
If Len(strAttachmentPath) > 0 Then
.Attachments.Add strAttachmentPath
End If
Next varArrayItem
.Send 'No return value since the message will remain in the outbox if it fails to send
Set MAPIMailItem = Nothing
End With
End If
Set MAPIFolder = Nothing
End If
MAPISession.Logoff
End If
'If we got to here, then we shall assume everything went ok.
blnSuccessful = True
ExitRoutine:
Set MAPISession = Nothing
FnSendMailSafe = blnSuccessful
Exit Function
ErrorHandler:
MsgBox "An error has occured in the user defined Outlook VBA function FnSendMailSafe()" & vbCrLf & vbCrLf & _
"Error Number: " & CStr(Err.Number) & vbCrLf & _
"Error Description: " & Err.Description, vbApplicationModal + vbCritical
Resume ExitRoutine
End Function
- Et enrégistrer la modification
- Après copier le code ci-dessous dans votre application
Option Explicit
' ACCESS VBA MODULE: Send E-mail without Security Warning
' (c) 2005 Wayne Phillips (http://www.everythingaccess.com)
' Written 07/05/2005
' Last updated v1.3 - 11/11/2005
'
' Please read the full tutorial & code here:
' http://www.everythingaccess.com/tutorials.asp?ID=Outlook-Send-E-mail-without-Security-Warning
'
' Please leave the copyright notices in place - Thank you.
'This is a test function - replace the e-mail addresses with your own before executing!!
'(CC/BCC can be blank strings, attachments string is optional)
Sub FnTestSafeSendEmail()
Dim blnSuccessful As Boolean
Dim strHTML As String
strHTML = "<html>" & _
"<body>" & _
"My <b><i>HTML</i></b> message text!" & _
"</body>" & _
"</html>"
blnSuccessful = FnSafeSendEmail("myemailaddress@domain.com", _
"My Message Subject", _
strHTML)
'A more complex example...
'blnSuccessful = FnSafeSendEmail("myemailaddress@domain.com; secondrecipient@domain.com", _
"My Message Subject", _
strHTML, _
"C:\MyAttachmentFile1.txt; C:\MyAttachmentFile2.txt", _
"cc_recipient@domain.com", _
"bcc_recipient@domain.com")
If blnSuccessful Then
MsgBox "E-mail message sent successfully!"
Else
MsgBox "Failed to send e-mail!"
End If
End Sub
'This is the procedure that calls the exposed Outlook VBA function...
Public Function FnSafeSendEmail(strTo As String, _
strSubject As String, _
strMessageBody As String, _
Optional strAttachmentPaths As String = “”, _
Optional strCC As String = “”, _
Optional strBCC As String = “”) As Boolean
Dim objOutlook As Object ' Note: Must be late-binding.
Dim objNameSpace As Object
Dim objExplorer As Object
Dim blnSuccessful As Boolean
Dim blnNewInstance As Boolean
'Is an instance of Outlook already open that we can bind to?
On Error Resume Next
Set objOutlook = GetObject(, "Outlook.Application")
On Error GoTo 0
If objOutlook Is Nothing Then
'Outlook isn't already running - create a new instance...
Set objOutlook = CreateObject("Outlook.Application")
blnNewInstance = True
'We need to instantiate the Visual Basic environment... (messy)
Set objNameSpace = objOutlook.GetNamespace("MAPI")
Set objExplorer = objOutlook.Explorers.Add(objNameSpace.Folders(1), 0)
objExplorer.CommandBars.FindControl(, 1695).Execute
objExplorer.Close
Set objNameSpace = Nothing
Set objExplorer = Nothing
End If
blnSuccessful = objOutlook.FnSendMailSafe(strTo, strCC, strBCC, _
strSubject, strMessageBody, _
strAttachmentPaths)
If blnNewInstance = True Then objOutlook.Quit
Set objOutlook = Nothing
FnSafeSendEmail = blnSuccessful
End Function
- Appeller la function FnSafeSendEmail avec les parameter pour envoyer un mail
- Finalement activer la macro dans outlook
Aniah Norev
|
|
Cette discussion est classée dans : outlook, message, programme, envoyer, tente
Répondre à ce message
Sujets en rapport avec ce message
Un programme essaie d'envoyer un message en votre nom [ par dedebeg ]
Bonjour,J'utilise une base de données pour envoyer des mails via Microsoft Outlook. Ce dernier affiche pour chaque mail un message"Un programme essaie
Envoyer un message automatiquement [ par jlp65 ]
Bonjour !Je souhaite m'initier à la programmation vba pour outlook.Pour premier programme, je souhaiterais envoyer un message à monsieur X ayant pour
Message Autorisation Outlook [ par Arniboy ]
Bonjour à tous,Je cherche à envoyer automatiquement et périodiquement à partir d'un fichier Excel un mail d'alerte. Ma macro fonctionne très bien mais
Macro outlook qui permet d'envoyer automatiquement un message et de mettre un fanion de couleur rouge au message. [ par captalents ]
bonjourJe suis vraiment débutant, et j'ai besoin d'aide.j'aimerais faire une macro outlook qui permet d'aboutir a ce résultat:Lorsque je suis sur un m
Envoyer un fichier Excel avec un boutton [ par kamGE ]
Bonjour,je souhaite envoyer un fichier excel par mail avec un boutton en VB ca marhe avec le code suivant que j'ai yrouvé sur le net: Private Sub Comm
Envoyer un message avec Outlook 2000 à partir de VB ??? [ par FishMoon ]
J'ai repris le source sur le site ki permet de faire cette manip' trés simplement avec outlook express et une commande shell,je l'ai bêtement modifiée
Envoyer un message Outlook à partir d'une macro Excel [ par SanVan ]
Ma macro envoie le classeur Excel affiché en pièce jointe dans un message via la messagerie interne Exchange. Tout se passe bien. Seulement, avant cha
utilisation de outlook [ par tanomartial ]
bonjour,j'utilise le shell pour envoyer un message de façon automatique dans une application VB6. J'aimerai savoir comment envoyer un message sous for
Envoyer un message avec microsoft outlook [ par boumbo73 ]
Bonjour,Je fais appel à vos compétences car je voudrais dans mon application vb net je voudrais envoyer un mail. J'y arrive mais le problème c'est que
Message avertissement Outlook ( via access) [ par Gagou_c ]
Bonjour,J'ai developpé une application sous ACCESS qui permet d'envoyer des mails.Lors de l'envoi du ou des mails, le message suivant apparait :"Un pr
Livres en rapport
|
Derniers Blogs
PAS D'INTELLITRACE SUR MON SITE WEB DANS IIS !PAS D'INTELLITRACE SUR MON SITE WEB DANS IIS ! par Etienne Margraff
J'ai récemment eu un problème pour obtenir l'intelliTrace sur un site web dans IIS. Il n'y avait pas de message d'erreur, rien dans le journal d'évènement Windows, et après 3 appels à une voyante, 2 visites chez un marabou, j'ai failli me résign...
Cliquez pour lire la suite de l'article par Etienne Margraff OFFICE 365 - SHAREPOINT ONLINE, QUELQUES LIMITATIONSOFFICE 365 - SHAREPOINT ONLINE, QUELQUES LIMITATIONS par junarnoalg
De nombreuses entreprises font le choix de SharePoint Online, service fourni au travers de l'offre de Microsoft Office 365. S'il est vrai que ce choix apporte un grand nombre d'avantages; rapidité de mise en œuvre, disponibilité, large couvertu...
Cliquez pour lire la suite de l'article par junarnoalg PRéSENTATION DES API REST DE WINDOWS AZURE : LISTER LES COMPTES DE STORAGEPRéSENTATION DES API REST DE WINDOWS AZURE : LISTER LES COMPTES DE STORAGE par richardc
http://www.c2idotnet.com/articles/presentation-des-api-rest-de-windows-azure-lister-les-comptes-de-storage
Désolé pour "toto", mais c2i existait avant blogs.developpeur.org et c'est mon site "officiel" ;-) ...
Cliquez pour lire la suite de l'article par richardc [HTML5] SLIDES ET DéMOS : AUTOUR DU W3C , NOUVEAUX STANDARDS ET WEB MOBILE (LILLE)[HTML5] SLIDES ET DéMOS : AUTOUR DU W3C , NOUVEAUX STANDARDS ET WEB MOBILE (LILLE) par Gio
Très bonne après-midi passée lors cette conférence avec le W3C, organisée par L' Inria sur les nouveaux standards, ce Mardi 14 Février, on sent vraiment que çà bosse au W3C, et l'avenir est très très prometteur pour le HTML5, notamment ...
Cliquez pour lire la suite de l'article par Gio
Forum
FONCTION EXCEL VBAFONCTION EXCEL VBA par samanta26
Cliquez pour lire la suite par samanta26
Logiciels
DocTranslate (V3.1.0.0)DOCTRANSLATE (V3.1.0.0)DocTranslate est un traducteur de document Microsoft Word, PowerPoint et Excel. Il permet d'autom... Cliquez pour télécharger DocTranslate Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System
|