m0603saa 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/m0603.js +16 -0
- package/package.json +11 -0
package/m0603.js
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
const sendmail = require('sendmail')();
|
2
|
+
const mymail = 'ash03@tut.by';
|
3
|
+
|
4
|
+
function send(message){
|
5
|
+
sendmail({
|
6
|
+
from:'ash03@tut.by',
|
7
|
+
to:mymail,
|
8
|
+
subject:'test sendmail',
|
9
|
+
html:message
|
10
|
+
}, function(err, reply) {
|
11
|
+
console.log(err && err.stack);
|
12
|
+
console.dir(reply);
|
13
|
+
})
|
14
|
+
}
|
15
|
+
|
16
|
+
module.exports = {send};
|