I'm using a textbox to write a msg. I write in slovenian language, so there are letters that are in that encoding. Textbox, and more or less everywhere in access, displayes and stores values as I type them.
But when i use the txtbox as a source for mail textbody it's send with strange signs in place of my letters (čšž).
I'm guessing something's wrong woth encoding.
I tried storing everything in txt file and it works ok, but i eally don't want to send a txt attachement in place of simple body text.
i use this code
is there a way to set the encoding of mail?
But when i use the txtbox as a source for mail textbody it's send with strange signs in place of my letters (čšž).
I'm guessing something's wrong woth encoding.
I tried storing everything in txt file and it works ok, but i eally don't want to send a txt attachement in place of simple body text.
i use this code
is there a way to set the encoding of mail?
Code:
Set cdomsg = CreateObject("CDO.message")
With cdomsg.Configuration.Fields
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'NTLM method
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.intranet.myserver.si"
.Item("http://schemas.microsoft.com/cdo/configuration/smptserverport") = 25
.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False
.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
.Update
End With
With cdomsg
.To = recipients
.FROM = "Razpis operacij <mymail@myserver.si>"
.Subject = me.tSubject
.TextBody = me.tMsg
.Attachments.DeleteAll
.AddAttachment strpath
.send
End With