Solved

How I send image to email

Posted on 2011-02-12
7
133 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 109

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 109

Accepted Solution

by:
Ray Paseur earned 250 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 8

Assisted Solution

by:rationalboss
rationalboss earned 250 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

813 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

19 Experts available now in Live!

Get 1:1 Help Now