aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/smtp
diff options
context:
space:
mode:
Diffstat (limited to 'src/objc/smtp')
-rw-r--r--src/objc/smtp/MCOSMTPSession.h10
-rw-r--r--src/objc/smtp/MCOSMTPSession.mm1
2 files changed, 6 insertions, 5 deletions
diff --git a/src/objc/smtp/MCOSMTPSession.h b/src/objc/smtp/MCOSMTPSession.h
index 5c616244..286cd7c3 100644
--- a/src/objc/smtp/MCOSMTPSession.h
+++ b/src/objc/smtp/MCOSMTPSession.h
@@ -30,7 +30,7 @@
/** This is the hostname of the SMTP server to connect to. */
@property (nonatomic, copy) NSString * hostname;
-/** This is the port of the POP3 server to connect to. */
+/** This is the port of the SMTP server to connect to. */
@property (nonatomic, assign) unsigned int port;
/** This is the username of the account. */
@@ -95,7 +95,7 @@
Generate RFC 822 data using MCOMessageBuilder
- MCOPOPOperation * op = [session sendOperationWithData:rfc822Data];
+ MCOSMTPOperation * op = [session sendOperationWithData:rfc822Data];
[op start:^(NSError * error) {
...
}];
@@ -109,7 +109,7 @@
Generate RFC 822 data using MCOMessageBuilder
- MCOPOPOperation * op = [session sendOperationWithData:rfc822Data
+ MCOSMTPOperation * op = [session sendOperationWithData:rfc822Data
from:[MCOAddress addressWithMailbox:@"hoa@etpan.org"]
recipients:[NSArray arrayWithObject:[MCOAddress addressWithMailbox:@"laura@etpan.org"]]];
[op start:^(NSError * error) {
@@ -123,7 +123,7 @@
/**
Returns an operation that will check whether the SMTP account is valid.
- MCOPOPOperation * op = [session checkAccountOperationWithFrom:[MCOAddress addressWithMailbox:@"hoa@etpan.org"]];
+ MCOSMTPOperation * op = [session checkAccountOperationWithFrom:[MCOAddress addressWithMailbox:@"hoa@etpan.org"]];
[op start:^(NSError * error) {
...
}];
@@ -133,7 +133,7 @@
/**
Returns an operation that will perform a No-Op.
- MCOPOPOperation * op = [session noopOperation];
+ MCOSMTPOperation * op = [session noopOperation];
[op start:^(NSError * error) {
...
}];
diff --git a/src/objc/smtp/MCOSMTPSession.mm b/src/objc/smtp/MCOSMTPSession.mm
index 17dc5057..e0eb2a7d 100644
--- a/src/objc/smtp/MCOSMTPSession.mm
+++ b/src/objc/smtp/MCOSMTPSession.mm
@@ -67,6 +67,7 @@ private:
- (void)dealloc {
MC_SAFE_RELEASE(_loggerBridge);
[_connectionLogger release];
+ _session->setConnectionLogger(NULL);
_session->release();
[super dealloc];
}