Hi,

I have created a webform for a client. This form is an application form for his company. The visitors have the possibility to upload 2 photo's of themselves. The submitted webform is being send to the clients' email so he can see all the applications in his mailbox. Everything is presented in the right way but only the photo's aren't shown as they should be. I only get the name of the image which is a link to the folder where it is located on the server. When I press the like a browser is opened and I can see the image. I'm using the build-in editor of webform to custom its e-mail output. I tryed to put in the next line: Only local images are allowed. but it doesn't work.

I just want to show the image in the email.

I hope someone can help me with this!

Greetings

Comments

quicksketch’s picture

Status: Active » Postponed (maintainer needs more info)

Have you tried installing MIME Mail yet? What is the content of your template?

nielskirkels’s picture

I have installed the MIME Mail module and I can fully customize the e-mail layout but only the images do not show up.

Content of template:

Application form 360 Bar
Submitted on %date


Personal information
Name: Family name: Date of birth: Gender:
%value[personal_information][name] %value[personal_information][family_name] %value[personal_information][date_of_birth] %value[personal_information][gender]
 
Street: Zip code: City: Country:
%value[personal_information][street] %value[personal_information][zip_code] %value[personal_information][city] %value[personal_information][country]
 
Phone: E-mail address: Facebook name:
%value[personal_information][telephone_number] %value[personal_information][e_mail_address] %value[personal_information][facebook_name]
 
Upload two recent photo's of yourself What are your clothing sizes?
Recent photo 1: Jacket: Sweater:
Only local images are allowed.%value[personal_information][picture_1] %value[personal_information][jacket] %value[personal_information][sweater]
Recent photo 2: Pants: T-shirt:
Only local images are allowed.%value[personal_information][picture_2] %value[personal_information][pants] %value[personal_information][t_shirt]
 


Working experience
Relevant working experience:
Year (From - Till) Kind of job Function
%value[working_experience][from_till_1] %value[working_experience][kind_of_job_1] %value[working_experience][function_1]
Year (From - Till) Kind of job Function
%value[working_experience][from_till_2] %value[working_experience][kind_of_job_2] %value[working_experience][function_2]
Year (From - Till) Kind of job Function
%value[working_experience][from_till_3] %value[working_experience][kind_of_job_3] %value[working_experience][function_3]
 
What jobs have you done before? Have you done a season already?
%value[working_experience][what_function_do_you_aspire] %value[working_experience][summer] | %value[working_experience][winter]
 


Education
Relevant education:
Year (From - Till) Kind of education Results
%value[education][from_till_4] %value[education][kind_of_edu_1] %value[education][results_1]
Year (From - Till) Kind of education Results
%value[education][from_till_5] %value[education][kind_of_edu_2] %value[education][results_2]
Year (From - Till) Kind of education Results
%value[education][from_till_6] %value[education][kind_of_edu_3] %value[education][results_3]
 
Are you allowed to drive a car?
%value[education][can_you_drive]
 
Which languages do you speak? Other languages
%value[education][which_languages_do_you_speak] %value[education][other_languages]
 


Winter association
Have you been on a skiholiday? Do you ski or snowboard? What is your level? Have you ever been in Val Thorens?
%value[winter_association][amount_of_weeks] %value[winter_association][ski_or_snowboard] | %value[winter_association][level] %value[winter_association][do_you_know_val_thorens]
 


Job interest
Where do you prefer to work? What job are you interested in? What period are you available?
%value[job_interest][where_do_you_want_to_work] %value[job_interest][what_job_are_you_interested_in] %value[job_interest][what_period_are_you_available]
 


Describe yourself
What can you do really good?
%value[describe_yourself][what_can_you_do_really_good_maximum_up_to_50_characters]
 
Iam very bad at.....
%value[describe_yourself][i_am_very_bad_at_maximum_up_to_50_characters]
 
Why shall we take you onboard?
%value[describe_yourself][why_shall_we_take_you_onboard_maximum_up_to_100_characters]
 
What can you do really good?
%value[describe_yourself][what_is_your_motivation_maximum_up_to_100_characters]
 

vernond’s picture

Priority: Major » Normal
Status: Postponed (maintainer needs more info) » Closed (works as designed)

You should use the HTML <img> tag if you want the images rendered in your email body.

nielskirkels’s picture

Yeah I tried that: < img src="%value[personal_information][picture_1]" > but this does not work.

smptebars1’s picture

I have the same issue. I have it set so the customer can email a webpage to a friend to show them a product.
the email sends and has everything it should except the pictures. I can see the link to the photo which for one is, "img src=http://www.time-master.com/sites/default/files/imagecache/product_full/i..." but it does not work with jpeg files as well.
if I click the placeholder in the email it takes me to the website but will not show the photo as well.

please try this for yourself. goto: time-master.com and find a product, you will find a email link at the bottom of the page.... see what happens?
seems like a lot of people have this issue and if I can figure it out, I will do a write up on this for future users.... thanks

smptebars1’s picture

okay, after going around and around all day with different modules that may be causing the problem, checking my hotlink protection...ect. I finally realized it was my .htaccess file blocking the calls.
the rewrite rule for my graphics. If you are experiencing this same issue check this.

#Do not allow these file types to be called
Rewrite engine on
Rewrite rule.*\.(jpeg | jpg | png | gif)$ - [F,NC]

I removed the graphic extensions I need to allow threw and pics now show in the email.

tusshar.kant’s picture

Version: 6.x-3.11 » 7.x-3.16
Assigned: Unassigned » tusshar.kant
Priority: Normal » Critical

Hello all, I am having the same problem. Actually this %value[personal_information][picture_1] results in the hyperlink and not the url.... I also need suggestion on this and how to rectify it... please reply soon..