Email Authentication

Aug 12, 2014 at 2:34 AM
Hello, Mr. Drouhin, I want to try your script with the email setting - but there doesn't seem to be any option for supplying the authentication. Will the script ask me for that the first time and store it somewhere (encrypted perhaps)?
Sep 19, 2014 at 10:01 AM
By default the email notification takes the current user. I use this cmdlet Send-MailMessage
Do you need to use another credential for email settings ?
Marked as answer by Luigilink on 12/16/2015 at 3:39 AM
Nov 15, 2014 at 7:28 PM
Hi, Mr. Luigilink, Sorry I took so long to answer; I didn't realize anyone had replied! The only way the current user's email credentials can be used is if you use exchange. But we use gmail here instead, so I need to specify our mail server's credentials.
Jun 30, 2016 at 11:21 AM
I have actived this script and I have enabled sending an email message with the log as attachment.
The mail body contains the same info as the log file.
Is there a possibilty to fille the mail body with a tekst which I write myself?



In the attachement the log file of the SPSwakeup of today.

With kind regards,
Koos van der Maarel
Technical Application Engineer
Jul 5, 2016 at 7:51 AM
I have changed the Script:

In Dutch language:
$MailBody = "Hoi, In de bijlage de log file van de SPSwakeup van vandaag."

This is working fine.