Solved

How I send image to email

Posted on 2011-02-12
7
130 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
7 Comments
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
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
Comment Utility
send an email attachment
0
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 250 total points
Comment Utility
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 8

Assisted Solution

by:rationalboss
rationalboss earned 250 total points
Comment Utility
0
 

Author Comment

by:wz-exexch-fg
Comment Utility
I will check the all answers
0
 
LVL 16

Expert Comment

by:CWS (haripriya)
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
spacing 5 24
Re-imbursement Claim System 3 20
Button Click 11 22
Return data with AJAX, JQUERY and PHP 13 24
This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now