Current location: Hot Scripts Forums » General Community » Script Requests » helppp please smtp script


helppp please smtp script

Reply
  #1 (permalink)  
Old 03-21-11, 06:34 AM
rolancoveptica1 rolancoveptica1 is offline
New Member
 
Join Date: Mar 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
helppp please smtp script

pls can you help soooooo appreciate this.... script as follows. basically i would like users to be able to submit the form >straight to my email. users do not have email accounts, hence form to mail, and not mailto (as i understand) and have confirmed that the server is working fine...thanks again.....
<form action="formtomail.asp" method="post">
<table>
<tbody>
<tr>
<td><font face="Arial" color="#0000ff"><strong>UserName</strong></font></td>
<td><input maxlength="100" name="UserName">&nbsp; </td></tr>
<tr>
<td><font face="Arial" color="#0000ff"><strong>Contract</strong></font></td>
<td><input maxlength="100" name="Contract">&nbsp; </td></tr>
<tr>
<td>
<p align="center"><font face="Arial"
color=#0000ff><strong>Query</strong></font></p></td>
<td><textarea name="comments" rows="10" cols="50"></textarea> </td></tr>
<tr>
<td></td>
<td><input type="submit" value="Submit">
</td></tr></tbody></table></form></font></a><%
For Each x In Request.Form
message = message & x & ": " & Request.Form(x) & CHR(10)
Next
set smtp=Server.CreateObject("ASPMAIL.smtp")
smtp.Server="xxxxxxxxxxxxxxxcapita.co.uk"
smtp.Rcpt="xxxxxxxxxxxxxxxxx@capita.co.uk"

smtp.FromName="Username"
smtp.Subject="Eptica Query"
smtp.Message = message
on error resume next
smtp.Send
if err then
response.Write err.Description
else
Response.redirect ("http:// redirect.com")
end if
set smtp = Nothing
%>
<p></p></h1>
<h1></h1></h1></body></html>
Reply With Quote
Reply

Bookmarks

Tags
asp, formtomail, script, smtp


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom php script needed alley Job Offers & Assistance 5 06-30-10 02:14 AM
Login Script v1.9 Problem SuavyDoodle JavaScript 8 09-28-06 09:13 PM
Help me with this script !!! phpfreek Job Offers & Assistance 0 04-12-06 05:19 PM


All times are GMT -5. The time now is 10:07 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.