Forum Moderators: open
Can anyone explain to me how you do this?
Sorry I am new to web design and coding so any help would be greatly appreciated.
Thanks
fee
I would like a visitor to send a postcard of the site to a friend if he/she thought it would be of interest to them.
The friend would receive an html email with a photo and a bit of text from the visitor with a link to the site.
That's really what I would like to know how to do. Sorry I didn't explain myself at the outset.
Hope someone can help.....
fee
The above langauges have pre-installed email creation and sending components which allow you to format the body etc. of your email, in which you could set the link of the image (based on the users choice) and insert the link. It is starightforward enough (assuming you know the language!) depending on the level of complexity you wish to include.
Is this what you had in mind?
Anyhow, you can get some nice ASP tutorials at www.asp101.com [asp101.com] and www.aspin.com [aspin.com] to name just two.
The area's to look into are:
The code for creating your email could look something like:
set mailobj = server.CreateObject("CDONTS.Newmail")
mailobj.From = FromEmailAddress
mailobj.To = ToEmailAddress
mailobj.Subject = "Postcard from www.mysite.com"
mailobj.Body = mailBody
mailobj.Send
set mailobj = nothing
And a small example of how to format the body:
mailBody = "Some Header Text" & vbCr & vbCr
mailBody = mailBody & "HTML code for the email" &vbCr
You can then pull in the relative image code, names, text etc. using variables assigned to the form values
userComments = Request.Form("comments")
The best advise I can give is to have a look at some online tutorials and also buy yourself and book!
HTH
BlobFisk
Mastering Active Server Pages by A Russell Jones is a good start - although if you like the Teach Yourself in 21 Days books (which I'm not particularly fond of) that would do the job too.
Browse around your local bookshop and see which one appeals to you most in terms of teaching techniques, layout, language style etc.
Good luck!
BlobFisk