Re: adding promotional banner to top of email

Jan-Pieter Cornet <[email protected]> Thu, 22 Jun 2017 00:33:40 +0200
Newsgroups gmane.mail.mimedefang
Message-ID <[email protected]>
On 21-6-17 16:32, Kris Deugau wrote:
> Mark Coetser wrote:
>> I know html email is not ideal but unfortunately most customers use it
>> now days. I am currently using append_html_boilerplate to add signatures
>> etc and now a client has requested that we add promotional banners to
>> the top of all html emails. I have searched and just cant find anything
>> that relates to doing this with mimedefang, any pointers please?
>>
> 
> You'll probably have to deconstruct append_html_boilerplate's internals, and build a custom prepend_html_boilerplate sub to suit.

You could just use "sub filter_end" to insert a new HTML part that comprises your header (assuming the content also contained HTML). Easier than modifying the existing HTML to add a header.

However... make doubly sure to *ONLY* do this on mails that originate locally, from your own domain, and never for any mails in transit, as you'll break DKIM signatures on the body. Don't just look at originating IP, look at the From: address too.

And best of all, as the previous posting suggested... don't do this at all. It will likely just get your domain blocked, either explicitly or implicitly as spam-detection algorithms get too many of the same HTML headers, and they start treating it as spam.

So, just... no.

> <snark>Also, please let us know who this is, so the rest of us can block their mail...</snark>

-- 
Jan-Pieter Cornet <[email protected]>
Systeembeheer XS4ALL Internet bv
www.xs4all.nl

_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
signature.asc (application/pgp-signature, 931 B)
-----BEGIN PGP SIGNATURE-----

iQJ8BAEBCgBmBQJZSvRRXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ0NjJEM0M1RkVCMTAyN0U2MUVGNTM2QUUy
MDZBNTFBRDUxQ0EzNzI5AAoJECBqUa1RyjcpIA0P/i0gtS3S/dyoriDbu6QjEwfi
jEtSXTGvi0IkSeSA49YfJVimFVvE9AAYHDTnzcr0hJ/MHzK9BjYMQ0TqF5L4FfJ+
Dos8+AVdHiuDMnDS469XC7a2L0RMlaVdFZpMtrFOSuAY6ghEb6iq2o2ZN1cwMVt1
iropVX3P+Cr10YC7j6QR52vOgIkqdqNablyf4fokVuQ+YASkQ9KBeYHcOvaHmgx+
t+JChpXjyauzoeXN/xNjf0BPJhdtOBJvBi7DAECwNy/6rU/3gIphZTeSJhjEPXDm
B8Una6r+VU4+GGDv2rmz4qlCFKxVQLHnI0a84U/TMPfEKRUDbdNkVCL1bcJGl0Bw
ylGTfQNMJXCJ8+5pw9hYWGNyqLa1kG3LCJsdxSn6uoq59pfBqlFeufpjG+SJe2bF
fy6eT72qLVKls8BqinMgJM6IJ9dzd+8R41UpA79XhphsnlEKnfP1Il1sBGhNIo2G
B9txP8JpJpDpaoqPKCVys4Fuvzifvjny19oYM+7MmLJ6UFx/TF1OQUyMuqWwfwQh
72j5qq+siyB1ZevyRryZ3JduxlPcMZS7TqR09umuoloF4tXa83KwTUl3k3fGY9Ny
H7TYZKh7myrlr+hS1atYz/MvKlaW8ErRhG5DcUtJTpTUlSSb8wXRav0KkjfbNwkL
+dMXm17z8rBl7qcoRxnC
=xDxw
-----END PGP SIGNATURE-----