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

הוסטס - פורום אחסון האתרים הגדול בישראל (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=41978)

BlurStyle 22-03-07 12:10

עזרה | קוד asp מסויים
 
אני שולח אימייל דרך הקוד הכול עובד חלק עכשיו, אני כותב בעברית ב"נושא ההודעה" אני הולך למייל ואני רואה כתב מוזר... אשמח אם מישהו יוכל לעזור.



PHP קוד:


<%if request.form.count <= 0 then%>
     <
form method=post><br>
     
אימייל: <input name=from><br>
     
נושא ההודעה: <input name=subject><br>
<
input type="hidden" value=Text name=sendvia checked="checked"><br>
    
ההודעה: <textarea cols=30 rows=10 name=M></textarea><br>
     <
input type=submit value="שלח"><br>
<%else
     if 
request.form("from") = "" then
          response
.redirect("index.asp")
     
end if

     
set M server.createobjecT("cdo.message")
     
m.from request.form("from")
     
m.to "MYMAIL@DSF.DF"
     
if request.form("subject") <> "" then m.subject request.form("subject")
     if 
request.form("sendvia") = "Text" then m.textbody request.form("m")
     
M.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.server.com"
     
M.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
     M
.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 
     M
.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 
     M
.Configuration.Fields.Update
     M
.send
     
%>השליחה הושלמה<%
end if
%> 


ranweb 22-03-07 12:11

מה זה כתב מוזר?
יש לך CODEPAGE בתחילה של הדף (בSCRIPT?)?

BlurStyle 22-03-07 12:24

נכון לפעמים כשאתה נכנס לאיזה אתר אתה רואה כתב לא מובן אז אתה עושה כפתור ימיני ושם יש לך encoding ואתה בוחר ב heb בשביל שזה יסתדר, אז זה זה. ^^

omaniusd 22-03-07 13:14

שלח את ההודעה בקידוד Unicode.

BlurStyle 22-03-07 14:25

ציטוט:

נכתב במקור על ידי omaniusd (פרסם 443028)
שלח את ההודעה בקידוד Unicode.

אני לא מבין asp אחי... אני אשמח אם תוסיף את זה לקוד ותביא לי.

BlurStyle 22-03-07 15:22

מישהו? בבקשה זה דחוף לי


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

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