Smart Mailer ASP Support Product Page
Answered
Form is up, but results aren't being sent- no errors listed
Asked 11 Mar 2010 18:42:20
1
has this question
11 Mar 2010 18:42:20 heather m posted:
Hello!I've created an ASP form, uploaded it to the server, along with the script. My server settings are as follows: Path Type: Related, Component: CDO Windows XP,2000 and my Ignore Errors box is unchecked.
But when I fill out the form hit send, the form doesn’t go anywhere? I’ve tried changing the component settings, but nothing seems to work.
Any help you could offer would be extremely appreciated! Thanks!!!!!!!
Replies
Replied 15 Mar 2010 12:14:12
15 Mar 2010 12:14:12 Miroslav Zografski replied:
Hello Heather,
Please provide more information on the set up -message body: text or HTML, is there dynamic variables loaded for any part of the From, To, body etc.
And, please, provide the code of the sending page to my email:
Regards,
Please provide more information on the set up -message body: text or HTML, is there dynamic variables loaded for any part of the From, To, body etc.
And, please, provide the code of the sending page to my email:
Regards,
Replied 17 Mar 2010 22:50:12
17 Mar 2010 22:50:12 heather m replied:
Hi Miroslav,
Thank your for replying to my post on the DMXZone.com Support Forum. I really appreciate you taking the time to help me with the issue that having getting SmartMail to work with Dreamweaver. I think I might have set-up the original form incorrectly, using just textfields, instead of dynamic text fields. So I corrected that issue. Now when I type in my test and hit send, here is the error that I'm getting.
SendMail Error: At least one of the From or Sender fields is required, and neither was found. , code = -2147220979
The live test page is:
www.themeadowsfoundation.org/aform.asp
Thanks again! -heather
<<---------------------------------Here is the code for the Inc.smartmailer.asp--------------------------------------------------->>
Thank your for replying to my post on the DMXZone.com Support Forum. I really appreciate you taking the time to help me with the issue that having getting SmartMail to work with Dreamweaver. I think I might have set-up the original form incorrectly, using just textfields, instead of dynamic text fields. So I corrected that issue. Now when I type in my test and hit send, here is the error that I'm getting.
SendMail Error: At least one of the From or Sender fields is required, and neither was found. , code = -2147220979
The live test page is:
www.themeadowsfoundation.org/aform.asp
Thanks again! -heather
<<---------------------------------Here is the code for the Inc.smartmailer.asp--------------------------------------------------->>
Replied 18 Mar 2010 10:12:22
18 Mar 2010 10:12:22 George Petrov replied:
Hi Heather,
We need the code generated on your page - not the include file. So we can see what properties you have entered.
Seems that the send From or To field are just empty ... as the error suggests. So you might want to check those and make sure they have a value.
Greetings,
George
We need the code generated on your page - not the include file. So we can see what properties you have entered.
Seems that the send From or To field are just empty ... as the error suggests. So you might want to check those and make sure they have a value.
Greetings,
George
Replied 22 Mar 2010 19:28:37
22 Mar 2010 19:28:37 heather m replied:
Hi George,
Below is the code from the actual live test page. I see that the sml.setTo has my name and e-mail address. But it still isn't sending the results. Thanks for your help!
Below is the code from the actual live test page. I see that the sml.setTo has my name and e-mail address. But it still isn't sending the results. Thanks for your help!
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <!--#include file="ScriptLibrary/incSmartMailer.asp" --> < %' Smart Mailer 1.0.8 ' Send on submit of form form1 if Request.ServerVariables("REQUEST_METHOD") = "POST" then Server.ScriptTimeout = 300 Set sm1 = new SmartMailer sm1.checkVersion "1.08" sm1.contentCharset = "us-ascii" Session.CodePage = sm1.getCodepage() sm1.smtpSetup "", "", "", "" sm1.pickup = "" sm1.component = "cdo" sm1.tmpFolder = "" sm1.embedImages = false sm1.progressBar = "" sm1.ignore_errors = false sm1.useQueue = false sm1.setFrom Request.Form("name"), Request.Form("email") sm1.setTo "Heather Ann", "hmcweeney@yahoo.com" sm1.setCc "", "" sm1.setBcc "", "" sm1.Subject = "" & (Request.Form("company")) & "" ' using static for body sm1.setBody_Static_html "" & (Request.Form("name")) & "" & vbCRLF & "" & (Request.Form("company")) & "" & vbCRLF & "" & (Request.Form("email")) & "" ' Attachments none sm1.sendMail "one" end if SM_mailAction = getMailAction() %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <form id="form1" name="form1" method="post" action="<%=SM_mailAction%>"> <table width="354" cellspacing="2" cellpadding="1"> <tr> <td width="236">name <input name="name" type="text" id="name" /></td> <td width="102"> </td> </tr> <tr> <td>company <input name="company" type="text" id="company" /></td> <td> </td> </tr> <tr> <td>email <input name="email" type="text" id="email" /></td> <td> </td> </tr> <tr> <td><input type="submit" name="Submit" value="Submit" /></td> <td> </td> </tr> </table> </form> </body> </html>
Edited by - heather m on 22 Mar 2010 19:29:24