Forum Discussion

TNGW1500SE's avatar
TNGW1500SE
Explorer
May 03, 2017

i need to be able to send a email

I have a program that can send an e mail if there's an alarm. I've tried to use my Gmail account and can't get it to work.

All I need is a SMTP account to use to send mail out on. It never needs an incoming mail.

Any ideas on what I could use?
  • Thanks for the help. I had to go into my Gmail account and "allow" it. Now it works.

    What I'm doing (for those interested):

    I have a driveway alarm that sends a 12 volt signal to the house when a car passes a magnetometer 600 foot down from the house.

    I also have a DVR security camera system.

    I added a camera to the DVR that gets power only from the magnetometer alarm.

    Then I set that cameras channel on the DVR so that when it sees any motion it sends me a email via text to my phone.

    Most of the time that camera sends no signal to the DVR (it has no power) so the picture is just black but when a car passes the camera it's powered on and sends an image to the DVR.

    The DVR see's that as motion and alarms that channel.

    Works great! I now get an email and I can check the DVR from the internet and see who's there.
  • Gmail needs TLS and a secure port. Plus you need to then go to Gmail and clear the security alert allowing emails to flow.

    I have all of my systems sending emails to me via Gmail.
    Google something like "python send email gmail" to get an idea of the settings.
  • Thinking about it, if you're trying to send mail from some sort of device, rather than a computer, you'll want to consult the instructions for enabling encryption. Gmail only will accept encrypted smtp connections for free accounts.

    full instructions:
    https://www.digitalocean.com/community/tutorials/how-to-use-google-s-smtp-server
  • wa8yxm's avatar
    wa8yxm
    Explorer III
    Yahoo offers SMTP and POP both.. Some programs (like Thunderbird) use them and may even come with instructions on how to set it up.

    Yahoo Help files are good on this too since I set up Thunderbird to send that way (I do not use it for E-mail but I use it for other things so it SENDS via SMTP even if it is receiving something else entierly. (NNTP)
  • TNGW1500SE wrote:
    I have a program that can send an e mail if there's an alarm. I've tried to use my Gmail account and can't get it to work.

    All I need is a SMTP account to use to send mail out on. It never needs an incoming mail.

    Any ideas on what I could use?


    Gmail SMTP is one of the easiest to use. I would sign up for another account, so you're not risking your main. What problem specifically are you having?
  • Is this from a Windows machine? It looks like you can just send from Powershell. Here is an example you could probably modify to point to your Gmail account:

    $From = "YourmailID@domain.com"
    $to = "YourmailID@domain.com"
    $Subject = "Some Text"
    $Body = "Some Text"
    $SMTP = "Your SMTP Name"
    Send-MailMessage -From $from -To $to -Body $body -SMTPServer $SMTP

    On edit: Sorry I misread your post. I thought you needed a program to send email, but I see you have one.

    Dave

About RV Must Haves

Have a product you cannot live without? Share it with the community!8,793 PostsLatest Activity: Aug 22, 2023