Sending MAIL Script


SUBMITTED BY: rajesh93

DATE: Feb. 16, 2017, 8:57 a.m.

FORMAT: Text only

SIZE: 410 Bytes

HITS: 911

  1. local username = '<SMTP USERNAME>'
  2. local password = '<SMTP PASSWORD>'
  3. local server = '<SMTP SERVER>'
  4. email.send {
  5. server=server, username=username, password=password,
  6. from='hello@webscript.io', -- replace with your 'from' address
  7. to='hello@webscript.io', -- replace with your 'to' address
  8. subject='Anonymous greeting',
  9. text=request.form.message
  10. }
  11. return "Email sent. Thanks!"

comments powered by Disqus