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
Copy file name to clipboardExpand all lines: README.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,22 @@ class ExampleNotification extends Notification
99
99
100
100
💡 Unless you set it explicitly, the **From** address will be set to `config('mail.from.address')` and the **To** value will be what returns from `$notifiable->routeNotificationFor('mail');`
101
101
102
+
### Enabling Sandbox Mode
103
+
104
+
To enable sandbox mode you will need to chain on the `enableSandboxMode()` to the message object.
105
+
106
+
Example:
107
+
108
+
```php
109
+
return (new SendGridMessage('Your SendGrid template ID'))
110
+
->enableSandboxMode()
111
+
->payload([
112
+
"template_var_1" => "template_value_1"
113
+
]);
114
+
```
115
+
116
+
When making a request with sandbox mode enabled, Sendgrid will validate the form, type, and shape of your request. No email will be sent. You can read more about the sandbox mode [here](https://docs.sendgrid.com/for-developers/sending-email/sandbox-mode).
117
+
102
118
## Changelog
103
119
104
120
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
@@ -120,7 +136,7 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
0 commit comments