Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Send To Email Form?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

JJenson
Advanced Member

USA
2121 Posts

Posted - 07 September 2007 :  12:31:22  Show Profile  Visit JJenson's Homepage
I am trying to have a form that has a Sent To area that they input in a email address and it sends the message to whomever they put in there. Also with this is sends a Animated gif in the email.

I have made this is php but I need to conver to .asp and not sure how to do this.

This is what I have.

Form:

<form method="post" action="confirmation.asp">
<input type="hidden" value="contactResult.html" name="redirect" />
<table cellpadding="0" cellspacing="10" border="0" align="center">
<tr>
<td><strong>Send to:</strong></td>
<td><input name="recipient" type="text" size="25" value="<email address>" onclick="this.value='';" /></td>
</tr>
<tr>
<td><strong>From:</strong></td>
<td><input name="FromEmail" type="text" size="25" /></td>
</tr>
<tr>
<td colspan="2"><strong>Reason for Throwing Flag:</strong></td>
</tr>
<tr>
<td colspan="2"><textarea name="Reason" cols="27" rows="10"></textarea></td>
</tr>
<tr>
<td colspan="2" align="center"><input name="submit" type="submit" value="Throw Now!" /></td>
</table>

</form>


This is confirmation.asp:


<%

Set objCDOSYSMail = Server.CreateObject("CDO.Message")
Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")

objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "127.0.0.1"
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
objCDOSYSCon.Fields.Update

Set objCDOSYSMail.Configuration = objCDOSYSCon
objCDOSYSMail.From = "no-reply@bsflag.com"
objCDOSYSMail.To = "support@thebragboard.com"
objCDOSYSMail.Subject = "BS Industries - You've Been Flagged!"
objCDOSYSMail.HTMLBody = "<html xmlns='http://www.w3.org/1999/xhtml'>
<body bgcolor='#FFD75B'><br /><br />
<table cellpadding='10' cellspacing='0' border='0' align='center' bgcolor='#ffffff'>
<tr>
<td align='center'><img src='http://client.logoworks.com/BSindustries/flash/BS-flagGIF.gif' width='301' height='141' /></td>
</tr>
<tr>
<td align='center' width='600'><h1>" &request.form("FromEmail")&vbnewline " has sent you the BS Flag</h1>
<h2>for the following reasons:</h2>
<blockquote>" &request.form("Reason")&vbnewline "</blockquote>
<p><em>Learn more about the BS Flag at <a href='http://www.bsflag.com'>www.bsflag.com</a>.</em></p></td>
</tr>
</table>
<br /><br />
</body>
</html>";

objCDOSYSMail.Send

Set objCDOSYSMail = Nothing
Set objCDOSYSCon = Nothing

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Thank You For Your Question</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body onLoad="MM_goToURL('parent','contactResult.html');return document.MM_returnValue">
</body>
</html>


I cannot seem to get these to communicate who to send the email to. you can see the form here.

www.makeityourweb.com/TEST/index.html

Does anyone know how to get the two to work together?

Thanks

JJenson
Advanced Member

USA
2121 Posts

Posted - 07 September 2007 :  13:30:08  Show Profile  Visit JJenson's Homepage
Nevermind kept playing and playing and finally got this too. I should stop asking and just take the extra time figureing it out until i get it
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 07 September 2007 :  14:33:03  Show Profile  Visit AnonJr's Homepage
Sometimes I've found that the act of explaining it all in a post can help organize your thoughts and put the problem into the right context - making it easier to figure out.... sometimes.
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 07 September 2007 :  14:58:05  Show Profile  Visit JJenson's Homepage
This actually happens to me alot. lol

I start to explain and as I explain everything low and behold there is my problem and I can fix it.
Go to Top of Page

TastyNutz
Junior Member

USA
251 Posts

Posted - 07 September 2007 :  19:43:25  Show Profile  Visit TastyNutz's Homepage
Wouldn't hurt to share your solution, in case others find it useful. :)


PowerQuad Disability Support Forum
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 07 September 2007 :  23:58:37  Show Profile  Visit JJenson's Homepage
Will do once I get back on my other computer I will get the file and show what I did.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.88 seconds. Powered By: Snitz Forums 2000 Version 3.4.07