$parameters = @{
 From = '[email protected]'
 To = '[email protected]'
 Subject = 'Email Subject'
 Attachments =  @('C:\files\samplefile1.txt','C:\files\samplefile2.txt')
 BCC = '[email protected]'
 Body = 'Email body'
 BodyAsHTML = $False
 CC = '[email protected]'
 Credential = Get-Credential
 DeliveryNotificationOption = 'onSuccess'
 Encoding = 'UTF8'
 Port = '25'
 Priority = 'High'
 SmtpServer = 'smtp.com'
 UseSSL = $True
}

# Notice: Splatting requires @ instead of $ in front of variable name
Send-MailMessage @parameters