Skip to content

Commit

Permalink
Fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zio-mitch committed Oct 15, 2024
1 parent 2dc71c4 commit 64adfce
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,20 @@ $facade = new Facade(
);

// Creating a message
$message = new SmtpMessage('[email protected]', '[email protected]', 'Subject', 'Plain text body', '<p>HTML body</p>');
// Add attachments if needed
$message->addAttachment('/path/to/attachment.pdf');
$message = new SmtpMessage(
'4f41efd7-38ce-4d30-8a32-155a6ec8001b',
'[email protected]'),
'[email protected]',
'Test subject',
[new SmtpHeader('X-some-header', 'header value here'),],
'Plain text content',
'<html lang="en"><body>Html content</body></html>',
[
'some/accessible/path/01.pdf',
'some/accessible/path/test.pdf',
'some/accessible/path/some file.pdf',
]
);


// Sending multiple emails in parallel
Expand Down

0 comments on commit 64adfce

Please sign in to comment.