shumi007
Messages postés24Date d'inscriptionvendredi 29 juin 2007StatutMembreDernière intervention 9 mai 2010
-
23 nov. 2007 à 13:10
PCPT
Messages postés13272Date d'inscriptionlundi 13 décembre 2004StatutMembreDernière intervention 3 février 2018
-
24 nov. 2007 à 10:32
bonjour a tous
j'ai besoin daide
voila j'aimerais savoir ou avoir le code permettant d'introduire son serveur smtp de son choix et le mot de passe avant de pouvoir envoyer un mail
voici le code d'envoi normal
Option Explicit
Private Sub Form_Load()
Me.OsenXPForm1.Init Me
cboPriority.ListIndex = 2
End Sub
' SendMail
Private Sub cmdSend_Click()
lstInfo.Clear
If MyWinsock1.SendMail(smtpserver, txtFrom, txtTo, txtSubject, txtMessage, cboPriority.ListIndex + 1, , txtAttach, txtCC, txtBCC) Then
MsgBoxGT "Message successfull sent.", vbInformation, "Success", 3
Else
MsgBoxGT "Cannot sent message.", vbCritical, "Fail", 3
End If
End Sub
' Trace sendmail status ...
Private Sub MyWinsock1_SendMailInfo(Info As String)
PCPT
Messages postés13272Date d'inscriptionlundi 13 décembre 2004StatutMembreDernière intervention 3 février 201847 24 nov. 2007 à 10:32
salut,
renseigne-toi avec la documentation du contrôle MyWinsock qui doit être fournie
(quoi que de mémoire tu avais demandé il y a peu de faire ce contrôle puisqu'il n'existait pas? ^^)
<hr size="2" width="100%" />Prenez un instant pour répondre à [infomsg_SONDAGE-POP3-POUR-CS_769706.aspx ce sondage] svp