Forums

ASP

This topic is locked

form mail

Posted 20 Feb 2006 11:51:00
1
has voted
20 Feb 2006 11:51:00 Özkan Yörük posted:
sub sendmessage(adi,msg)

Dim ObjSendMail
Set ObjSendMail = Server.CreateObject("CDO.Message"


'This section provides the configuration information for the remote SMTP server.
ObjSendMail.Configuration.Fields.Item ("schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
ObjSendMail.Configuration.Fields.Item ("schemas.microsoft.com/cdo/configuration/smtpserver") = "your mail server"
ObjSendMail.Configuration.Fields.Item ("schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
ObjSendMail.Configuration.Fields.Item ("schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
ObjSendMail.Configuration.Fields.Item ("schemas.microsoft.com/cdo/configuration/sendusername") = "mail address"
ObjSendMail.Configuration.Fields.Item ("schemas.microsoft.com/cdo/configuration/sendpassword") = "password"
ObjSendMail.Configuration.Fields.Update

'End remote SMTP server configuration section==
ObjSendMail.To = " "
ObjSendMail.Subject = adi&"is sending"
ObjSendMail.From = " "
' we are sending a html email.. simply switch the comments around to send a text email instead
ObjSendMail.TextBody = msg

ObjSendMail.Send
Set ObjSendMail = Nothing
End Sub



//////// help me! this function is not send unicode text ! //////

Replies

Replied 08 Mar 2006 02:50:08
08 Mar 2006 02:50:08 Steweb . replied:
Hi !


This row set mail body

ObjSendMail.TextBody if you want text

ObjSendMail.HTMLBody if Html

Steweb

visit my website
www.steweb.net
Replied 08 Mar 2006 10:07:19
08 Mar 2006 10:07:19 Özkan Yörük replied:
i know,
my textbody is only text
but not send unicode text
for example:

msg = "щялфт нщкгл"

when send result
ЩЯЛФТ НЩКГЛ

Replied 08 Mar 2006 14:11:01
08 Mar 2006 14:11:01 Steweb . replied:
whether you use UTF-8 !

I set you mail in html and insert

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Ciao Steweb

visit my website
www.steweb.net
Replied 09 Mar 2006 15:11:28
09 Mar 2006 15:11:28 Özkan Yörük replied:
thanks for take an interest, but don't be again.
it's ASCII response be seen open with outlookexpress. good works. bye

Reply to this topic