@@ -16,7 +16,7 @@ public function __construct(
1616
1717### Parameters
1818
19- - ** ` $to_email ` ** (string, required): Recipient's email address
19+ - ** ` $to_email ` ** (string, required): Recipient's email address(es). Can be a single email or multiple comma-separated emails.
2020- ** ` $subject ` ** (string, required): Email subject line
2121- ** ` $body ` ** (string, required): Email body content (HTML or plain text)
2222- ** ` $headers ` ** (array, optional): Email headers (e.g., content type, reply-to)
@@ -65,6 +65,29 @@ $email = new Email(
6565shepherd()->dispatch( $email );
6666```
6767
68+ ### Email to Multiple Recipients
69+
70+ ``` php
71+ // Send to multiple recipients
72+ $email = new Email(
73+ 'user1@example.com, user2@example.com, admin@example.com',
74+ 'Team Update',
75+ 'Important update for all team members.'
76+ );
77+
78+ shepherd()->dispatch( $email );
79+
80+ // With proper spacing (whitespace is automatically handled)
81+ $email = new Email(
82+ 'user1@example.com,user2@example.com, user3@example.com',
83+ 'Newsletter',
84+ '<h1 >Weekly Newsletter</h1 ><p >Here are this week\'s updates...</p >',
85+ [ 'Content-Type: text/html; charset=UTF-8' ]
86+ );
87+
88+ shepherd()->dispatch( $email );
89+ ```
90+
6891### Email with Attachments
6992
7093``` php
0 commit comments