I need to add a tracking content to html mesaage content. Is this posible?
Hey there @kindhearted-deer, thanks for posting. To ensure the fastest resolution to your issue, please review the following and follow all the steps:
KumoMTA does not provide click or open tracking.
@yearning-hyena Can you please give me a solution to impliment this?
How are you injecting mail now?
Currently, we are adding an image pixel to the message body, but we could not find any solutions using Kumomta. I need to add an image pixel to the message body using Kumomta.
And the infrastructure for the requests for that pixel are already in place? How would you tell the MTA what the format for the pixel is?
Simply, I need to inject the following image code into the message body using Kumomta: <img src="http://10.0.0.1/img_chania.jpg" alt="Flowers in Chania">.
That URL does not provide tracking if it’s the same for every email.
This is a sample tracking code. not actual tracking . our tracking code is like above format.
Yes, but how do you expect the MTA to know that to make the change? That’s my question, how do you expect to tell the MTA what to do?
I didn’t understand your question. My use case is simple; I need to inject some code or data into the message body before sending an email using Kumo MTA
What application will decide the data? How does it tell KumoMTA what the change will be? How do you do this now?
I am planning to inject code/data before queuing emails in Kumo MTA. My code/data is static ,So directly apply this. but I did not find any feature to accomplish this.
I would strongly suggest you add the tracking before you inject into KumoMTA. You have a process that is assembling the message, it really should just add the tracking as part of the message assembly.
That is not possible, @yearning-hyena . We share SMTP details with our clients, and they send emails. Therefore, injecting tracking code is only possible through Kumomta; there is no other way to obtain message details.
So then this is not happening currently.
This requires a message rewrite, something we will better support in the future. For now you would need to take the message in Lua, modify it, and reinject it.
I believe @faithful-ostrich is working on a sample of how this would work currently, but if you intend to do this for all mail you may want to wait for it to be implemented in a future release (or sponsor the feature to accelerate development of it.)
Yes, at this time there is no option to simply append the HTML MIME part (we are still discussing implementing that feature). To do this now, you need to use Lua to decompose the message and save the message body to a string, then modify the string and re-inject it with HTTP. It is totally doable, but kludgy and inefficient. I suppose if you were processing a lower volume it would not be bad, but I have not done any volume testing.