* Set from email
(from)
| 119 | * Set from email |
| 120 | */ |
| 121 | setFrom(from) { |
| 122 | if (this._checkProperty('from', from, [this._checkUndefined])) { |
| 123 | if (typeof from !== 'string' && typeof from.email !== 'string') { |
| 124 | throw new Error('String or address object expected for `from`'); |
| 125 | } |
| 126 | this.from = EmailAddress.create(from); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * Set reply to |
no test coverage detected