Search found 7 matches

by mekola
2020-05-19 01:51
Forum: Scripting
Topic: Messages.Add(), manually add a message ?
Replies: 2
Views: 680

Re: Messages.Add(), manually add a message ?

I have tried this with varying levels of success I suspect that I'm closer as you overwrite 'message' oApp.Domains.ItemByName(oDomain).Accounts.ItemByAddress(oMessage.FromAddress).IMAPFolders.ItemByName(SentFolderName).Messages.Add (oMessage) Thank you for your answer. When i tried your code as . ....
by mekola
2020-05-19 00:38
Forum: Scripting
Topic: Messages.Add(), manually add a message ?
Replies: 2
Views: 680

Messages.Add(), manually add a message ?

Hi, i am trying to add a new message into "Sent" imapfolder manually. When the message is sent, i want to save the message in the "Sent" box. I can add the message to the sent box, but the message is coming empty ( only date coming that i can see ) I couldn't save message From, Fromaddress or Body e...
by mekola
2020-05-17 01:51
Forum: Scripting
Topic: c# webapi, i can't read mails following codes, exception
Replies: 8
Views: 1059

Re: c# webapi, i can't read mails following codes, exception

SorenR wrote:
2020-05-05 18:43
Found something here...

https://www.hmailserver.com/forum/viewt ... 02#p197802
I don't know how to thank you,
I have been trying for this for days.
Thank you so much. :) :)
by mekola
2020-05-05 17:39
Forum: Scripting
Topic: c# webapi, i can't read mails following codes, exception
Replies: 8
Views: 1059

Re: c# webapi, i can't read mails following codes, exception

in C#
i upload as images.
i hope external link is not a reason for punishment.

For C#,

https://ibb.co/GJstJdM

For VB,

https://ibb.co/QQmp0HM

edit: in C# this(int) NOT shown as such messages.this
by mekola
2020-05-05 17:14
Forum: Scripting
Topic: c# webapi, i can't read mails following codes, exception
Replies: 8
Views: 1059

Re: c# webapi, i can't read mails following codes, exception

I tried in VB and it works fine Thank you Now i have to convert all of C# codes to VB, i think i guess there is no another way because C# has not Item object in messages. thanks your advices again, god bless you. you answered when writing these articles. Really in C# Hmailserver References, there is...
by mekola
2020-05-05 16:30
Forum: Scripting
Topic: c# webapi, i can't read mails following codes, exception
Replies: 8
Views: 1059

Re: c# webapi, i can't read mails following codes, exception

Thanks your reply so much. I search retry and i find this, in C# COM API hmail References => There is no " Item", just there is "ItemDBID" ( i also search object browser) in VB COM API hmail References = Yes there is an Item as documantation i think there is no same Item issue in C# than i will try ...
by mekola
2020-05-05 13:52
Forum: Scripting
Topic: c# webapi, i can't read mails following codes, exception
Replies: 8
Views: 1059

c# webapi, i can't read mails following codes, exception

Hi, i am developing c# web api for reading all mails and read mail according to id. I'm following COM API documentary but i can't figure out one thing. In Messages sections, there is ItemByDBID but i can't use it properly. this is my simple code: public IEnumerable<MailModel> Get(int id) { hMailServ...