CTSMTPConnection Class Reference

List of all members.


Static Public Member Functions

(void) + sendMessage:server:username:password:port:useTLS:useAuth:

Detailed Description

This is not a class you instantiate! It has only one class method, and that is all you need to send e-mail. First use CTCoreMessage to compose an e-mail and then pass the e-mail to the method sendMessage: with the necessary server settings and CTSMTPConnection will send the message.

Member Function Documentation

+ (void) sendMessage: (CTCoreMessage *)  message
server: (NSString *)  server
username: (NSString *)  username
password: (NSString *)  password
port: (unsigned int)  port
useTLS: (BOOL)  tls
useAuth: (BOOL)  auth 

This method...it sends e-mail.

Parameters:
message Just pass in a CTCoreMessage which has the body, subject, from, to etc. that you want
server The server address
username The username, if there is none then pass in an empty string. For some servers you may have to specify the username as username
password The password, if there is none then pass in an empty string.
port The port to use, the standard port is 25
useTLS Pass in YES, if you want to use SSL/TLS
useAuth Pass in YES if you would like to use SASL authentication