When you send any email it arrives in the Pickup folder of the SMTP server in the form of a .eml file. SMTP server continuously monitors the Pickup folder for any incoming file.
As soon as any email file is received in Pickup, it is picked to check its integrity. If the format of .eml is incorrect then it is sent to the BadFiles folder, otherwise, it is sent to the Queue folder from where SMTP forwards email to specified recipients.
If there a requirement to modify recipients, subject or content of the email after it arrives in the SMTP server, then it can be achieved using a different mechanism.
SMTP server rules:
You can create rules in the SMTP server to modify email before forwarding it to recipients.
Create macros:
Macros are very powerful scripts that can read the content of .eml files. They can be written in VB Script (.vbs file) which can read each incoming .eml file within the Pickup folder and process as needed.
Socket programming:
Write a code based on socket programming or HTTP pipeline that picks the inflow of content to the SMTP server.
As soon as any email file is received in Pickup, it is picked to check its integrity. If the format of .eml is incorrect then it is sent to the BadFiles folder, otherwise, it is sent to the Queue folder from where SMTP forwards email to specified recipients.
If there a requirement to modify recipients, subject or content of the email after it arrives in the SMTP server, then it can be achieved using a different mechanism.
SMTP server rules:
You can create rules in the SMTP server to modify email before forwarding it to recipients.
Create macros:
Macros are very powerful scripts that can read the content of .eml files. They can be written in VB Script (.vbs file) which can read each incoming .eml file within the Pickup folder and process as needed.
Socket programming:
Write a code based on socket programming or HTTP pipeline that picks the inflow of content to the SMTP server.
No comments:
Post a Comment