Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jul 2009
    Posts
    152
    Thanks
    8
    Thanked 0 Times in 0 Posts

    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.

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Format the email as HTML and include the image as an <img> tag.

  • #3
    New Coder
    Join Date
    Sep 2012
    Posts
    13
    Thanks
    0
    Thanked 2 Times in 2 Posts
    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.

  • #4
    New Coder
    Join Date
    Apr 2010
    Posts
    55
    Thanks
    0
    Thanked 4 Times in 4 Posts
    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

  • #5
    Senior Coder
    Join Date
    Nov 2010
    Posts
    1,383
    Thanks
    264
    Thanked 32 Times in 31 Posts
    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.

  • #6
    Regular Coder
    Join Date
    Sep 2007
    Location
    Grahamstown, South Africa
    Posts
    237
    Thanks
    6
    Thanked 17 Times in 17 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •