fescobar / allure-docker-service

This docker container allows you to see up to date reports simply mounting your "allure-results" directory in the container (for a Single Project) or your "projects" directory (for Multiple Projects). Every time appears new results (generated for your tests), Allure Docker Service will detect those changes and it will generate a new report automatically (optional: send results / generate report through API), what you will see refreshing your browser.
Apache License 2.0
663 stars 188 forks source link

Email report not rendering correctly in GMail #220

Closed nicon89 closed 8 months ago

nicon89 commented 1 year ago

Generated rendered emails are not rendering correctly in GMail: image Expected result: image

Steps to reproduce:

curl -XGET https://allure-api/allure-docker-service/emailable-report/render/?project_id=default -b cookiesFile  > email.html
ssmtp email@address.com < email.html

Am I doing something wrong, or is it expected?

fescobar commented 8 months ago

@nicon89 Just you need to open the HTML in any browser. Once it's rendered just select all and copy the content. In the email just you need to paste the content previously copied. image

Or you can use any chrome extension like this one https://chromewebstore.google.com/detail/send-html-in-gmail/ipaogmomajeofkdpcmmjgilnblolomhb

nicon89 commented 8 months ago

What if I want to to use an automated script to send it?

fescobar commented 8 months ago

@nicon89 depends on the tech that you implement you will find libraries to send HTML in emails.