Outbound emails getting fails with large attachments (exceeding 4mb)
refer the below log file for failed email.
.....
19:33:12.640 Dbg 09900 [SvcSrvW-36] <[81470, 01WP1B35DQ7YJ1DC]> GRAPH_LIB: Request Method PUT
19:33:12.640 Dbg 09900 [SvcSrvW-36] <[81470, 01WP1B35DQ7YJ1DC]> GRAPH_LIB: Sending byte[] as request body
19:33:13.577 Std 25072 [SvcSrvW-36] <[81470, 01WP1B35DQ7YJ1DC]> Unexpected JavaMail exception javax.mail.MessagingException: Request failed with error, retry if necessary.;
nested exception is:
com.microsoft.graph.core.ClientException: Request failed with error, retry if necessary.
...
Caused by: com.microsoft.graph.core.ClientException: Request failed with error, retry if necessary.
...
Caused by: com.microsoft.graph.core.ClientException: Error executing the request
...
Then connection is reset on the Graph side:
Suppressed: java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)
at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
at sun.security.ssl.SSLSocketOutputRecord.encodeAlert(SSLSocketOutputRecord.java:81)
at sun.security.ssl.TransportContext.fatal(TransportContext.java:358)
... 62 more
Suppressed: javax.net.ssl.SSLException: Connection reset
..
19:33:13.577 Dbg 23105 [SvcSrvW-36] <[81470, 01WP1B35DQ7YJ1DC]> Destroying SMTP connection nb 1.
#Outbound------------------------------
Miyuru Dahanayaka
Individual Only Contact Account
------------------------------