Hello experts,
Please how to create a mail with html table in body something like this :
| test 1111 |
test22222 |
test3333 |
| aaaa |
bbb |
ccccc |
| xxxx |
yyyy |
zzz |
this is my code :
SMTPMailSetup.GET;
SMTPMail.CreateMessage('MDyanamicsNAV',SMTPMailSetup."User ID",Recp_Email,'Subject','',TRUE);
SMTPMail.AppendBody('hello,');
SMTPMail.AppendBody('<br>');
SMTPMail.AppendBody('<br>');
SMTPMail.AppendBody('Please verify your mail');
SMTPMail.AppendBody('<br>');
SMTPMail.AppendBody('<br>');
SMTPMail.AppendBody('<table style="width:100%;border:1px solid black;"><tr><th>test1111</th><th>test22222</th> <th>test3333</th></tr>');
SETFILTER(Status,'=%1',Status::Approved);
IF FINDSET THEN BEGIN
REPEAT
SMTPMail.AppendBody(<tr><th>'+record.xxx+'</th><th>'+"record.yyy"+'</th><th>'+"record.zzz"+'</th></tr>');
UNTIL NEXT = 0;
END;
SMTPMail.AppendBody('</table>');
SMTPMail.AppendBody('<hr>');
SMTPMail.AppendBody('Please don't reply'); SMTPMail.Send; MESSAGE('Mail Sent');
*This post is locked for comments
I have the same question (0)