PDA

Click to See Complete Forum and Search --> : sending mail


nmretd
Jul 5th, 2000, 07:31 AM
I am using the code below to allow people to send mail on my page. It completes the To: field and Subject: field

<BODY>

<FORM>
<INPUT TYPE="button" VALUE="Feedback" onClick="parent.location='mailto:editor@tot.com?subject=Check out this page !'">
</FORM>

This works fine, but how can I amend this so that I can place a URL in the content area of the e-mail ?

vbsquare
Jul 5th, 2000, 07:34 AM
You really should use something a little more professional than that, such as Microsoft's Collabrative Data Objects through ASP:

<%
Set CDO = Server.CreateObject("CDONTS.NewMail")
CDO.Subject = "subject"
CDO.To = "toemail"
CDO.From = "me!"
CDO.Body = "This is the body"
CDO.Send
%>

RogerH
Jul 5th, 2000, 08:39 AM
<BODY>

<FORM>
<INPUT TYPE="button" VALUE="Feedback" onClick="parent.location='mailto:editor@tot.com?subject=Check out this page !'&body=Your body comes here">
</FORM>


Roger

nmretd
Jul 5th, 2000, 10:24 AM
Thanks guys