<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Embed uploaded images directly in sent email</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Embed uploaded images directly in sent email</description>
<language>en</language>
<pubDate>Tue, 05 May 2026 07:51:52 +0000</pubDate>

<item>
<title>wbrookman on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email/page/2#post-12848</link>
<pubDate>Mon, 31 Oct 2011 20:47:58 +0000</pubDate>
<dc:creator>wbrookman</dc:creator>
<guid isPermaLink="false">12848@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I must be doing something wrong. I have tried the above code, yet images uploaded to the form still do not show up. I am not sure how to modify the htaccess file.....that could be my problem.&#60;br /&#62;
any help is appreciated below is a link to the test form for you to inspect&#60;br /&#62;
&#60;a href=&#34;http://www.stgamers.org/test3/seagate/Bellagio_Granite.html&#34; rel=&#34;nofollow&#34;&#62;http://www.stgamers.org/test3/seagate/Bellagio_Granite.html&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>AzureCrystal on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email/page/2#post-11719</link>
<pubDate>Tue, 29 Mar 2011 03:42:17 +0000</pubDate>
<dc:creator>AzureCrystal</dc:creator>
<guid isPermaLink="false">11719@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks for the code!!, worked like a charm after I renamed .htaccess file :-)
&#60;/p&#62;</description>
</item>
<item>
<title>vinchenze on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-9729</link>
<pubDate>Sat, 19 Jun 2010 00:40:47 +0000</pubDate>
<dc:creator>vinchenze</dc:creator>
<guid isPermaLink="false">9729@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Received an update from Andar, seems renaming .htaccess solved all my problems and now it works as stated.  Thank you!
&#60;/p&#62;</description>
</item>
<item>
<title>vinchenze on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-9727</link>
<pubDate>Fri, 18 Jun 2010 06:51:49 +0000</pubDate>
<dc:creator>vinchenze</dc:creator>
<guid isPermaLink="false">9727@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you for the update, i have also received edited files from support with the above already in it...but unfortunately it still does not work (still getting broken image icon).  I also attempted to update the original files as stated in the updated code mentioned above.  Still no luck and still getting the broken image icon in emails.  &#60;/p&#62;
&#60;p&#62;I must be missing something somewhere.  Any ideas on what i am missing?  For reference, when I view/edit the completed form within the admin area, I see the broken link but in the upload area i am able to download the image thus showing the upload worked properly.  Of course everything else works fantastic!&#60;/p&#62;
&#60;p&#62;(yuniar made a comment above about attaching vs embedding...i thought this was not possible...but if it is, it would be a secondary alternative to my needs - unfortunately just linking - default setup - does not work well for us.)  One other thing i checked was to make sure the data folder was 777. Again thank you in advance.
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-9722</link>
<pubDate>Thu, 17 Jun 2010 13:38:48 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">9722@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;There is an update for that code, try to replace this code :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$entry_details[$i][&#38;#39;value&#38;#39;] =&#38;#39;&#38;lt;img src=&#38;quot;http&#38;#39;.$ssl_suffix.&#38;#39;://&#38;#39;. $_SERVER[&#38;#39;HTTP_HOST&#38;#39;] .dirname($_SERVER[&#38;#39;PHP_SELF&#38;#39;]) .  &#38;#39;/data/form_&#38;#39; . $form_id . &#38;#39;/files/element_&#38;#39; . $element_id . &#38;#39;-&#38;#39;.  $file_1  . &#38;#39;&#38;quot; /&#38;gt; &#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with this&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$entry_details[$i][&#38;#39;value&#38;#39;] =&#38;#39;&#38;lt;img src=&#38;quot;http&#38;#39;.$ssl_suffix.&#38;#39;://&#38;#39;. $_SERVER[&#38;#39;HTTP_HOST&#38;#39;] .dirname($_SERVER[&#38;#39;PHP_SELF&#38;#39;]) .  &#38;#39;/data/form_&#38;#39; . $form_id . &#38;#39;/files/&#38;#39;.  $filename_basic  . &#38;#39;&#38;quot; /&#38;gt; &#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then go to around line 383, you'll see this code &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$file_1 	    =  substr($filename_value,strpos($filename_value,&#38;#39;-&#38;#39;)+1);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;put these code exactly above that line &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$filename_basic = $filename_value ;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>vinchenze on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-9719</link>
<pubDate>Thu, 17 Jun 2010 02:21:37 +0000</pubDate>
<dc:creator>vinchenze</dc:creator>
<guid isPermaLink="false">9719@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Did anything change?  I tried the above but am getting the broken image icon when viewing the email. I checked and double checked the code / changed code in both  includes/entry-functions.php and includes/helper-functions.php. I also made sure the uploaded images had no spaces. Any help would be appreciated.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-7581</link>
<pubDate>Tue, 06 Oct 2009 13:50:57 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">7581@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;What happened if the file being uploaded having spaces? Can you paste the generated code?
&#60;/p&#62;</description>
</item>
<item>
<title>thizzle on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-7572</link>
<pubDate>Mon, 05 Oct 2009 18:15:08 +0000</pubDate>
<dc:creator>thizzle</dc:creator>
<guid isPermaLink="false">7572@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This works fine ONLY if the file being uploaded does NOT have spaces in the filename! is there a fix for that?
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-7528</link>
<pubDate>Thu, 01 Oct 2009 13:21:58 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">7528@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;The code above only intended for images, since the point is to show the image directly. It won't work for any other file types.
&#60;/p&#62;</description>
</item>
<item>
<title>mav2u on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-7517</link>
<pubDate>Thu, 01 Oct 2009 08:24:44 +0000</pubDate>
<dc:creator>mav2u</dc:creator>
<guid isPermaLink="false">7517@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;When I made the changes mentioned above it worked good for photos.  Any other file format showed a broken image link with now download link.&#60;/p&#62;
&#60;p&#62;So no link to get the .pdf file that was uploaded.&#60;/p&#62;
&#60;p&#62;The code was in the email.  &#38;lt;td width=&#34;60%&#34; style=&#34;border-bottom:1px solid #DEDEDE;padding:5px 10px;&#34;&#38;gt;&#38;lt;img src=&#34;http://mydomain.com/machforms/data/form_5/files/testadobe.pdf&#34; /&#38;gt; &#38;lt;/td&#38;gt;&#60;/p&#62;
&#60;p&#62;Nothing to link the src= to a viable text link any more.  Email shows up blank.&#60;/p&#62;
&#60;p&#62;any thoughts to this?&#60;/p&#62;
&#60;p&#62;Jeremy
&#60;/p&#62;</description>
</item>
<item>
<title>mav2u on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-7515</link>
<pubDate>Thu, 01 Oct 2009 07:37:23 +0000</pubDate>
<dc:creator>mav2u</dc:creator>
<guid isPermaLink="false">7515@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Anyway to remove the naming it attaches to the photo?  &#60;/p&#62;
&#60;p&#62;Also, can it be added as a attachment to an email?  Instead of embedding it in the email?  If I had 4 upload image fields it would be nice to just have it as an attachment that I can open the email, save those four images quickly and move on.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Jeremy
&#60;/p&#62;</description>
</item>
<item>
<title>M202A1 on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-7310</link>
<pubDate>Tue, 15 Sep 2009 22:20:21 +0000</pubDate>
<dc:creator>M202A1</dc:creator>
<guid isPermaLink="false">7310@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Works fine now.
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-7283</link>
<pubDate>Fri, 11 Sep 2009 16:27:33 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">7283@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Hmm .. The code should be work fine, anyway could you send your modified file to  : &#60;/p&#62;
&#60;p&#62;customer.service[at]appnitro.com&#60;/p&#62;
&#60;p&#62;I will check it
&#60;/p&#62;</description>
</item>
<item>
<title>M202A1 on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-7275</link>
<pubDate>Fri, 11 Sep 2009 01:40:08 +0000</pubDate>
<dc:creator>M202A1</dc:creator>
<guid isPermaLink="false">7275@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;This code change has not worked for me.
&#60;/p&#62;</description>
</item>
<item>
<title>macat on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-2911</link>
<pubDate>Mon, 08 Sep 2008 19:25:04 +0000</pubDate>
<dc:creator>macat</dc:creator>
<guid isPermaLink="false">2911@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Well I tried it and it works fine, thanks.&#60;/p&#62;
&#60;p&#62;Belinda&#60;br /&#62;
happiness is being owned by cats ...&#60;br /&#62;
&#60;a href=&#34;http://BelindaSauro.com&#34; rel=&#34;nofollow&#34;&#62;http://BelindaSauro.com&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>halbtuerke on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-2864</link>
<pubDate>Fri, 05 Sep 2008 15:49:17 +0000</pubDate>
<dc:creator>halbtuerke</dc:creator>
<guid isPermaLink="false">2864@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thank you very much for your help. I will test it later and i will report back how everything went.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-2849</link>
<pubDate>Thu, 04 Sep 2008 18:36:31 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">2849@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Try this,&#60;/p&#62;
&#60;p&#62;1) Edit your &#60;strong&#62;includes/entry-functions.php&#60;/strong&#62; file, search around line 395 for this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$entry_details[$i][&#38;#39;value&#38;#39;] = &#38;#39;&#38;lt;img src=&#38;quot;&#38;#39;.$options[&#38;#39;machform_path&#38;#39;].&#38;#39;images/icons/attach.gif&#38;quot; align=&#38;quot;absmiddle&#38;quot; /&#38;gt;&#38;amp;nbsp;&#38;lt;a class=&#38;quot;entry_link&#38;quot; href=&#38;quot;http&#38;#39;.$ssl_suffix.&#38;#39;://&#38;#39;.$_SERVER[&#38;#39;HTTP_HOST&#38;#39;].dirname($_SERVER[&#38;#39;PHP_SELF&#38;#39;]).&#38;#39;/download.php?q=&#38;#39;.$q_string.&#38;#39;&#38;quot;&#38;gt;&#38;#39;.$filename_value.&#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;replace it with this one:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$entry_details[$i][&#38;#39;value&#38;#39;] =&#38;#39;&#38;lt;img src=&#38;quot;http&#38;#39;.$ssl_suffix.&#38;#39;://&#38;#39;. $_SERVER[&#38;#39;HTTP_HOST&#38;#39;] .dirname($_SERVER[&#38;#39;PHP_SELF&#38;#39;]) .  &#38;#39;/data/form_&#38;#39; . $form_id . &#38;#39;/files/element_&#38;#39; . $element_id . &#38;#39;-&#38;#39;.  $file_1  . &#38;#39;&#38;quot; /&#38;gt; &#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;2) Edit &#60;strong&#62;includes/helper-functions.php&#60;/strong&#62; file, search around line 349 for this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$data[&#38;#39;value&#38;#39;] = strip_tags($data[&#38;#39;value&#38;#39;],&#38;#39;&#38;lt;a&#38;gt;&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;replace it with this one:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$data[&#38;#39;value&#38;#39;] = strip_tags($data[&#38;#39;value&#38;#39;],&#38;#39;&#38;lt;a&#38;gt;&#38;lt;img&#38;gt;&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That would show the image into your email.
&#60;/p&#62;</description>
</item>
<item>
<title>halbtuerke on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-2826</link>
<pubDate>Tue, 02 Sep 2008 17:37:33 +0000</pubDate>
<dc:creator>halbtuerke</dc:creator>
<guid isPermaLink="false">2826@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;My co-worker wants to see the images directly in the emails without having to open it in a separate program. &#60;/p&#62;
&#60;p&#62;It's an application form where the people have to send us images of themselves and he wants it to look like a &#34;regular&#34; application where you can actually see the image beside the information.&#60;/p&#62;
&#60;p&#62;Greetings
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-2825</link>
<pubDate>Tue, 02 Sep 2008 17:15:36 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">2825@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hmm.. what about attaching the images, instead of embed?
&#60;/p&#62;</description>
</item>
<item>
<title>halbtuerke on "Embed uploaded images directly in sent email"</title>
<link>https://www.machform.com/forums/topic/embed-uploaded-images-directly-in-sent-email#post-2818</link>
<pubDate>Tue, 02 Sep 2008 03:20:13 +0000</pubDate>
<dc:creator>halbtuerke</dc:creator>
<guid isPermaLink="false">2818@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Thanks for your response. I will see what I can find in the source code and try to modify it to my needs.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
