Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Name

Send-JS7Mail

SYNOPSIS

Send Sends e-mail

SYNTAX

Send-JS7Mail [-Server] <String> [-Port] <Int32> [-From] <String> [-To] <String[]> [-Subject] <String> [-Body] <String> [[-Cc] <String[]>] [[-Bcc] <String[]>] [[-Attachments] <String[]>] [[-Credential] <PSCredential>] [[-Timeout] <Int32>] [-BodyAsHtml] [-UseSSL] [[-SSLProtocol] <String>] [-UseDefaultCredentials] [<CommonParameters>]

...

-Body <String>
The body of the e-mail. By default the body is plain text.
When using HTML e-mail consider to use using the -BodyAsHtml switch.

Required?true
Position?6
Default value
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

...

-Credential <PSCredential>
The credential including user name and password of the account that authenticates with the SMTP mail server.
This parameter hqs has to be specified for SMTP mail servers that require authentication.

A credential object can be created like this:
$mailCredential = New-Object System.Net.NetworkCredential( "info@sos-berlin.com", "secret" )

...

Timeout

-Timeout <Int32>
The timout timeout in milliseconds that JS7 will wait for the connection to the mail server to be established.

Default: 15000

...