-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,6 +100,18 @@ There are more examples in the [examples](examples) folder ✨ | |
> [!NOTE] | ||
> 🚧 **The SDK is not stable yet.** This API might change as more features are added. Please watch the repo for the changes in the [CHANGELOG](CHANGELOG.md). | ||
## 🏗 Debugging | ||
|
||
You can generate _test API keys_ by activating the **Test Mode** in your dashboard. By using these keys, you'll be able to view your fully rendered emails without actually sending them. | ||
|
||
When you use a test API key in your SDK, the following output will appear in your logs when you try to send an email: | ||
|
||
```log | ||
Templateless [TEST MODE]: Emailed [email protected], preview: https://tmpl.sh/ATMxHLX4r9aE | ||
``` | ||
|
||
The preview link will display the email, but you must be logged in to Templateless to view it. | ||
|
||
## 🔳 Components | ||
|
||
Emails are crafted programmatically by making function calls. There's no dealing with HTML or drag-and-drop builders. | ||
|
@@ -251,7 +263,7 @@ If you'd like your recipients to be able to read the email in a browser, you can | |
|
||
You can optionally provide the text for the link. If none is provided, default is used: "View in browser" | ||
|
||
**This will make the email public to anyone that has access to the link.** | ||
**Anyone who knows the link will be able to see the email.** | ||
|
||
```php | ||
Content::builder() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters