Hi,
I have variable list of text below
ListEmailTo: List of [Text];
There's a field contain email address in customer called "E-Mail" which sometime add user ";" as email address separator.
For example :
email1@hotmail.com;email2@gmail.com
I added them via
ListEmailTo.Add(Customer."E-Mail");
Then send them using codeunitSMTP.CreateMessage.
It seems there's error because it doesn't recognize them as two email addresses.
But if i just input one of them like 'email1@hotmail.com', it worked just fine.
Is there a proper way to send to multiple address using list of text ? or do i have to separate each of them and add one by one to each index of List of Text ?
Thank you.