# Class Opencart\System\Library\Mail

Class Mail

Located at system\library\mail.php

Methods
`public` | `__construct(string $adaptor = 'mail', array<string, mixed> $option = [])` Constructor Constructor | #
`public` | `setTo(array<string>|string $to): void` setTo setTo | #
`public` | `setFrom(string $from): void` setFrom setFrom | #
`public` | `setSender(string $sender): void` setSender setSender | #
`public` | `setReplyTo(string $reply_to): void` setReplyTo setReplyTo | #
`public` | `setSubject(string $subject): void` setSubject setSubject | #
`public` | `setText(string $text): void` setText setText | #
`public` | `setHtml(string $html): void` setHtml setHtml | #
`public` | `addAttachment(string $filename): void` addAttachment addAttachment | #
`public` | `send(): bool` Send Send | #

OpenCart API API documentation generated by ApiGen dev-master