Salut !
Je souhaite envoyer un mail au format html par winsocks !
Mais la , lorsque j'envoie du code HTML , il n'est pas traduit ...
Comment faire svp ?
Merci
Salut !
Je souhaite envoyer un mail au format html par winsocks !
Mais la , lorsque j'envoie du code HTML , il n'est pas traduit ...
Comment faire svp ?
Merci
J'ai juste besoin de savoir comment specifier que mon mail est en format HTML ...
Ca y est , j'ai enfin trouve ...
je vous file code meme si il y avait que deux lignes a rajouter ...
Ca peut tjs servir :
Voila ... Bonne prog ...
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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59 Private Sub mailenvoyer_Click() Dim tmp As String Set evt = ws ws.Connect ad, 25 While ws.State <> sckConnected DoEvents Wend nextSend = False ws.SendData "HELO toto" & vbCrLf While nextSend = False DoEvents Wend nextSend = False ws.SendData "MAIL FROM:" & txtFrom.Text & vbCrLf While nextSend = False DoEvents Wend nextSend = False ws.SendData "RCPT TO:" & txtTo.Text & vbCrLf While nextSend = False DoEvents Wend nextSend = False ws.SendData "DATA" & vbCrLf While nextSend = False DoEvents Wend ws.SendData "To:" & txtTo.Text & vbCrLf ws.SendData "From:" & txtFrom.Text & vbCrLf ' ------------------------------------------------------------------------------- ' Il suffit de spécifier cela ... ' A la ligne d content-type , ne le separez pas du charset car cela ' ne marche pas ws.SendData "MIME-version: 1.0" & vbCrLf ws.SendData "Content-type: text/html; charset= iso-8859-1" & vbCrLf '-------------------------------------------------------------------------------- ws.SendData "Subject:" & txtSubject.Text & vbCrLf ws.SendData rtxtMail.Text & vbCrLf nextSend = False ws.SendData vbCrLf & "." & vbCrLf While nextSend = False DoEvents Wend nextSend = False ws.SendData "QUIT" & vbCrLf ' Fin de l'envoi While nextSend = False DoEvents Wend ws.Close End Sub
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager