ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Email an image to "a friend?"

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> JavaScript / DHTML / HTML / CSS
View previous topic :: View next topic  
Author Message
tygerbug



Joined: 01 Dec 2005
Posts: 3

PostPosted: Thu Dec 01, 2005 6:20 am    Post subject: Email an image to "a friend?" Reply with quote

Need some help here. Need to write a script that sends a comic strip to a "friend's" email address via a form. Also need to include a livejournal in a site.

I know very little about scripting, and in the tests I've done, the server hasn't responded to my ASP and PHP commands.

Which is why I'm posting this in the client side forum - however, if it can't be done on the client side, I'd like some information on how to do this with ASP or PHP or whatever.

This is a page of comics.
http://greenhousecomics.com/comics.htm

We're going to put every comic into its own popup window, like this (from another comic site):

http://www.rustletheleaf.com/media/comic-page-rustle.asp?strip=rustle051120.jpg

And there will be a link to "email this strip to a friend!"

So I need users to be able to click that link, and some HTML will be emailed to their friend, with that comic strip included and a little message.


Anyway, I don't think my server can use server side scripting.

Like, these tests have resulted in nothing. Just quick "include" tests, and a test to see if the site could display date/time.

<?php
include ("http://www.livejournal.com/users/earthworm59");
?>

<!--#include virtual="http://www.livejournal.com/users/earthworm59" -->

<!--#config timefmt="%A, %d %B %Y"--><!--#echo var="DATE_LOCAL"-->



Any help here would be nice.

tygerbug at yahoo.com is the email.
_________________
http://orangecow.org
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Thu Dec 01, 2005 9:54 pm    Post subject: Reply with quote

You cannot send an email using server-side script. You need to use either ASP, PHP or any other server-side programming environment.

Are you getting errors when you run your test ASP and PHP scripts?



Thanks,
_________________
Peter
ASP & ASP.NET Articles and Tutorials
Back to top
View user's profile Send private message
tygerbug



Joined: 01 Dec 2005
Posts: 3

PostPosted: Fri Dec 02, 2005 4:04 am    Post subject: Reply with quote

Yes, I'm getting blank pages, nothing happening. So clearly the server I was using wasn't set up to use that script.


Regardless, if I WAS able to get PHP or ASP going, what script would I have to input to get this to work?
_________________
http://orangecow.org
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Thu Dec 08, 2005 1:23 pm    Post subject: Reply with quote

Check this article to learn how to send an email from ASP with CDOSYS:

http://www.aspdev.org/articles/asp-cdosys/
_________________
Peter
ASP & ASP.NET Articles and Tutorials
Back to top
View user's profile Send private message
tygerbug



Joined: 01 Dec 2005
Posts: 3

PostPosted: Thu Dec 08, 2005 7:16 pm    Post subject: Reply with quote

That's a very simple script, but not knowing the language I'd need a bit more help with constructing a more complex script that emails the exact image on the page .... Hm.
_________________
http://orangecow.org
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Sun Dec 11, 2005 3:22 pm    Post subject: Reply with quote

You can send the message in HTML format and you can insert the iamge as you would on a regular HTML page.
_________________
Peter
ASP & ASP.NET Articles and Tutorials
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> JavaScript / DHTML / HTML / CSS All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group

SQL Tutorial