Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Send Email as HTML format from UNIX command

Former Member
0 Likes
1,014

Hi Experts,

I have a requirement, need to send table format data from sap to outlook email via UNIX command. In order to send this table format data, I developed HTML code for the table and data and stored in UNIX file.

And then, I am using below commnad to generate Email. But I am getting Email as Plain Text format not HTML format and email body as getting html code as it is. I mean it didn't converted.

*cat /tmp/mail44201111141455412.msg | /usr/bin/mailx -s "Test Mail" abc@xyz*

In the above command ...,

*mail44201111141455412.msg*   >>>>> is the File name which has HTML codes <HTML> ..... </HTML> and stored in /tmp directory.
*Test mail* >>> is the subject
*abc@xyz* >>> is the receipent email-id

I also changed the file extension from .msg to .htm. But no use. results are not comming as expected.

So, basically I need Email format as HTML.

I searched forums and I found similar type of questions and but not 100% relevant answer. It seems.., we need to pass content-type as either "txt / html" in the above command. I am not sure But I tired.

I tried to pass at the end of the above command. Command execution failure error.

I also tired to pass before the subject i.e "-s" . This time also i got error.

Please help me on this.

Thanks in Advance.

reddy

2 REPLIES 2
Read only

Former Member
0 Likes
648

Anyone has any idea on this?

Edited by: bvrnreddy on Nov 15, 2011 10:43 PM

Read only

0 Likes
648

How is this an ABAP question?

Rob