Function StackMail
New Email Attachment
Create an Attachment for the Email
Configuration:
- Byte Content: (Optional) – The file content as raw bytes.
- File Content: (Optional) – The file content sourced from a request or a prepared file from storage.
- Hosted Content: (Optional) – The URL of the file to be attached.
- File Name: (Optional) – The name of the file.
- Content Type: (Optional) – The content type of the attachment. If empty, it will be inferred from the file name.
- Mail Provider: (Required) – Specifies the registered email provider to use.
Outputs:
Returns an EmailAttachment
instance, which can be added to an email request.