#AWS SES

1 messages · Page 1 of 1 (latest)

opaque oriole
#

I use SES for order emails with all my projects. is there an official/ unofficial SES plugin?

feral nymph
opaque oriole
#

thnx. will try this tonight

opaque oriole
#

i was able to install the above and was able to test that SES works by hitting /ses/send endpoint with proper post data. It worked. So, SES - Medusa connection is fine

But I expected that it should send order_placed email when I create order. I placed order 2 ways. One from admin dashboard by creating a draft order and capturing payment, and Second by placing order from nextjs admin. But the SES APIs are not getting hit. I have made sure that the email I am sending to, is verified from SES dashboard (its still in sandbox)

Do I have to do something more for the plugin to send order_placed email?

#

i have multiwarehouse module installed

#

ah! I guess I have to enable eventBus. ?

opaque oriole
#

enabled local event bus. still no email. got this in logs, so I guess i got subscriber to order.placed event.

still no email

opaque oriole
#

notifications table is empty

opaque oriole
#

I installed and enabled redis and redis event bus and it worked. in my setup local event bus did not work even in dev env.

stuck raft
#

Do the order_placed templates exist, and is the event uncommented in your config? Please post your config. Also, it would be helpful to see the request and response from the test to /ses/send. If you're using a recent version of the plugin, it should log an error if it is triggered but unable to send. Just to check all the boxes, are you out of the ses sandbox or sending from AND TO a verified sender email address? Did you check spam folder?

#

Never mind, this is a reminder to me to read the whole thread first before responding, which I obviously did not in this case.

opaque oriole
#

Yes, I made sure all the trivial issues did not exist during testing. My conclusion is that with local event bus, the notification table was empty and with redis event bus it got populated with proper entry. I am not sure if it was meant to be this way with ses plugin or if it was something I missed.

#

with redis event bus

#

meanwhile I found a non blocking bug with SES plugin

  1. Install SES plugin and configure.
  2. upload product image-->entry is created in images table as well as product_images table --> image gets uploaded to S3 bucket
  3. delete the image from the product --> entry is deleted from product_images table BUT it is neither deleted from images table, nor the deleted_at column gets populated. The image is also not deleted from S3.
stuck raft
#

I think this is an s3 bug, yes?

#

The delete function for s3 plugin is not currently working. It is constructed to accept a string, but gets an object.