J'ai un problème avec la bibliothèque mail.
En effet quand j'essai d'envoyer un mail avec le code ci dessous :
Code : Tout sélectionner
;
InitNetwork()
If CreateMail(0, "toto@toto.com", "Hello !")
SetMailBody(0, "Hello !" + #CRLF$ +
"This is a multi-" + #CRLF$ +
"line mail !")
AddMailAttachment(0, "PDF" , "C:\Users\private\Desktop\referentiel.pdf")
; Change the recipients to real one
;
AddMailRecipient(0, "xxxxxxxx@free.fr", #PB_Mail_To)
; AddMailRecipient(0, "test_cc@yourdomain.com", #PB_Mail_Cc)
; Set the SMTP server to use
;
Result = SendMail(0, "smtp.free.fr", 25, 1)
Repeat
Progress = MailProgress(0)
Delay(300)
Until Progress = #PB_Mail_Finished Or Progress = #PB_Mail_Error
Debug FormatDate("%dd/%mm/%yyyy", Date())
Debug FormatDate("%hh:%ii:%ss", Date())
If Progress = #PB_Mail_Finished
MessageRequester("Information", "Mail correctly sent !")
Else
MessageRequester("Error", "Can't sent the mail !")
EndIf
EndIf

Mais je reçois bien le mail...

Pourriez vous m'aider à résoudre ce problème ?
Best regards,
Atlante