Hello All,
I have a query here. I am sending an HTML table(which I am creating it by a call to REST API, in a LINUX box) and from there I have to send it into an email. So following are the poins on same:
- As data is not static so it is writing Dynamic data and creating HTML file.
- There is a table which has many fields into it in that HTML file.
- I am sending this HTML table into an email by shell script(command sendmail).
- All field's value could be of any length.
So above are some information points on this, following is the question now on same.
Query:
As I mentioned above field's length could be any. So when I am sending that email with HTML table, so it's one field has more length compare of any other field, so because of it all other fields(including columns and data) are shrinking into size and it is looking very odd in email. Basically I require all the fields to be same width and all values should come in single line into email, off course there could be a limit for wordwrap but field's data should go till that but that's not happening.
Following are the things I had tried too in order to fix it(which didn't work):
- Tried to fix table's width.
- Used {"white-space: nowrap"}.
Tried above but it didn't work, I can't paste data here apologies for it but I have tried my best to explain the issue, please do let me know if any further information required here too. Could anyone please help in same, will be grateful.
Thanks,
R. Singh