Ovozli xabarlarni chiqarish funksiyasi qo'shildi va test email manzili yangilandi.
This commit is contained in:
@@ -48,5 +48,6 @@ func (n *notificationConsumer) Handler(notification domain.NotificationMsg) {
|
|||||||
case "email":
|
case "email":
|
||||||
ntf = notifier.NewEmailNotifier()
|
ntf = notifier.NewEmailNotifier()
|
||||||
}
|
}
|
||||||
|
fmt.Println(notification.Message)
|
||||||
ntf.SendMessage(notification.To, notification.Message)
|
ntf.SendMessage(notification.To, notification.Message)
|
||||||
}
|
}
|
||||||
|
|||||||
2
test.py
2
test.py
@@ -27,7 +27,7 @@ r = redis.StrictRedis(host='127.0.0.1', port=6379, db=0)
|
|||||||
message = {
|
message = {
|
||||||
'type': 'email',
|
'type': 'email',
|
||||||
'message': "Subject: test\r\n\r\nclasscom.uz sayti va mobil ilovasiga ro'yxatdan o'tishingiz uchun tasdiqlash kodi: 1234",
|
'message': "Subject: test\r\n\r\nclasscom.uz sayti va mobil ilovasiga ro'yxatdan o'tishingiz uchun tasdiqlash kodi: 1234",
|
||||||
'to': ["JscorpTech@gmail.com", "admin@jscorp.uz"]
|
'to': ["jahongirhakimjonov@gmail.com"]
|
||||||
}
|
}
|
||||||
|
|
||||||
# Xabarni JSON formatga o‘tkazib, Redis listga push qilish
|
# Xabarni JSON formatga o‘tkazib, Redis listga push qilish
|
||||||
|
|||||||
Reference in New Issue
Block a user