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] ='292246223@qq.com'
ls_filename = string(datetime(today(),now()),'yyyymmdd-hhmmss')+srand+"-daochu.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
我用你说的上面代码运行,但不能直接把文件发给我上面的邮箱,会弹出一个 发邮件的客户端窗口,里面主题什么的是按上面的信息,但没有附件,没我保存下来的附件,那怎样发送,不可能我要去点附件去文件夹找文件吧