PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Sending emails through MS Exchange Server
Sending emails through MS Exchange Server
Débuté par Antonino, 09 mai 2019 17:27 - 4 réponses
Posté le 09 mai 2019 - 17:27
Hi Gents,

I was looking inside the help for an answer but with no luck. Is there a way to configure an Exchange server connection in Windev and use this connection to send emails?

Thanks for your time.


BR
Posté le 10 mai 2019 - 09:19
You can send the Mail with SMTP over Exchange.
Posté le 10 mai 2019 - 10:24
Hi Markus,

thanks for your care and answer. Can you give me more details on this? An example would be appreciated :)

BR
Antonino
Posté le 13 mai 2019 - 10:53
mymessage is Email
mymessage..Sender = "sender@mailadress.com"
Add(mymessage..Recipient, "recipient@mailadress.com")
mymessage..Subject = "Subject Text"
mymessage..Message = "Mailtext"
mysession is emailSMTPSession
mysession..ServerAddress = "Exchange Server"
mysession..Port = 587
mysession..Name = "Exchange User"
mysession..Password = "Exchange Password"
EmailStartSession(mysession)
EmailSendMessage(mysession,mymessage)
Posté le 13 mai 2019 - 17:07
Thanks for your example Markus. I am trying to use this but still getting errors :(