Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SES Mailer doesn't work with S3 attachements #14

Closed
patrick-leb opened this issue Aug 1, 2023 · 0 comments · Fixed by #20, #24, #25 or #26
Closed

SES Mailer doesn't work with S3 attachements #14

patrick-leb opened this issue Aug 1, 2023 · 0 comments · Fixed by #20, #24, #25 or #26

Comments

@patrick-leb
Copy link

The SES Mailer doesn't seem to like S3 attachments.

When trying to send an attachement with the mailer from gravity forms:

2023-08-01 14:25:54.230185 - DEBUG --> Array
(
    [to] => [email protected]
    [subject] => The PDF for entry 232 is attached.
    [message] => <html>
	<head>
		<title>The PDF for entry 232 is attached.</title>
	</head>
	<body>
		The PDF for entry 232 is attached.
	</body>
</html>
    [headers] => Array
        (
            [From] => From: "test" <[email protected]>
            [Content-type] => Content-type: text/html; charset=UTF-8
        )

    [attachments] => Array
        (
            [0] => ymir-public:///uploads/test/test.pdf
        )

    [abort_email] => 
)
 
2023-08-01 14:25:54.236120 - DEBUG --> GFCommon::send_email(): Result from wp_mail():  
2023-08-01 14:25:54.236179 - ERROR --> GFCommon::send_email(): WordPress was unable to send the notification email (#workflow_step_19_user_1 - workflow_step_19_user_1) for entry #232 to the sending server. 

there is no issue if the file is copied to /tmp first and the attachment fetch from there instead of S3. Might have some shenanigans going with the stream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment