James Bott wrote:The simple solution may be:
DEFINE MAIL oMail;
SUBJECT "teste";
TEXT "teste";
TO aTo;
FROM USER
Note that aRecipeints is a two-dimensional array.
oMail:aRecipients[1][1] contains either the name or if 2 is nil, the address
oMail:aRecipients[1][2] contains the address if 1 is not nil
So your aadd() is probably adding both recpients as the first element of the aRecipients array instead of the first two elements of the array.
So you could try:
oMail:aRecipients := aTo
Regards,
James
Hi James, this works:
AADD( aTo, { "teste@hotmail.com" , Nil })
AADD( aTo, { "teste1@hotmail.com", Nil })
AADD( aTo, { "teste2@hotmail.com", Nil })
Thank you. One more question, if i dont use from user the outlook doesn't open and the email goes in next time i execute outlook. If i use from user i dont want to force a user to click in send button, do you know how i can send automatically?
Tia.
Wanderson.