As the title states, I would like to know whether one could create a smart contract on Ethereum that is able to send and receive E-Mails.

  • Sure, it can send emails on the Ethereum blockchain (i.e., the data will be on the Ethereum blockchain, and you'll need to implement a client app which will make this data accessible for the users of your email-service). Commented Aug 7, 2019 at 18:55
  • @goodvibration Thanks for your answer. Either I don't understand it correctly, or I need another solution. Let us move away from sending and get to receiving first. My goal is that a smart contract can receive emails from any external client without the need for some sort of (web3-?)middleware to get the data to the contract. Exemplary use case: With my Outlook client I send an email to [email protected] and the data is sent directly to the contract.
    – Phil
    Commented Aug 7, 2019 at 19:07

2 Answers 2


If you are perceiving emails as data transmitted over classical protocols stmp, pop3,etc the answer is No it's impossible. As you might know, the smart contract runs in an isolated environment (VM) it has no connection with external networks.

So a smart contract can't connect to an stmp server and send an email to [email protected]

A contract can receive "transactions" which can play the role of emails !!

  • I think I now understand- thanks!
    – Phil
    Commented Aug 7, 2019 at 19:36

You could however write some code with the logic to upon receiving text from email, it sends the text to the blockchain via an rpc on the relevant api.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.