Exemplo n.º 1
0
class MailerTest(unittest.TestCase):
	def setUp(self):
		self.mailer = Mailer('de01exm68.ds.mot.com')
		self.mailer.fromAddr('*****@*****.**')
		self.mailer.toAddr(['*****@*****.**'])

	def test_send(self):
		self.mailer.subject('test python smtp lib')
		self.mailer.content('test content')
		self.mailer.attach(os.getcwd()+"/test/mail_merged.html")
		self.mailer.attach(os.getcwd()+"/test/Coverage_full.csv")
		self.mailer.send()
        print("mail has been sent out!")
Exemplo n.º 2
0
	def setUp(self):
		self.mailer = Mailer('de01exm68.ds.mot.com')
		self.mailer.fromAddr('*****@*****.**')
		self.mailer.toAddr(['*****@*****.**'])
Exemplo n.º 3
0
#!/usr/bin/env python

import os
import sys
import web
from ncs.exceptions import *
from ncs.core.mailer import Mailer
from ncs.mail.builder import *

mailer = Mailer('de01exm68.ds.mot.com')
mailer.fromAddr('*****@*****.**')
mailer.toAddr(['*****@*****.**'])

def send(subject, body, attachs=[]):
	pass

def send_inform(subject, messages=[]):
	pass