Send-SMIMEEmail Cmdlet

Parameters   Output Objects   Configuration Settings  

The Send-SMIMEEmail component is used to send Signed and Encrypted Internet mail using the SMTP protocol (the Internet mail standard).

Syntax

Send-SMIMEEmail [parameters]

Remarks

This cmdlet is the SMIME enabled equivalent of SENDEMAIL. In addition to implementing a standard SMTP client as specified in RFC 821, the cmdlet can sign and/or encrypt messages in a PKCS envelope.

To send a message, set the Server, To, Subject, From, and Message parameters.

The CertStoreType, CertStore, CertPassword, and CertSubject parameters specify the signing certificate.

The RecipientCertStoreType, RecipientCertStore RecipientCertPassword, and RecipientCertSubject parameters specify the encryption certificate.

Additional recipients can be set with the CC and BCC parameters. To specify multiple recipients, in the To, CC, and BCC parameters, simply specify the destination email addresses separated by commas.

One or more attachments can be added by setting the Attachment parameter. HTML Messages may be sent by setting the MessageHTML parameter.

The CertStoreType, CertStore, CertPassword, and CertSubject parameters specify the decryption certificate.

The SignerCertStoreType, SignerCertStore SignerCertPassword, and SignerCertSubject parameters specify the recipient's public certificate used for signature verification.


#Decrypt a message
Get-SMIMEIMAP -Server mailserver -User test -Password test -view 123 -SMIME Decrypt -CertStore c:\mine.pfx -CertStoreType PFXFile -CertPassword test -CertSubject *

#Verify the signature of a message
Get-SMIMEIMAP -Server mailserver -User test -Password test -view 124 -SMIME Verify -SignerCertStoreType PublicKeyFile -SignerCertStore c:\sender.public.cer -SignerCertSubject *

#Decrypt and Verify the signature
Get-SMIMEIMAP -Server mailserver -User test -Password test -view 125 -SMIME DecryptAndVerify -CertStore c:\mine.pfx -CertStoreType pfxfile -CertPassword test -CertSubject * -SignerCertStore c:\sender.public.cer -SignerCertSubject * -SignerCertStoreType PublicKeyFile

Connection Handling

This cmdlet supports persistent connections through the Connection parameter. To establish a new SMIMEEmail connection, use the Connect-SMIMEEmail cmdlet. To close the connection, use the Disconnect-SMIMEEmail cmdlet.

Parameter List


The following is the full list of the parameters of the cmdlet with short descriptions. Click on the links for further details.

ConnectionAn already established connection.
LogFileThe location of a file to which debug information is written.
AttachmentThe path to any files which are to be attached to the message.
BCCA comma separated list of addresses for blind carbon copies (optional).
CCA comma separated list of addresses for carbon copies (optional).
CertPasswordThe password to the certificate store.
CertStoreThe name of the certificate store for the signing certificate.
CertStoreTypeThe type of certificate store for the decryption certificate.
CertSubjectThe subject of the certificate used for decryption.
ConfigSpecifies one or more configuration settings.
CredentialThe PSCredential object to use for user/password authentication.
FirewallHostName or IP address of firewall.
FirewallPasswordA password if authentication is to be used when connecting through the firewall.
FirewallPortThe port of the firewall to which to connect.
FirewallTypeDetermines the type of firewall to connect through.
FirewallUserA user name if authentication is to be used connecting through a firewall.
ForceForces the component to accept the default behavior instead of querying the user.
FromThe email address of the sender (required).
ImportanceImportance of the mail message.
LocalIPThe IP address of the local interface to use.
LogFileThe location of a file to which debug information is written.
MessageThe full text of the message to be sent (without headers).
MessageHTMLThe full text of the HTML message to be sent (without headers).
MessageIdSets the message Id used by the component.
PasswordThe password to use for authentication.
PortThe TCP port in the remote host to which to connect.
RecipientCertPasswordThe password to the certificate store.
RecipientCertStoreThe name of the certificate store for the encryption certificate.
RecipientCertStoreTypeThe type of certificate store for the signature verification certificate. In most cases PublicKeyFile is used.
RecipientCertSubjectThe subject of the recipient's public certificate used for encryption.
ReplyToThe email address to which replies should be sent.
ServerThe address of the Server.
SMIMESpecifies the protection level on the outgoing messages.
SubjectThe subject of the email.
TimeoutThe maximum time allowed for the operation.
ToA comma separated list of addresses for destinations.
UserThe username to use for authentication.

Output Objects


The following is the full list of the output objects returned by the cmdlet with short descriptions. Click on the links for further details.

Configuration Settings


The following is a list of configuration settings for the cmdlet with short descriptions. Click on the links for further details.

BuildInfoInformation about the product's build.
CodePageThe system code page used for Unicode to Multibyte translations.
LicenseInfoInformation about the current license.
UseInternalSecurityAPITells the component whether or not to use the system security libraries or an internal implementation.

Copyright (c) 2022 /n software inc. - All rights reserved.
NetCmdlets 2020 - Version 20.0 [Build 8319]