You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
634 B
Lua
21 lines
634 B
Lua
local sendemail = require'./smtp'
|
|
local message = require'smtp-message'
|
|
|
|
--local mymsg = message.plaintext('A Subject', 'A plaintext body of a message.')
|
|
local mymsg = message.plaintext_html('An HTML email with plaintext alternative', 'Please open in an HTML-capable email client. Get with the 21st-century.', [[
|
|
<html><head></head>
|
|
<body>
|
|
<h1>Piazza Optical</h1>
|
|
<h6>How... manipulative of an ad this is.</h6>
|
|
</body></html>
|
|
]])
|
|
sendemail({
|
|
message=mymsg,
|
|
from='brian@sakal.us',
|
|
to='briansakal@gmail.com',
|
|
host='sakal.us',
|
|
username='brian@sakal.us',
|
|
password='buginoO1$',
|
|
ehlo_host='piazzaoptical.com'
|
|
})
|