Remy, I hope you are somewhere near ... would have some questions!
1./ Currently the "From" contains my email address, but my name would be better there. Is it possible?
2./ As I can see, the
ipHtmlPanel cannot handle the formatting properly
(for example, this
<p style="background-color: #627E20; font-weight: bold; color: #BAF2F2" >This is an other text.</p> does proper font formatting, but not for the background color).
Did I miss something or is it the normal behaviour?
3./ The sending function works great with TLS and port 587 (Gmail). What should I change in the settings to get SSL and port 465 to work? I mean, there are many options in
TIdSSLIOHandlerSocketOpenSSL for SSLOptions, bit confusing.
4./ Currently I'm using this method for attachment:
Attachment := TIdAttachmentFile.Create(MailMessage.MessageParts, attFile);
It only send 1 attached file. How can I send more than 1 attached files?
4. is solved with a loop:
for i := 0 to slAttachedFiles.Count - 1 do
begin
if FileExists(slAttachedFiles[i]) then TIdAttachmentFile.Create(MailMessage.MessageParts, slAttachedFiles[i]);
end;