Hi Clarence
Pease use function aws.of_sendmail to send mail with attachment on Mobile.
https://www.appeon.com/support/documents/appeon_online_help/ps2019/workarounds_and_api_guide/ch01s04s02.html#ofsendmail_function
The script below work well on both Android and iOS with PowreServer on our end. please give try.
string ls_recipient[]
string ls_attachmentfile[]
string ls_cc[]
string ls_bcc[]
string ls_filename
int li_ret, li_re
eon_mobile_str_mailcontent lstr_content
eon_mobile_awsex lnv_aws
lnv_aws = create eon_mobile_awsex
lstr_content.s_subject = 'test'
lstr_content.s_notetext = 'mytest'
//ls_cc[1] = sle_2.text
ls_recipient[1] ='kai.zhao@appeon.com'
ls_filename = 'preview.pdf'
li_ret = dw_1.SaveAs(ls_filename,PDF!,true)
if li_ret = -1 then
messagebox("AVISO" , "ERROR PDF")
else
messagebox("AVISO" , "OK PDF")
ls_attachmentfile[1] = appeongetcachedir()+"/plugin/"+ ls_filename
END IF
li_re = lnv_aws.of_sendmail(lstr_content,ls_recipient,ls_cc,ls_bcc,ls_attachmentfile)
destroy lnv_aws
Regards,
ZhaoKai
By any chance do you know what is the carriage return value or enter key value to format the Text for the body email.
Regards,
Clarence
Please try '~r~n'.
Regards,
ZhaoKai