Support » Plugin: Contact Form 7 » Attach Image Email Signature To Mail 2

  • Resolved doulou

    (@doulou)



    Hi

    I apologise if I’m being dense here, but have put in the time to find a solution when I’m sure it’s simple!

    I would like to add an embedded image email signature to the bottom of the message in Mail 2 which I’m using as an auto-responder back to the sender.

    I’ve tried adding a url to the attachment box below the form and linking the image in the email, however, I think this is for people adding an attachment rather than embedding an image.

    I have about three clients who want this and can’t figure out how to do it.

    Many thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • @doulou

    Hi! Thanks for writing.

    If you say had a transparent .png image, and then base64 encoded it into an html img tag, and then pasted that html code into the message body (with the “Use HTML content type” checkbox enabled (in the contact form config page (on the Mail tab))), then will that work?

    Sample code here:

    From: [your-name] <[your-email]>
    Subject: [your-subject]
    
    Message Body:
    [your-message]
    
    <img src="data:image/*;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAZCAYAAABzVH1EAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+AKDREsIH3x838AAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAqElEQVRYw+1Wyw7AIAhbif//y92dbKIgzmT06EFYX/O6CoXCL4APZjJjhzY4EEkEcjdzTFRkyd0SWOAoyAFZwgqSJHtAkuWpd2sLva4JwKKlMUKyTMqu2UCniRgkhD0FvBnRVQwjQ3DkRJP1NItvSskkW0gOMY058CjCjgLRD+3ZBcYZZv/s1mLeMHvuNMtDgu2xq2oRsS0dDbT7NcBRe2Q+HAuFQmEeNxYQNBM1cSXOAAAAAElFTkSuQmCC"/>
    --
    This e-mail was sent from a contact form on morgans plugins (http://localhost/wp1)

    Will you write us back to let us know how you go?

    Hi

    Thanks for getting back to me.

    I’ve never heard of base64, but have found an online image converter for this and will give it a try.

    Will let you know if it works…

    Thanks

    Hi

    It worked! Even though the base64 html code is about 50 lines – much longer than yours.

    I used – http://www.askapache.com/online-tools/base64-image-converter/ – if you know of any others it would be useful, however, I’m just pleased it worked!

    Thanks so much for your help.

    @doulou

    Great to hear that works for you!

    Also, thank you for having written back to say that it did, along with having posted more details of which base64 image converter that you used, etc.

    Would you mind marking this forum topic as “resolved” to help others (who have the same/similar question) to find it later?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Attach Image Email Signature To Mail 2’ is closed to new replies.