예제 #1
0
def mail_result(event):
    '''
    Sending TXT(result) file
    '''
    from modules.send_mail import send_mail
    from modules.conf_fetcher import fetcher

    a = fetcher() #take a dict with conf setting
    
    a ['files'] = [tmp]

    send_mail(**a)

    tex.delete(1.0, END)
    tex.insert(END, 'Результат сохранен во временный файл ')
    tex.insert(END, 'tmp/tmp_file.txt')
    tex.insert(END, ' и отправлен по почте')
예제 #2
0
def mail_source(event):
    '''
    Sending EXCEL(source) file
    '''
    from modules.send_mail import send_mail
    from modules.conf_fetcher import fetcher
  
    a = fetcher() #take a dict with conf setting
    if open_file:
        a ['files'] = [open_file]
 
    send_mail(**a)

    tex.delete(1.0,END)
    tex.insert(END,'Файл ')
    tex.insert(END, open_file)
    tex.insert(END, ' отправлен')
예제 #3
0
def mail_result(event):
    '''
    Sending TXT(result) file
    '''
    from modules.send_mail import send_mail
    from modules.conf_fetcher import fetcher

    a = fetcher()  #take a dict with conf setting

    a['files'] = [tmp]

    send_mail(**a)

    tex.delete(1.0, END)
    tex.insert(END, 'Результат сохранен во временный файл ')
    tex.insert(END, 'tmp/tmp_file.txt')
    tex.insert(END, ' и отправлен по почте')
예제 #4
0
def mail_source(event):
    '''
    Sending EXCEL(source) file
    '''
    from modules.send_mail import send_mail
    from modules.conf_fetcher import fetcher

    a = fetcher()  #take a dict with conf setting
    if open_file:
        a['files'] = [open_file]

    send_mail(**a)

    tex.delete(1.0, END)
    tex.insert(END, 'Файл ')
    tex.insert(END, open_file)
    tex.insert(END, ' отправлен')
예제 #5
0
파일: planner.py 프로젝트: maxsocl/xlparse
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
The purpose of the programm is to organize some repeatedly job's.
This python program allows us to send a mail with included files.
Now, this program calculate the current date and include to mail
file which contain yesterday's date.
It's can send mail to diff recipients and CC recipients(config in 
conf/base.cfg file).
But this program not universal now, it's for my use.
Program alow to use some open smtp sever.
Work on python 2.7
"""
from modules.send_mail import send_mail
from modules.conf_fetcher import fetcher

if __name__ == "__main__":
    a = fetcher() #take a dict with conf setting
    send_mail(**a)