Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 27th, 2004, 03:51 PM
synergy synergy is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 3 synergy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy asp code problem in asp smartmail

<HTML>

<H1>aspSmartMail : Sample 3</H1>

<HR>

<%

On error resume next

Dim mySmartMail

Set mySmartMail = Server.CreateObject("aspSmartMail.SmartMail")

' Mail Server

' ***********

mySmartMail.Server = "mail.abc.com"

' From

' ****

mySmartMail.SenderName = Request("SenderName")

mySmartMail.SenderAddress = Request("SenderAddress")

' To

' **

mySmartMail.Recipients.Add Request("jim@abc.com"), Request("forms")

mySmartMail.Recipients.Add "jim@abc.com", "forms"

' Parameter

' *********

mySmartMail.Priority = Request("Priority")

' Message

' *******

mySmartMail.Subject = Request("Subject")

mySmartMail.Body = Request("Body")

' Send the message

' ****************

mySmartMail.SendMail

if err.number <> 0 then

response.write("Error n° " & err.number - vbobjecterror & " = " & err.description & "<br>")

else

Response.Write "aspSmartMail has sent your message."

end if

set mySmartMail = nothing

%>

Thanks

</body>

</html>

----------------------------------------

The form does get to my mailbox but the contents of the form is always blank!

I do not get the form text fields as laid out in the html form, nor do I get the results of the 'filled in' part by the sender!
I'm assuming a simple solution but for the life of me I can't find it or see it!! Please Help!
----------------------------------------

Here's the form:

<form Method="POST" Name="SmartMail" Action="../cgi-bin/asp2.asp">

<input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE, REMOTE_USER">

<!-- STEP 2: Put your email address in the 'recipients' value. -->

<input type="hidden" name="recipients" value="jim@abc.com">

<!-- STEP 3: Specify required fields in the 'required' value -->

<input type="hidden" name="required" value="SenderAddress:Your email address,SenderName:Your name">

<!-- STEP 4: Put your subject line in the 'subject' value. -->

<input type="hidden" name="subject" value="International Registration">

<table border="1" width="440" bordercolor="#008000" style="border-collapse: collapse" cellpadding="0" cellspacing="0">

<tr>

<td width="193">

<p align="center">Please enter your name:

<td width="237">

<p align="center"><input type="text" name="SenderName" size="20">

<tr>

<td width="193">

<p align="center">Please enter your email address:

<td width="237" bgcolor="#FFFF00">

<p align="center"><input type="text" name="SenderAddress" size="20"></TR>

<table bgcolor="#4682b4">

</table>

<table bgcolor="#FFFFFF" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">

<tr>



<td align="right">Curling Club</td>

<td><input type="TEXT" name="ClubName" value size="35"></td>

</tr>

<tr>



<td align="right">Country (State if USA):</td>

<td><input type="TEXT" name="Country" value size="35"></td>



<tr>

<td align="right">Internet Address:</td>

<td><input type="TEXT" name="URL" value size="35"></td>

</tr>

</table>

<h3 align="center">Comments</h3>

<blockquote>

<p align="center"><textarea name="Comments" rows="4" cols="45"></textarea></p>

</blockquote>

<p align="center"><input type="SUBMIT" value="Submit Form"><input type="RESET" value="Reset Form"></p>

</form>

</td>

</tr>

</table></CENTER>

Last edited by synergy : October 2nd, 2004 at 09:13 AM. Reason: getting junk mail

Reply With Quote
  #2  
Old September 30th, 2004, 04:45 PM
techyashish techyashish is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: California,UA
Posts: 42 techyashish User rank is Private First Class (20 - 50 Reputation Level)techyashish User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 3 h 43 m 21 sec
Reputation Power: 5
Send a message via MSN to techyashish Send a message via Yahoo to techyashish Send a message via Google Talk to techyashish
hi there

i cannot see what are you sending with your code, i mean
i cannot see the contents going thru send mail
they are surely be empty u have to make a string and request
all the field names and then put them in string and then put it in body then send it thru
send mail

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > asp code problem in asp smartmail


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway