Maintainer | Ertugrul Soeylemez <es@ertes.de> |
---|
SMTP session computations.
- hello :: forall m r. MonadIO m => ByteString -> MailT r m ()
- mailData :: MonadIO m => Enumerator ByteString (MailT r m) () -> MailT r m ()
- mailDataStr :: MonadIO m => ByteString -> MailT r m ()
- mailFrom :: MonadIO m => ByteString -> MailT r m ()
- quit :: MonadIO m => MailT r m ()
- rcptTo :: MonadIO m => ByteString -> MailT r m ()
- reset :: MonadIO m => MailT r m ()
- verify :: MonadIO m => ByteString -> MailT r m Bool
- waitForWelcome :: Monad m => MailT r m ()
Initialization
mailData :: MonadIO m => Enumerator ByteString (MailT r m) () -> MailT r m ()Source
Send the DATA command along with the mail content. Please note that the last line must be properly terminated by CRLF.
mailDataStr :: MonadIO m => ByteString -> MailT r m ()Source
ByteString
interface to mailData
.
quit :: MonadIO m => MailT r m ()Source
Send QUIT command. Please note: This iteratee violates the standard by recognizing a 250 result code as success.
verify :: MonadIO m => ByteString -> MailT r m BoolSource
Send the VRFY command to find out, whether the mail exchangers knows the given user. Nowadays most mail exchangers disable this command for security reasons.
Please note that many SMTP servers will give you false positives or false negatives to prevent spamming attempts. It is not recommended to use this command.
waitForWelcome :: Monad m => MailT r m ()Source
Wait for the welcome greeting from the SMTP server.