Click to See Complete Forum and Search --> : Imagetoolbar (Email option)


jaanemun
04-14-2006, 08:34 AM
Hi

Can i get the code behind the Imagetoolbar (Send this in an email).

I have designed the simple html page with one image and two button
'Print' and 'Email' when i click on the print button the html document is printing(i have used the code javascript window.print()) but i'm not able to get the code for Email . I'm looking for the functionality same like when i click on "Send this in an email" on "Imagetoolbar" (third icon of the imagetoolbar). But i need this functionality to work when i click on 'Email' button on the html document.

Thanks
Jaan

CrazyMerlin
04-14-2006, 12:45 PM
for the button's onclick event, you can have a prompt open to get the email address of the person to send the email to and then use the ugly way of sending emails via the mailto: format.

however, it is much better to have a sendmail command. Just check with your ISP if you can use cgi, and ask for the location of the formmail script, then learn how to use it (it is easy).

alternatively, you could popup a php window asking for the email address and have a textarea for them to enter anything else they wish to send with the email, and then use PHP's mail() function to send the whole thing as a formatted html email....if you do this, make sure to change the MIME type or you'll just get plain text emails.

Pick an option and ask back and I'm sure we'll find time to help.....if you choose the php option, ask i the php forum, not here ;)


CM

jaanemun
04-14-2006, 02:39 PM
This one is client custom software
i cannot use PHP are any sort of email object.

actualy the images and software which runs on the browser is burned on CD. and when client insert the disk in CD drive it automatically opens the browser
the URL Address in browser is 'E:\kidsafe.html'
and runs the html document and which references the XML Data.

Files on the CD
- Some of jpg files
- html document
- xml file for data to display in html
- autorun file

When i click on the Imagetoolbar (third button 'Send this in an email') it opens the Microsoft Outllook and attaches image byitself and ask user to enter the email address To.

I want the same functionality to work from the Seperate Button which i have on my html document.

thanks a lot for spending your time to reply.

Thanks

felgall
04-14-2006, 03:52 PM
What's Outlook Express? Oh yes one of the programs I deleted from all my computers many years ago when I saw how useless it was.

You can't pass information from forms to an email program. The best way to open an email program (assuming that there is one installed on the computer) is via a simple link:

<a href="mailto:me@mydomain.com">SPAM ME</a>

jaanemun
04-17-2006, 02:29 PM
I need to attach the image from the html page to email program.

What basically is on the html page we have one image and email button. when the user clicks on the email button it should open the email programe(outllok Express) and should attach image to email.


By Clicking <a href="mailto:me@mydomain.com">SPAM ME</a>
it opens email program but how can i attach the image to email.

On I.E 6 the image on html popsup the imagetoolbar in thier the functionality of email is what i need to work from email button from html page.

Thanks for response.