Bonjour,

Suite a l'utilisation par un client de 2 FAI selon son lieu de travail (ORANGE et FREE) j'ai bien évidement un problème d'envoi de mail . J'ai voulu contourné cette difficulté (changer les paramètres selon le lieu où il est) en utilisant le smtp de laposte.net port 465 , mais là , je bute

dans mon dfm

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
object IdSMTP1: TIdSMTP
    OnStatus = IdSMTP1Status
    IOHandler = IdSSLIOHandlerSocketOpenSSL1
    Host = 'smtp.laposte.net'
    Password = '***'
    Port = 465
    SASLMechanisms = <>
    UseTLS = utUseExplicitTLS
    Username = '****'
  end
  object IdSSLIOHandlerSocketOpenSSL1: TIdSSLIOHandlerSocketOpenSSL
    Destination = 'smtp.laposte.net:465'
    Host = 'smtp.laposte.net'
    MaxLineAction = maException
    Port = 465
    SSLOptions.Method = sslvTLSv1
    SSLOptions.Mode = sslmUnassigned
    SSLOptions.VerifyMode = []
    SSLOptions.VerifyDepth = 0
    OnStatusInfo = IdSSLIOHandlerSocketOpenSSL1StatusInfo
  end
j'ai essayé avec Gmail avec succès grace à Marco Cantu

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
object IdSMTP1: TIdSMTP
    OnStatus = IdSMTP1Status
    IOHandler = IdSSLIOHandlerSocketOpenSSL1
    Host = 'smtp.gmail.com'
    Password = '***'
    Port = 587
    SASLMechanisms = <>
    UseTLS = utUseExplicitTLS
    Username = '****'
  end
  object IdSSLIOHandlerSocketOpenSSL1: TIdSSLIOHandlerSocketOpenSSL
    Destination = 'smtp.gmail.com:587'
    Host = 'smtp.gmail.com'
    MaxLineAction = maException
    Port = 587
    SSLOptions.Method = sslvTLSv1
    SSLOptions.Mode = sslmUnassigned
    SSLOptions.VerifyMode = []
    SSLOptions.VerifyDepth = 0
    OnStatusInfo = IdSSLIOHandlerSocketOpenSSL1StatusInfo
  end
Il doit donc me manquer quelque chose
Quelqu'un a t'il réussi a utiliser Indy+Smtp.laposte.net:465 ? (nb. je reussi a envoyer des mail via ce Mozilla et ce Smtp , c'est donc qu'une question de propriétés du composant)
Quelles pistes me proposez-vous ?