This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

Insert uploaded image in email


  1. jpello
    Member

    Hello,

    We are using machform for lots of things - and one of the projects we are using it for is to format and send our employees a pre-formatted html email signature for their email.

    They type in their information and click SUBMIT and they receive an email with the nicely formatted email.

    The only thing we don't have is the ability to insert the picture that they upload. Right now if I include {element_3} (image) it get the link. I even tried setting it to where {element_3} was in the link for an image placeholder but just get an error.

    I'd think there HAS to be a way to make this happen - any thoughts??

    Posted 10 years ago #
  2. AMurray
    Pro Member

    I don't think it works that way i.e. the image within the body of the email. You can either have it as a link,or as an attachment, like a normal email would. Having said that, I just wonder if the following would work (type it as you see it below, into the body of the email reply to the employee/sender of the submission)

    <img src="{element_3}"> I think that should work, since element_3 will then of course be replaced with the actual value (URL) of the image.

    Posted 10 years ago #
  3. jpello
    Member

    I believe I tried the tag and it didn't come across right.

    I also noticed that if I have a field insert text, and another field make that text a link, the link gets put next to the text with a > symbol...

    Posted 10 years ago #
  4. yuniar

    Try to edit your "download.php" file first, around line 144:

    header("Content-Disposition: attachment; filename=\"" . addslashes($header_file) . "\"");

    remove that line of code. Then try to embed it into your email using the IMG tag again.


    MachForm Founder

    Posted 10 years ago #
  5. jpello
    Member

    Hi Yuniar,

    I removed that line from the code and have this in the HTML -
    picture

    I get a box where the picture SHOULD be followed by the image name and some code --- "headshot.jpg" alt="picture" border="0" />".

    you can duplicate by going to this site and entering your information and uploading an image:

    https://registration.firstam.com/emailhtml

    Posted 10 years ago #
  6. Saghalie
    Pro Member

    It actually looks like you have a problem with your coding. The whole image is not showing up because the src tag doesn't appear to be inserted in to the code correctly. Make sure you have your quotation marks and escapes in the correct places.

    Regards,

    Saghalie
    http://www.kcmhosting.com

    Posted 10 years ago #
  7. jpello
    Member

    I was thinking it could be a formatting issue as well, so I tried changing {element_17} to a hosted image source (http://server.com/pic.jpg) and it worked...

    I have the quotes, etc. exactly as I would if it were an image being pulled from the web...

    I put in a support request via email, so hopefully we'll be able to figure something out

    Posted 10 years ago #
  8. agdm619
    Member

    Was there a fix for this? I need this to work as well.

    Posted 10 years ago #

RSS feed for this topic

Reply