Method
_sent_failed
(
self,
failure: Failure,
to: list[str],
cc: list[str],
subject: str,
nattachs: int,
)
Source from the content-addressed store, hash-verified
| 179 | ) |
| 180 | |
| 181 | def _sent_failed( |
| 182 | self, |
| 183 | failure: Failure, |
| 184 | to: list[str], |
| 185 | cc: list[str], |
| 186 | subject: str, |
| 187 | nattachs: int, |
| 188 | ) -> Failure: |
| 189 | errstr = str(failure.value) |
| 190 | logger.error( |
| 191 | "Unable to send mail: To=%(mailto)s Cc=%(mailcc)s " |
| 192 | 'Subject="%(mailsubject)s" Attachs=%(mailattachs)d' |
| 193 | "- %(mailerr)s", |
| 194 | { |
| 195 | "mailto": to, |
| 196 | "mailcc": cc, |
| 197 | "mailsubject": subject, |
| 198 | "mailattachs": nattachs, |
| 199 | "mailerr": errstr, |
| 200 | }, |
| 201 | ) |
| 202 | return failure |
| 203 | |
| 204 | def _sendmail(self, to_addrs: list[str], msg: bytes) -> Deferred[Any]: |
| 205 | from twisted.internet import reactor |
Callers
nothing calls this directly
Tested by
no test coverage detected