ABA


"שאלה ב ASP לגבי משלוח אימל עם עברית"
גירסת הדפסה        
קבוצות דיון בניית אתרים נושא #15112 מנהל    סגן המנהל    מפקח   Winner    צל"ש   מומחה  
אשכול מספר 15112
The Boss  לחץ כאן להצגת דירוג המשתמש
חבר מתאריך 14.9.08
6889 הודעות, 2 פידבק
   14:21   21.06.09   
אל הפורום  
  שאלה ב ASP לגבי משלוח אימל עם עברית  
 
  

<%

Const cdoSendUsingPickup = 1 'Send message using the local SMTP service pickup directory.
Const cdoSendUsingPort = 2 'Send the message using the network (SMTP over the network).

Const cdoAnonymous = 1 '0 Do not authenticate
Const cdoBasic = 1 'basic (clear-text) authentication
Const cdoNTLM = 2 'NTLM


Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "| TEXT File | " & Session("filename") & " " & "שם בעברית"
objMessage.From = "TEXT File"


objMessage.To = Session("email")


objMessage.HtmlBody = "<html dir=""rtl""<head><meta http-equiv=""content-type content=text/html;charset=windows-1424"" /></html>"
'==This section provides the configuration information for the remote SMTP server.

objMessage.AddAttachment "X:\****\" & Session("filename")

objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.**"

'Type of authentication, NONE, Basic (Base64 encoded), NTLM
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic

'Your UserID on the SMTP server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusername") = "*"

'Your password on the SMTP server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "*"

'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

'Use SSL for the connection (False or True)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False

'Connection Timeout in seconds (the maximum time CDO will try to establish a connection to the SMTP server)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60

objMessage.Configuration.Fields.Update

'==End remote SMTP server configuration section==

objMessage.Send
%>

נוצרת לפעמים בעיה שבמקום השם בעברית מופיע סימיני שאלה ????
יש משהו שאפשר לבדוק? להגדיר בשרת? משהו מכיר?

תודה רבה

קופון הנחה של 5% ל iHerb
https://goo.gl/Q6Tr1S
הרבה יותר טוב מ Vitacost


                                שתף        
מכתב זה והנלווה אליו, על אחריות ועל דעת הכותב בלבד

  האשכול     מחבר     תאריך כתיבה     מספר  
  תעבור לקידוד UTF-8... Sn00py  22.06.09 13:10 1
     תודה רבה רבה רבה!!!! The Boss  22.06.09 18:36 2

       
Sn00py 
חבר מתאריך 1.8.02
2954 הודעות
   13:10   22.06.09   
אל הפורום  
  1. תעבור לקידוד UTF-8...  
בתגובה להודעה מספר 0
 
   תנסה להוסיף את השורה הבאה:
objMessage.BodyPart.Charset = "utf-8"

\x6C\x65\x65\x74\x68\x61\x78\x30
\x72\x3A\x2D\x29
tresp4sser


                                                         (ניהול: מחק תגובה)
מכתב זה והנלווה אליו, על אחריות ועל דעת הכותב בלבד
The Boss  לחץ כאן להצגת דירוג המשתמש
חבר מתאריך 14.9.08
6889 הודעות, 2 פידבק
   18:36   22.06.09   
אל הפורום  
  2. תודה רבה רבה רבה!!!!  
בתגובה להודעה מספר 1
 
   עזר לי מאוד!!!

קופון הנחה של 5% ל iHerb
https://goo.gl/Q6Tr1S
הרבה יותר טוב מ Vitacost


                                                         (ניהול: מחק תגובה)
מכתב זה והנלווה אליו, על אחריות ועל דעת הכותב בלבד

תגובה מהירה  למכתב מספר: 
 
___________________________________________________________________

___________________________________________________________________
למנהלים:  נעל | תייק בארכיון | מחק | העבר לפורום אחר | מחק תגובות | עגן אשכול
       



© כל הזכויות שמורות ל-רוטר.נט בע"מ rotter.net