This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

CC in mail
#1
In the common mail function is it possible to also have a reciever in copy?

An csv export is made but the import system doesnt get it so we try to put another mailadress on copy to se if it comes..
Reply
#2
Just specify multiple recipients, it's the same as CC.
Reply
#3
(18.01.2023, 13:49)admin Wrote: Just specify multiple recipients, it's the same as CC.

no. Then the to field contains more than one email. And the importsystem( Energinet) doesnt support that.

The import system doesnt get any of the mails from the LM.
Reply
#4
You can cc header after to in smtp.message(...). The format is the same as to, emails should be escaped using this format: <user@example.com>
Reply
#5
Tried this and the email comes up in the cc field when recieved on to mail adress. But the cc doesnt get the mail?
Reply
#6
You can put multiple emails into to table but set the "to" header only to the first recipient:
Code:
settings.source = smtp.message({
  headers = {
    to = to[ 1 ],
    subject = subject,
    ['From'] = from,
    ['Content-type'] = 'text/html; charset=utf-8',
  },
  body = message
})
Reply


Forum Jump: