haraka / Haraka

A fast, highly extensible, and event driven SMTP server
https://haraka.github.io
MIT License
5.08k stars 661 forks source link

How to add text or image in every email #894

Closed sym786 closed 9 years ago

sym786 commented 9 years ago

Hi,

I want to attached text or image in every email, Is it possible. If yes then please guide me.

baudehlo commented 9 years ago

Yes, see transaction.add_body_filter()

http://haraka.github.io/manual/Transaction.html

On Tue, Mar 31, 2015 at 1:03 AM, Mahboob Ali notifications@github.com wrote:

Hi,

I want to attached text or image in every email, Is it possible. If yes then please guide me.

— Reply to this email directly or view it on GitHub https://github.com/baudehlo/Haraka/issues/894.

sym786 commented 9 years ago

where can i use this code. i means in which file i should put this code. would you describe more about this.

baudehlo commented 9 years ago

You need to create a plugin which uses the API. There are tutorials for writing plugins on the site.

On Wed, Apr 1, 2015 at 3:25 AM, Mahboob Ali notifications@github.com wrote:

where can i use this code. i means in which file i should put this code. would you describe more about this.

— Reply to this email directly or view it on GitHub https://github.com/baudehlo/Haraka/issues/894#issuecomment-88377589.