Hi,
I'm working on a mailing application using Pantomime framework. I used one
method to send email using SMTP, which calls a method
[smtp connectInBackgroundAndNotify]; which automatically calls the
connection established method, which intern calls
serviceInitialized:
messageSent: and 
connectionTerminated: methods. It is working fine.

Now I need to restrict the time between emails to send. So I replaced the
method with a thread like:

[NSThread detachNewThreadSelector:@selector(sendEmail:) toTarget:self
withObject:nil];

And 
- (void) sendEmail: (NSConnection *) connection
{
    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
        //here goes the same code of lines in the above method.
    [pool release];
}

When I'm calling the thread, it invokes but not going to
connectionEstablished and other methods.
Where I got wrong? How can I solve this?

Thanks in advance.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to