|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
<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 |
|
#2
|
|||
|
|||
|
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 |
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > asp code problem in asp smartmail |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|