הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   עזרה בטופס תמיכה בASP. (https://hosts.co.il/forums/showthread.php?t=32342)

ditale 07-10-06 14:29

עזרה בטופס תמיכה בASP.
 
טוב אז ככה:
אחרי שאני ממלא את כל הפרטים ועושה SUMBIT הוא עושה לי דף שגיאה, אולי זה כי לא מלאתי את הפרטים איפו שצריך או חסר איזה דף, אשמח לקבל עזרה:
הנה הדף הראשון [ MailForm.asp ] :


קוד:

<html>
<head>
<title>emailform</title>
</head>
<body>
<form method="post" action="SendMail.asp">
  Complete this form and click the submit-button. We will answer your
  questions as soon as possible.
  <br><br>
  Your name <br>
  <input type="text" size="25" name="name"><br> 
  Your email<br>
  <input type="text" size="25" name="email"><br>
  Recipient email <br>
  <input type="text" size="25" name="recipient"><br>
  State your business <br>
  <select name="subject" size="1">
    <option value="help">help
      <option value="tips">tips
      <option value="other">other
  </select>
  <br>
  Enter your question <br>
  <textarea name="body" cols="40" rows="15"  Wrap="PHYSICAL"></textarea>
  <br>
  <input type="submit" value="  Submit ">
</form>
</body>
</html>

והנה הדף של הקוד [ SendMail ] :

קוד:

<html>
<head>
<title>Dimac</title>
</head>
<body>
<p align="center"><font face="Arial, geneva" size="5">Email Form<br>
eMail sent</font></p>
<%
Name  = Request.Form("name")
SenderEmail  = Request.Form("email")
Subject  = "Regarding " & Request.Form("subject")
Recipient  = Request.Form("recipient")
Body  = Request.Form("body")
Set JMail = Server.CreateObject("JMail.SMTPMail")
' Below you should enter your own SMTP-server
JMail.ServerAddress = "xxx.zzz.yyy"
JMail.Sender = Senderemail JMail.Subject = Subject
JMail.AddRecipient Recipient
JMail.Body = Body
JMail.Priority = 3
JMail.AddHeader "Originating-IP", Request.ServerVariables("REMOTE_ADDR")
JMail.Execute
%>
<center>
<font face="Arial, geneva" size="3">
Your email has been sent to <%= Recipient %><br>
</font>
</center>
</body>
</html>

ואשמח להסבר מקיף על כל המשתנים בקוד.
אני מזכיר שמה שאני בעצם צריך זה תשובה איך אני פותר את הבעיה ששולחים את הטופס וזה רושם שגיאה:
The page cannot be displayed


Balrog 07-10-06 14:43

טוב קודם כל בדף SendMail
יש לך שורה - JMail.Sender = Senderemail JMail.Subject = Subject

וזה אמור להיות בשתי שורות, לא?

לגבי הודעת השגיאה - אפשר לעשות שזה יציג את השגיאה המלאה
הולך ל:
tools -> internet options -> advanced
ומוריד את ה-V מ Show Friendly http errors או משהו בסגנון.

ואז תוכל לראות שגיאה מפורטת.

ditale 07-10-06 14:59

תודה רבה אבל אשמח לפתרון לבעיה .

eLad 07-10-06 15:06

ציטוט:

נכתב במקור על ידי ditale
תודה רבה אבל אשמח לפתרון לבעיה .

תן את השגיאה

ציטוט:

tools -> internet options -> advanced
ומוריד את ה-V מ Show Friendly http errors או משהו בסגנון.

Balrog 07-10-06 15:06

ditale - עשית מה שהצעתי?
אם תתן את השגיאה המדוייקת יהיה יותר קל לעזור לך.

אני מניח שהתותחים ב-ASP יוכלו לפתור את הבעיה גם ככה, אבל לי כרגע ההבעיה לא בדיוק קופצת לעיניים - ככה שהשגיאה עצמה תוכל לתת יופי של כיוון.

ditale 07-10-06 15:40

ציטוט:

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
--------------------------------------------------------------------------------

Please try the following:

Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.
Click the Back button to try another link.
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

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

Technical Information (for support personnel)

Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404.
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages.
...

ditale 07-10-06 15:54

מצטער על הדאבל:
הנה עוד שגיאה שהוא כותב, לא הבנתי ממש איפו הבעיה פה:

Microsoft VBScript compilation error '800a0401'

Expected end of statement

/SendMail.asp, line 17

JMail.Sender = Senderemail JMail.Subject = Subject

Balrog 07-10-06 16:02

יפה - עכשיו רואים שגיאה
ועל השגיאה הזאת כבר אמרתי לך בהודעה הראשונה שלי

זה אמור להיות ב-2 שורות
JMail.Sender = Senderemail JMail.Subject = Subject

אמור להיות:

JMail.Sender = Senderemail
JMail.Subject = Subject

ditale 07-10-06 17:20

תודה רבה זה שולח והכל טוב עכשיו יש בעיה אחרת מתחת לשורה שהוא רושם שהאימל נשלח יש שגיאה נוספת:

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/SendMail.asp, line 14

800401f3


זה קשור לשורה הזאת נראה לי:
קוד:

Set JMail = Server.CreateObject("JMail.SMTPMail")

...?

eLad 07-10-06 17:55

אם זה מצביע לשורה 14 וזו שורה 14 אז מן הסתם זה קשור

בכל מקרה השגיאה אומרת שאין לך את האובייקט הזה מותקן על השרת


כל הזמנים הם GMT +2. הזמן כעת הוא 04:04.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ