Mailer v1.3.0 Mailer.Smtp.Server

Summary

Functions

code_change(oldVsn, state, extra)
handle_AUTH(type, username, password, state)

Only called if you add AUTH to the ESMTP extensions

handle_DATA(from, to, data, state)

If we return ok, we’ve accepted responsibility for the email

handle_EHLO(hostname, extensions, state)

Make extensions available

handle_HELO(hostname, state)
handle_MAIL(from, state)

Check the from address

handle_MAIL_extension(extension, state)
handle_RCPT(to, state)

Check the recipient address

handle_RCPT_extension(extension, state)
handle_RSET(state)

Reset the internal state of the connection

handle_STARTTLS(state)

Only called if you add STARTTLS to the ESMTP extensions

handle_VRFY(address, state)

Disable verification of email addresses

handle_other(verb, args, state)
init(hostname, session_count, ip_address, options)
maybe_save_msg(handler, queued_as, msg)
start_link(server)
terminate(reason, state)