Code : Tout sélectionner
$NomFichierOriginal = "C:\Documents and Settings\Simon\Bureau\Doc.txt"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
func _ExpedMail()
; Déclaration paramètres mail.au3
$s_SmtpServer = "smtp.yopmail.com" ; address for the smtp-server to use - REQUIRED
$s_FromName = "Report" ; name from who the email was sent
$s_FromAddress = "jean@yopmail.com" ; address from where the mail should come
$s_ToAddress = "seminaire@yopmail.com" ; destination address of the email - REQUIRED
$s_CcAddress = "" ; address for cc - leave blank if not needed
$s_BccAddress = "" ; address for bcc - leave blank if not needed
$s_Username = "jean@yopmail.com" ; username for the account used from where the mail gets sent - Optional (Needed for eg GMail)
$s_Password = "" ; password for the account used from where the mail gets sent - Optional (Needed for eg GMail)
$IPPort = 25 ; port used for sending the mail
$ssl = 0 ; enables/disables secure socket layer sending - put to 1 if using httpS
$mail="Document"
$as_Body = "Autoit"
$s_AttachFiles =$NomFichierOriginal
$mail=_INetSmtpMailCom ($s_SmtpServer, $s_FromName, $s_FromAddress, $s_ToAddr
EndFunc



