When trying to compose HTML with CSS for email delivery using Go command line execution, errors related to CSS properties are popping up. For instance, it's showing "not found" error in the terminal for properties like background: rgb(255, 255, 255)
or padding
.
The code snippet that illustrates some of the HTML and CSS properties being utilized is as follows:
<div style="margin: 0; padding: 0; background: #ffffff; font-family: Montserrat, sans-serif; font-size: 16px; color: #313131">
Additionally, the method used for sending emails via the command line is provided below:
[email send function details here...]
A situation arises where a customer can configure their own template in an editor, potentially introducing various CSS properties. This scenario may lead to errors due to these random properties.
In light of the aforementioned errors, one query stands out - does the command line require specific CSS rules for successful email transmission?
Update:
The error output received while executing the EmailSend() function is displayed below:
sh:
padding: not found
sh:
background: not found