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.

E-mail without sender
#2
The code in the example was incorrect. From header must be placed together with to and subject:
Code:
settings.source = smtp.message({
  headers = {
      to = table.concat(to, ', '),
      subject = subject,
      From = '<' .. tostring(settings.from) .. '>',
    },
...

If needed, you can add a name before < in the header so it's displayed together with the email address.
Reply


Messages In This Thread
E-mail without sender - by dannynos - 15.02.2024, 21:21
RE: E-mail without sender - by admin - 16.02.2024, 08:59
RE: E-mail without sender - by dannynos - 18.02.2024, 20:52

Forum Jump: