Advertisement
Guest User

Untitled

a guest
Jul 13th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. -- load the smtp support
  2. local smtp = require("socket.smtp")
  3.  
  4.  
  5. rcpt = {
  6. }
  7.  
  8. mesgt = {
  9. headers = {
  10. to = "Fulano da Silva <[email protected]>",
  11. cc = '"Beltrano F. Nunes" <[email protected]>',
  12. subject = "My first message"
  13. },
  14. body = "I hope this works. If it does, I can send you another 1000 copies."
  15. }
  16.  
  17. r, e = smtp.send{
  18. from = from,
  19. rcpt = rcpt,
  20. source = smtp.message(mesgt)
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement