Hi Guy's,
What am I doing wrong here ?
The script dossent return errors, but I don't recieve any mail.
I've cheked the syntax over and over, and I can't find it's problem.
If anyone has an idea, i'll be very thankful
ProgressBar1..MinValue = 0
ProgressBar1..MaxValue = Window1.Aantal_E_Mails
SessionName is string
serversmtp is string = "mail-out.pandora.be"
Counter is int = 0
ProgressBar1 = 0
FOR Counter = 0 TO Window1.Aantal_E_Mails
SessionName = Counter + "Name"
IF NOT EmailStartSMTPSession(SessionName,serversmtp) = True THEN
Error("Geen geldige SMTP server")
Close(Window2)
END
Email.Recipient= "ambiorex@innet.be"
Email.Sender = "Toto@Society.uk"
Email.Message = "Test Auto eMail"
Email.NbRecipient = 1
EmailSendMessage(SessionName)
EmailCloseSession(SessionName)
ProgressBar1 = ProgressBar1 + 1
END