postcard/mailer.py
def connect(self):
        """Connects to the specified host at the specified port.
        Raises:
            ConnectionError if connection fails.
        """
        try:
            self.server = smtplib.SMTP(self.host, self.port)
        except smtplib.socket.gaierror:
            raise ConnectionError("Error connecting to %s" % (self.host))
Connects to the specified host at the specified port.
        Raises:
            ConnectionError if connection fails.
        
Connects to the specified host at the specified port.
Raises:
ConnectionError if connection fails.
Connects to the specified host at the specified port . Raises : ConnectionError if connection fails .
def connect(self):
        try:
            self.server = smtplib.SMTP(self.host, self.port)
        except smtplib.socket.gaierror:
            raise ConnectionError("Error connecting to %s" % (self.host))
def connect ( self ) : try : self . server = smtplib . SMTP ( self . host , self . port ) except smtplib . socket . gaierror : raise ConnectionError ( "Error connecting to %s" % ( self . host ) )
Connects to the specified host at the specified port.
Connects to the specified host at the specified port .
"""Connects to the specified host at the specified port.
        Raises:
            ConnectionError if connection fails.
        """
self