login about faq

Hello,

when i am using Mailman.SendEmail(Email), the application is blocked until the order have been completed.

For recieving headers or emails, the same problem. It can take from one second to 30 seconds even, according the size of the information.

I need my application continue working doing others process while Mailman is working. i use VB6.

Any solution?

thanks

asked Mar 24 '15 at 14:37

Vara34's gravatar image

Vara34
14


Chilkat is preparing for standard async functionality for all methods in all classes that have event callbacks (basically anything that communicates over TCP/TLS, and long-running operations such as compression). This will be via CkTask (Chilkat.Task) object. For example, the asynchronous Mailman.SendEmail might look like this:

Chilkat.Task sendTask = mailman.SendEmailAsync(email);
The app can then monitor the task object, cancel/abort the task, get progress information, and of course get the results. The existing "Bg" functionality in FTP2 and HTTP will become deprecated in favor of the new standard. The internal architecture changes have been in the works in many of the last version releases over the months -- so that no one release represents a major architectural change. The next version (v9.5.0.49) will complete the internal changes required, and I would hope the following version might include the standard async functionality. Given that micro-version releases are about 5 weeks apart, it might be a stretch...

link

answered Mar 24 '15 at 20:31

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Unlike the ChilkatHttp object, it doesn't look like the ChilkatMailMan has background thread or asynchronous methods. Since you are using VB6, creating your own thread to do the job is painful.

One option would be to create an ActiveX EXE for your mail handling (if you need to respond to events in your main application), or just create a separate EXE and shell out to it and let it handle sending the email (you could use some form of interprocess communication to get status and error information). Basically, get the mail functions out of your main process (and therefore out of your main UI thread).

link

answered Mar 24 '15 at 14:58

jpbro's gravatar image

jpbro ♦
1.1k2618

OK, i undertstand.

Many thanks

link

answered Mar 24 '15 at 18:36

Vara34's gravatar image

Vara34
14

For sending, you can simply use the smtpQ approach.

link

answered Mar 24 '15 at 19:52

ixm7's gravatar image

ixm7
632210

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×47
×36

Asked: Mar 24 '15 at 14:37

Seen: 776 times

Last updated: Mar 24 '15 at 20:31

powered by OSQA