You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This example sends an email to [email protected]|Recipient 1 Name and [email protected]|Recipient 2 Name using an HTML formatted email body
47
48
48
49
.EXAMPLE
49
-
Send-SendGridEmail -To "[email protected]","[email protected]" -ToName "Recipient1 Name","Recipient 2 Name" -FromAddress "advisor360@vinebrookmsp.com" -FromName "Test Email from Advisor360" -Subject "Test Email" -Body "Hey this is a test email thank you!" -Attachment "C:\Temp\File1.txt","C:\Temp\File2.txt" -APIKey $APIKey
50
-
# This example sends an email to [email protected]|Recipient 1 Name and [email protected]|Recipient 2 Name from [email protected]|Test Email from Advisor360 using a Text formatted email body and incldues the 2 file attachments
50
+
Send-SendGridEmail -To "[email protected]","[email protected]" -ToName "Recipient1 Name","Recipient 2 Name" -FromAddress "sender@osbornepro.com" -FromName "Rob Osborne" -Subject "Test Email" -Body "Hey this is a test email thank you!" -Attachment "C:\Temp\File1.txt","C:\Temp\File2.txt" -APIKey $APIKey
51
+
# This example sends an email to [email protected]|Recipient 1 Name and [email protected]|Recipient 2 Name using a Text formatted email body and incldues the 2 file attachments
51
52
52
53
.EXAMPLE
53
-
Send-SendGridEmail -To "[email protected]","[email protected]" -ToName "Recipient1 Name","Recipient 2 Name" -FromAddress "[email protected]" -FromName "Test Email from Advisor360" -Subject "Test Email" -HTMLBody "<br>Hey,<br> <br>This is a test email. <br><br>Thank you!" -APIKey $APIKey -Attachment "C:\Temp\File1.txt","C:\Temp\File2.txt"
54
-
# This example sends an email to [email protected]|Recipient 1 Name and [email protected]|Recipient 2 Name from [email protected]|Test Email from Advisor360 using an HTML formatted email body and incldues the 2 file attachments
# This example sends an email to [email protected]|Recipient 1 Name and [email protected]|Recipient 2 Name using an HTML formatted email body and incldues the 2 file attachments
HelpMessage="Enter the FROM name the email will be sent from `nEXAMPLE: Vinebrook Technology ")] # End Parameter
115
115
[String]$FromName,
116
116
117
117
[Parameter(
118
118
Position=4,
119
119
Mandatory=$True,
120
-
ValueFromPipeline=$False,
121
120
HelpMessage="Enter a Subject for your email message `nEXAMPLE: Meeting Thursday ")] # End Parameter
122
121
[ValidateNotNullOrEmpty()]
123
122
[String]$Subject,
@@ -126,49 +125,43 @@ param (
126
125
ParameterSetName="Text",
127
126
Position=5,
128
127
Mandatory=$True,
129
-
ValueFromPipeline=$False,
130
128
HelpMessage="Enter a message to place in the body of your email `nEXAMPLE: Hi John, I look forward to our meeting ")] # End Parameter
131
129
[String]$Body,
132
130
133
131
[Parameter(
134
132
ParameterSetName="HTML",
135
133
Position=5,
136
134
Mandatory=$True,
137
-
ValueFromPipeline=$False,
138
135
HelpMessage="Enter an HTML written message to place in the body of your email `nEXAMPLE: <br>Hi John,<br><br> I look forward to our meeting<br><br> Thanks ")] # End Parameter
139
136
[String]$HTMLBody,
140
137
141
138
[Parameter(
142
139
Position=6,
143
140
Mandatory=$False,
144
-
ValueFromPipeline=$False,
145
141
HelpMessage="Enter the absolute path to a file you to attach to your email send. `nEXAMPLE: C:\temp\file.txt")] # End Parameter
146
142
[ValidateScript({Test-Path-Path $_})]
147
143
[String[]]$Attachment,
148
144
149
145
[Parameter(
150
146
Position=7,
151
-
Mandatory=$True,
152
-
ValueFromPipeline=$False,
147
+
Mandatory=$False,
153
148
HelpMessage="Enter your SendGrid API key `nEXAMPLE: SG.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ")] # End Parameter
0 commit comments