Skip to content

New GGmailSmtpMsaObj

Spencer Varney edited this page Dec 14, 2016 · 1 revision

New-GGmailSmtpMsaObj

SYNOPSIS

Creates a new Gmail API SmtpMsa object.

SYNTAX

New-GGmailSmtpMsaObj [[-Host] <String>] [[-Password] <String>] [[-Port] <Int32>] [[-SecurityMode] <String>]
 [[-Username] <String>] [-WhatIf] [-Confirm]

DESCRIPTION

This provides a Cmdlet-Based approach to creating a SmtpMsa object which may be required as a parameter for some other Cmdlets in the Gmail API category.

You could alternately create this object by calling New-Object -TypeName Google.Apis.Gmail.v1.Data.SmtpMsa

EXAMPLES

---------- EXAMPLE 1 ----------

PS C:\>New-GGmailSmtpMsaObj

This automatically generated example serves to show the bare minimum required to call this Cmdlet.

Additional examples may be added, viewed and edited by users on the community wiki at the URL found in the related links.

PARAMETERS

-Host

The hostname of the SMTP service. Required.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 0
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Password

The password that will be used for authentication with the SMTP service. This is a write-only field that can be specified in requests to create or update SendAs settings; it is never populated in responses.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 1
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Port

The port of the SMTP service. Required.

Type: Int32
Parameter Sets: (All)
Aliases: 

Required: False
Position: 2
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-SecurityMode

The protocol that will be used to secure communication with the SMTP service. Required.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 3
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Username

The username that will be used for authentication with the SMTP service. This is a write-only field that can be specified in requests to create or update SendAs settings; it is never populated in responses.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 4
Default value: 
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

INPUTS

System.String

The hostname of the SMTP service. Required.

System.String

The password that will be used for authentication with the SMTP service. This is a write-only field that can be specified in requests to create or update SendAs settings; it is never populated in responses.

System.Int32

The port of the SMTP service. Required.

System.String

The protocol that will be used to secure communication with the SMTP service. Required.

System.String

The username that will be used for authentication with the SMTP service. This is a write-only field that can be specified in requests to create or update SendAs settings; it is never populated in responses.

OUTPUTS

Google.Apis.Gmail.v1.Data.SmtpMsa

NOTES

Part of the gShell Project, relating to the Google Gmail API; see Related Links or use the -Online parameter.

RELATED LINKS

[Wiki page for this Cmdlet]

[Getting started with gShell]

Clone this wiki locally