pradeep sharma
Active Member
Hi @twisted1919
I have developed a custom code (bounce processor via accounting file of PowerMTA)of PowerMTA
This Program can post data to a webhook/URL in JSON format. rit now i am only posting bounces/remote bounces to a web-hook in following format.
the Content of the Post DATA is :
{
"TYPE":"b", //means it is bounce
"REASON":"smtp;550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipient's email address for typos or unnecessary spaces. Learn more at https:\/\/support.google.com\/mail\/answer\/6596 g90si1371474otg.16 - gsmtp",
"BOUNCE_CATEGORY":"bad-mailbox",
"CAMPAIGN_UID":"wh9206qxkg179",
"SUBSCRIBER_UID":"cn8688peh1d90",
"HEADER_SUBSCRIBER_EMAIL":"mksfkdkfhdfnrtyr@gmail.com",
"HEADER_APP_URL":"http\/\/host.domain.com\/" //application URL where mailwizz is hosted...
}
I want to create a program to process bounces via this webhook data rather than classical "Read Mail Box Technique " used by Bounce Server setting in Mailwizz..
Just need little help so that we should process bounce in similar manner as it is processed through bounce server.
@twisted1919 can u create a custom a webhook where we can post above data ..and process bounce or guide us to look intp codes Models/view/controllers/ or Function we need to consider while processing bounces.
My Developers good in PHP but new to Yii framwork.
can we write a simple code in Core PHP to update database tables and mark the subscriber as hard bounce/soft bounce directly in respective DATABASE Tables..
I have developed a custom code (bounce processor via accounting file of PowerMTA)of PowerMTA
This Program can post data to a webhook/URL in JSON format. rit now i am only posting bounces/remote bounces to a web-hook in following format.
the Content of the Post DATA is :
{
"TYPE":"b", //means it is bounce
"REASON":"smtp;550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipient's email address for typos or unnecessary spaces. Learn more at https:\/\/support.google.com\/mail\/answer\/6596 g90si1371474otg.16 - gsmtp",
"BOUNCE_CATEGORY":"bad-mailbox",
"CAMPAIGN_UID":"wh9206qxkg179",
"SUBSCRIBER_UID":"cn8688peh1d90",
"HEADER_SUBSCRIBER_EMAIL":"mksfkdkfhdfnrtyr@gmail.com",
"HEADER_APP_URL":"http\/\/host.domain.com\/" //application URL where mailwizz is hosted...
}
I want to create a program to process bounces via this webhook data rather than classical "Read Mail Box Technique " used by Bounce Server setting in Mailwizz..
Just need little help so that we should process bounce in similar manner as it is processed through bounce server.
@twisted1919 can u create a custom a webhook where we can post above data ..and process bounce or guide us to look intp codes Models/view/controllers/ or Function we need to consider while processing bounces.
My Developers good in PHP but new to Yii framwork.
can we write a simple code in Core PHP to update database tables and mark the subscriber as hard bounce/soft bounce directly in respective DATABASE Tables..