I´m using a TMail class to send mails, it´s work fine, but i have one question:
when i want send email with html body i do this:
- Code: Select all Expand view
cSubject = "Testing Html Body"
cNoteText = nil
cMsgType = nil
cConversationID = nil
dDate = Date()
cTime = Time()
lReceipt = .F.
lFromUser = .T.
aOrigin = {mymail@mymail.com}
aRecipients = {yourmail@yourmail.com}
aFiles = {{"c:\MyDocuments\MyHtml.htm","MyHtml.htm"}}
oMail:=TMail():New(cSubject ,;
cNoteText ,;
cMsgType ,;
cConversationID ,;
dDate,;
cTime,;
lReceipt,;
lFromUser,;
aOrigin,;
aRecipients,;
aFiles)
it´s works great...
but if i need attach other file (a pdf file, for example), the html body is not created, and the mail has now 2 attach files, a html file and a pdf file...
- Code: Select all Expand view
aFiles = {{"c:\MyDocuments\MyHtml.htm","MyHtml.htm"},{"c:\MyDocuments\MyPdf.pdf","MyPdf.pdf"}}
i need an email with a html body and other file attached...
Many thanks