Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How I send image to email

Posted on 2011-02-12
7
Medium Priority
?
143 Views
Last Modified: 2013-11-27
How I can send image to email ?

I have this site how I can add some script to send the displayed image without big modification

http://www.pgallery.bwor.net/InterPhoto-200.html

This is code responsible to display image
{if $previmageid}<a href="{'InterPhoto.php'|GetUrl:'id':$previmageid}" title="{$lan_prev}"><img src="{$templateurl}images/prevbutton.gif" align="absmiddle" class="prevbutton"></a>{else}<img src="{$templateurl}images/prev_next_no_button.gif" align="absmiddle" class="prevbutton">{/if}<img src="InterPhoto.image.php?file={$image.path|cat:"/"|cat:$image.imageid|cat:"/"|cat:$image.filename|InterEncode}" align="absmiddle" class="bigimage" />{if $nextimageid}<a href="{'InterPhoto.php'|GetUrl:'id':$nextimageid}" title="{$lan_next}"><img src="{$templateurl}images/nextbutton.gif" align="absmiddle" class="nextbutton"></a>{else}<img src="{$templateurl}images/prev_next_no_button.gif" align="absmiddle" class="prevbutton">{/if}

Open in new window

0
Comment
Question by:wz-exexch-fg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 34878419
Are you asking how you can send the image as an email attachment?  Or in the body of the email?

If it were my application, I might do neither, but instead send a URL link to the image with a note that tells the client, "To download this image, right click, copy and save."
0
 

Author Comment

by:wz-exexch-fg
ID: 34878425
send an email attachment
0
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 1000 total points
ID: 34878646
Make a Google search for these exact terms: php send email with attachment

Both PHP.net and SitePoint have good references.  Example:
http://php.net/manual/en/function.mail.php
http://articles.sitepoint.com/article/advanced-email-php

And PHP.net contains this nugget:
If intending to send HTML or otherwise Complex mails, it is recommended to use the PEAR package » PEAR::Mail_Mime.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 8

Assisted Solution

by:rationalboss
rationalboss earned 1000 total points
ID: 34879246
0
 

Author Comment

by:wz-exexch-fg
ID: 35086023
I will check the all answers
0
 
LVL 16

Expert Comment

by:CWS (haripriya)
ID: 39680209
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question