Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email Photo to a Friend

Status
Not open for further replies.

lisalis99

Programmer
Joined
Jan 9, 2005
Messages
121
Location
US
Hi!

I see alot of Email this Link to a friend, is there a way, or a quick script) to have a Email this Photo and actully attach it in the message or have a link to the photo in a gallery?

Thanks,
Lisa
 
So there's no way to do this with Javascript at all? Our Content Management System is Client-Side only(Yes, it sucks)so we have to use Javascript for almost everything.

Thanks!
Lisa
 
You could email them the link, but not the actual image.

- MT
 
Are you saying that you can'g use any server-side script on your site?
 
Yep, I know, it's horrible...any ideas? Even using a link would be better than nothing, are there any good scripts for that here?

Thanks-
Lisa
 
Maybe you could use an HTML mailto ?
 
If you're saying that a link would be better then nothing, let me know. You can build something statically or dynamically, though dynamically would be significantly more involved for something like this. Hree's the basic structure of the link:

<a href="mailto:[EMAIL ADDRESS}?subject=[SUBJECT]?body=[BODY]">LINK</a>

Now, if you build that dynamically, you're good to go.

- MT
 
If I get the current URL with javascript, how can I get that to be the body of the email, how can I call that in the a href line of the email link?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top