Network.Mail.SMTP.Auth: exported symbols usage examples

Symbols

  • auth See 1 Occurences [+] Collapse [-]
    Found in Network.Mail.SMTP from the package smtp-mail
        bsPutCrLf conn userB64
        _ <- parseResponse conn
        bsPutCrLf conn passB64
        (code, msg) <- parseResponse conn
        unless (code == 235) $ fail "authentication failed."
        return (code, msg)
      where
        command = "AUTH LOGIN"
        (userB64, passB64) = encodeLogin username password
    
    sendCommand (SMTPC conn _) (AUTH at username password) = do
        bsPutCrLf conn command
        (code, msg) <- parseResponse conn
        unless (code == 334) $ fail "authentication failed."
        bsPutCrLf conn $ auth at (B8.unpack msg) username password
        parseResponse conn
      where
        command = B8.pack $ unwords ["AUTH", show at]
    
    sendCommand (SMTPC conn _) meth = do
    

    encodeLogin See 1 Occurences [+] Collapse [-]
    Found in Network.Mail.SMTP from the package smtp-mail
        cr = B8.pack "\r"
        dot = B8.pack "."
    
    sendCommand (SMTPC conn _) (AUTH LOGIN username password) = do
        bsPutCrLf conn command
        _ <- parseResponse conn
        bsPutCrLf conn userB64
        _ <- parseResponse conn
        bsPutCrLf conn passB64
        (code, msg) <- parseResponse conn
        unless (code == 235) $ fail "authentication failed."
        return (code, msg)
      where
        command = "AUTH LOGIN"
        (userB64, passB64) = encodeLogin username password
    
    sendCommand (SMTPC conn _) (AUTH at username password) = do
        bsPutCrLf conn command
        (code, msg) <- parseResponse conn
        unless (code == 334) $ fail "authentication failed."
    

    AuthType No usage example found for this symbol :( Collapse [-]
    Password No usage example found for this symbol :( Collapse [-]
    UserName No usage example found for this symbol :( Collapse [-]