I want to generate an email when a contact is closed and send via wifi
what have you tried?
Hi John,
I had this goofy idea just yesterday afternoon. I have found several candidates on line so far prices from $60 to 400. I turned 85 yrs on the 13th but I am still going. I am in the process of upgrading my home brew door security system here on my ranch in central Texas and had the bright idea to add the wifi email generator to the up graded system. I don't have a code writing background. I am a retired custom industrial control system designer. I owned my own business for 26 years and now in retirement for 30 years I still have the desire to diy attitude. I am in central Texas about 100 miles from any large town.
Please forgive me for the long winded response. All I am looking for is perhaps some ideas. Btw we are totally off the grid here at the ranch. My son helps me when he has the time but he lives 100 miles south of me. Thank you for your response John. I am responding on my cell phone and will continue from my laptop next time.
Charles
How does your wifi connect - is the connection reliable?
You need to set up a WiFi module to send email. An example is here (there are lots of others search on esp8266 sendmail).
It looks complicated but it is mostly just tedious. After you get that working it is a simple matter of reading a switch and sending the mail when it is closed.
As a bonus after getting send email working you can also sent text messages to a cell phone via a special email address on the carrier. See
Sorry for the late reply. My wifi is very reliable………..at least is has worked reliably for the last ten years with my microwave network between my home and the internet one and a half miles away. My outback sends emails to my cell phone when the battery voltage drops to low. I am looking for a black box that requires a contact closure for the input and a email to be sent whenever the input receives a contact. We have 4 access points around the house that goes to a central Ubiquiti 8Port Ubiquiti Tough Switch that gathers the wifi signals. Ask me more questions if needed. This email is message is going over the same wifi network. Btw my microwave network consists of all Ubiquiti 5Ghz Air OS5 radios. With one relay point one mile from the house and ½ mile from the internet source near the entrance gate. The relay(repeater station runs autonomously)Also we have 12 ubiquiti cameras scattered between the house and the entrance gate for security purpose. If you like I can send you a diagram of our ranch network. And perhaps some live camera links. Just lemme know. I do appreciate your interest in helping me out with the email generator. I just realized we could possibly connect this little magic email generator to our network switch with cat5.
Hi John
I have not done anything yet. Too many honey-do projects diverting my attention. However, my feeble mind trudges on. Do you have any ideas for me?
Having used both the ESP8266 and ESP32 modules I'd prefer to go with the ESP32.
This is where you are aiming
there are loads of experiments you can do - especially if you have a couple to do transfers between them.
There are a LOT of different boards, But I use the DOIT Devkit boards (I think mine are the D3); you need to count the pins to get the right connection diagram.
I agree with @johnerrington consider the ESP32 - very powerful microcontroller with onboard WiFi, Bluetooth Classic and BLE and plenty of IO facilities - see ESP-Mail-Client
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.