|
8 | 8 | described_class.new(
|
9 | 9 | from: from,
|
10 | 10 | to: to,
|
| 11 | + reply_to: reply_to, |
11 | 12 | cc: cc,
|
12 | 13 | bcc: bcc,
|
13 | 14 | attachments: attachments,
|
|
20 | 21 |
|
21 | 22 | let(:from) { nil }
|
22 | 23 | let(:to) { [] }
|
| 24 | + let(:reply_to) { nil } |
23 | 25 | let(:cc) { [] }
|
24 | 26 | let(:bcc) { [] }
|
25 | 27 | let(:attachments) { [] }
|
|
43 | 45 | context 'when all values set' do
|
44 | 46 | let(:from) { { email: '[email protected]', name: 'Mailtrap User' } }
|
45 | 47 | let(:to) { [{ email: '[email protected]' }, { email: '[email protected]', name: 'To Two' }] }
|
| 48 | + let(:reply_to) { { email: '[email protected]' } } |
46 | 49 | let(:cc) { [{ email: '[email protected]' }] }
|
47 | 50 | let(:bcc) { [{ email: '[email protected]' }] }
|
48 | 51 | let(:html) { '<div>Test HTML</div>' }
|
|
64 | 67 | {
|
65 | 68 | 'from' => { email: '[email protected]', name: 'Mailtrap User' },
|
66 | 69 | 'to' => [{ email: '[email protected]' }, { email: '[email protected]', name: 'To Two' }],
|
| 70 | + 'reply_to' => { email: '[email protected]' }, |
67 | 71 | 'cc' => [{ email: '[email protected]' }],
|
68 | 72 | 'bcc' => [{ email: '[email protected]' }],
|
69 | 73 | 'headers' => { 'Category-Header' => 'some_category' },
|
|
113 | 117 |
|
114 | 118 | let(:from) { { email: '[email protected]', name: 'Mailtrap User' } }
|
115 | 119 | let(:to) { [{ email: '[email protected]' }, { email: '[email protected]', name: 'To Two' }] }
|
| 120 | + let(:reply_to) { { email: '[email protected]', name: 'Reply To' } } |
116 | 121 | let(:cc) { [{ email: '[email protected]' }] }
|
117 | 122 | let(:bcc) { [{ email: '[email protected]' }] }
|
118 | 123 | let(:attachments) { [{ content: StringIO.new('hello world'), filename: 'attachment.txt' }] }
|
|
123 | 128 | '{' \
|
124 | 129 | '"from":{"email":"[email protected]","name":"Mailtrap User"},' \
|
125 | 130 | '"to":[{"email":"[email protected]"},{"email":"[email protected]","name":"To Two"}],' \
|
| 131 | + '"reply_to":{"email":"[email protected]","name":"Reply To"},' \ |
126 | 132 | '"cc":[{"email":"[email protected]"}],' \
|
127 | 133 | '"bcc":[{"email":"[email protected]"}],' \
|
128 | 134 | '"attachments":[{"content":"aGVsbG8gd29ybGQ=","filename":"attachment.txt"}],' \
|
|
0 commit comments