This commit is contained in:
parent
f7fda52fd0
commit
bf1fc1fcf6
3 changed files with 12 additions and 2 deletions
|
@ -10,6 +10,8 @@ from mail.models import Email, EventAddress, EmailAttachment
|
|||
from notify_sessions.models import SystemEvent
|
||||
from tickets.models import IssueThread
|
||||
|
||||
from core.settings import SMTP_GATEWAY_HOST, SMTP_GATEWAY_PORT
|
||||
|
||||
|
||||
class SpecialMailException(Exception):
|
||||
pass
|
||||
|
@ -88,7 +90,7 @@ def make_reply(reply_email, references=None, event=None):
|
|||
|
||||
|
||||
async def send_smtp(message):
|
||||
await aiosmtplib.send(message, hostname="127.0.0.1", port=25, use_tls=False, start_tls=False)
|
||||
await aiosmtplib.send(message, hostname=SMTP_GATEWAY_HOST, port=SMTP_GATEWAY_PORT, use_tls=False, start_tls=False)
|
||||
|
||||
|
||||
def find_active_issue_thread(in_reply_to, address, subject, event):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue