On 20.01.20 13:14, Wesley Peng wrote:
> Hello
> 
> Thanks all answers for kind info.
> My requirement is, for example, when refrigerator found there were no
> food in itself, it will send an email to remind the people.
> But refrigerator may not connect to internet directly, only home router
> have direct access to internet.
> So how to implement this mail sending feature?

Neither a router nor an IoT device are appropriate for acting as MTA, as
they will trigger every single spamfilter in existence.

Options:

• Use an SMTP client library to connect to some proper mail server. That
can be one run by you, or if you really hate your support personnel, you
can allow users to configure their own emailing (gmail etc.)

• Have a backend somewhere on a server that handles emailing for the
device, or directly plug the device into something like Mailgun or
Mandrill, using HTTPS APIs in either case, to re-implement option 1 in a
less elegant but more "modern" manner. #yolo #webdev #brogramming


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to