‎2009 Aug 21 9:47 AM
Hi All,
I am currently using the function module 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send an email (with heading and body) with a PDF file as an attachment. However, when I am using this function module to send an email, I am getting junk characters in the email body. Reason for this is that, the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' is incompatable to UTF-16 to unicode conversion.
Could someone please suggest me any other function module or class method for sending mails. Please note that the mail will have a PDF file as an attachment and it has matter in the body and mail header. Sample code would be appreciated.
Thanks,
Vishal.
‎2009 Aug 21 9:50 AM
You can use cl_bcs class instead,
Refer [Simple but Powerful Code for Sending Mail from SAP|http://wiki.sdn.sap.com/wiki/x/jF4]
Regards
Marcin
‎2009 Aug 21 9:51 AM
Hi,
Please refer the link below:
https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=79955488
Hope it helps
Regards
Mansi
Edited by: MANSI ASNANI on Aug 21, 2009 10:52 AM
‎2009 Aug 21 10:39 AM
Vishal,
search SCN.. there are many post about using class cl_bcs