5

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). – goodvibration Aug 7 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 inbox@mycontract.io and the data is sent directly to the contract. – Phil Aug 7 at 19:07
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 x@provider.com

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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