Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-16-2012, 04:29 AM   PM User | #1
runeveryday
Regular Coder

 
Join Date: Jul 2009
Posts: 152
Thanks: 8
Thanked 0 Times in 0 Posts
runeveryday can only hope to improve
How to send the image to the email box?

i use phpmail http://phpmailer.worxware.com/ class to send the form information, there is an image in the form like this

Code:
<form.....>

<div><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(42, 42); ?></div>


</form>
how to send the image to the email box? thank you.
runeveryday is offline   Reply With Quote
Old 12-16-2012, 05:57 AM   PM User | #2
Fumigator
UE Antagonizer


 
Fumigator's Avatar
 
Join Date: Dec 2005
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
Fumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of light
Format the email as HTML and include the image as an <img> tag.
__________________
Fumigator is offline   Reply With Quote
Old 12-17-2012, 06:54 AM   PM User | #3
misteroram01
New Coder

 
Join Date: Sep 2012
Posts: 13
Thanks: 0
Thanked 2 Times in 2 Posts
misteroram01 is an unknown quantity at this point
Quote:
Originally Posted by Fumigator View Post
Format the email as HTML and include the image as an <img> tag.
True, this is the perfect answer. I have used it and it really works. Thank you.
misteroram01 is offline   Reply With Quote
Old 12-17-2012, 12:33 PM   PM User | #4
alemcherry
New Coder

 
Join Date: Apr 2010
Posts: 55
Thanks: 0
Thanked 4 Times in 4 Posts
alemcherry is an unknown quantity at this point
Most email clients will by default block all images in mail content, by default - especially commercial looking mails. So if possible, do not use images at all.
__________________
Hosting Reviews and Discounts: Bluehost Coupon and Hostmonster Coupon
alemcherry is offline   Reply With Quote
Old 12-17-2012, 02:34 PM   PM User | #5
durangod
Senior Coder

 
Join Date: Nov 2010
Posts: 1,177
Thanks: 214
Thanked 31 Times in 30 Posts
durangod is on a distinguished road
Quote:
Originally Posted by alemcherry View Post
Most email clients will by default block all images in mail content, by default - especially commercial looking mails. So if possible, do not use images at all.
So true, when i did my ecard mod all the hotmail people got was a box with an x in it because hotmail by default blocks images. So what i had to do was change the email to have them log on to look at their ecards and build a view page for them to see them.


So if you are planning to send images in email, take that into consideration as alemcherry said and save yourself alot of work.
durangod is offline   Reply With Quote
Old 12-17-2012, 03:32 PM   PM User | #6
idalatob
Regular Coder

 
Join Date: Sep 2007
Location: Grahamstown, South Africa
Posts: 237
Thanks: 6
Thanked 17 Times in 17 Posts
idalatob is on a distinguished road
Some email clients have actually started blocking text too. Now we're at a situation where you have to use whitespace to get your message across.
idalatob is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:24 PM.


Advertisement
Log in to turn off these ads.