New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/dutchcoders/smtpd

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/dutchcoders/smtpd

  • v0.0.0-20200401181313-394a24a28be9
  • Source
  • Go
  • Socket score

Version published
Created
Source

SMTPD

Simple smtp server library for GO. Each received message will call the handler, which for example can upload the message to a webservice. (See example)

Implementation

package main

import (
        "github.com/dutchcoders/smtpd"
        "os"
        "fmt"
)

func main() {
        smtpd.HandleFunc(func(msg smtpd.Message) error {
                fmt.Printf("%#v\n", msg)
                return nil
        })

        addr := fmt.Sprintf(":%s", os.Getenv("PORT"))
        smtpd.ListenAndServe(addr)
}

Contributions

Contributions are welcome.

Creators

Remco Verhoef

  • https://twitter.com/remco_verhoef
  • https://twitter.com/dutchcoders

Code and documentation copyright 2011-2015 Remco Verhoef.

Code released under the MIT license.

FAQs

Package last updated on 01 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc