Commit 01e7764
authored
fix: gmail 555 error when sending (#1496)
## What?
Fixed the SMTP "555 5.5.2 Syntax error" that occurred when sending
emails with CatchAll
enabled by formatting the bare email
## Why?
When CatchAll is enabled, the `From` field displays a formatted address
like
"`Name email@example.com`". This formatted value was being passed
directly to Gmail's SMTP
MAIL FROM command, which expects only the bare email address.
According to RFC 5321 (SMTP protocol), the MAIL FROM command must
contain only the
mailbox (email address), not a formatted display name. The display name
belongs in the
message headers (the From: header), which is separate from the SMTP
envelope.
Fixes #1449
Signed-off-by: drew <me@andrinoff.com>1 parent f9c5f76 commit 01e7764
2 files changed
Lines changed: 61 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
109 | 125 | | |
110 | 126 | | |
111 | 127 | | |
| |||
742 | 758 | | |
743 | 759 | | |
744 | 760 | | |
745 | | - | |
| 761 | + | |
746 | 762 | | |
747 | 763 | | |
748 | 764 | | |
| |||
954 | 970 | | |
955 | 971 | | |
956 | 972 | | |
957 | | - | |
| 973 | + | |
958 | 974 | | |
959 | 975 | | |
960 | 976 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
0 commit comments