Hi all,
I am having an issue displaying the email content correctly.
I am using the Lansa Integrator smtpservice to send emails with a large html content (type *html), so passing the body content as a list instead of a parameter.
The emails is sent successfully, but the email body is being delivered as an attachment and not displayed as the body of the email.
If I display the content of the attachment in a browser it's valid.
The content of the email body can be found in the IDE sample code: Reusable Part xUserAccountControl (XUSERACNT) method SendEmailRequest. I am converting the code to use integrator instead of depending on the SendGrid third party service. It's the VL Web Tasks sample application.
Any assistance would be appreciated getting the body to display in the email, instead of an attachment.
Regards,
David
Lansa Integrator smtpmailservice
Re: Lansa Integrator smtpmailservice
David,
as you can probably imagine, Portalize does something similar...
main difference that i can see is that the command is:
Where #Content is *HTML, and #BPFJSMSTRING is defined as *nchar(1024)
so perhaps you just need the encoding part?
If you have Portalize, you can review BPFEmailSendingJSMHanlder (specifically the Send MethodRoutine...
as you can probably imagine, Portalize does something similar...
main difference that i can see is that the command is:
Code: Select all
Def_List Name(#EmailBody) Fields(#BPFJSMSTRING) Type(*WORKING) Entrys(*MAX)
'SEND CONTENT(' + #Content + ') ENCODING(UTF-8)'
so perhaps you just need the encoding part?
If you have Portalize, you can review BPFEmailSendingJSMHanlder (specifically the Send MethodRoutine...
-
davidbalansa
- Posts: 92
- Joined: Mon Feb 01, 2016 10:08 am
Re: Lansa Integrator smtpmailservice - RESOLVED
Hi Brendan,
Thank you for the code recommendation. The email content list is now appearing in the email and not as an attachment.
I changed my code to the following. Where content is passed in as *HTML.
Regards,
David
Thank you for the code recommendation. The email content list is now appearing in the email and not as an attachment.
I changed my code to the following. Where content is passed in as *HTML.
Regards,
David