How to connect other apps or service to access gmail account - gmail

I have an application which sends an email if an error occurs. I am using gmail account as from and to address. But when I run my program it gives me authentication required error. I got an email from google saying Sign-In attempt prevented. I also signed in for app password but it just worked once. When I see the apps connected to my account, the list is empty. How can connect app to my gmail account? How can I have this application access gmail account to send email.

You can try to use the SMTP server of GMail to send e-mails.
SMTP server address: smtp.gmail.com
SMTP user name: Your full Gmail address (e.g. example#gmail.com)
SMTP password: Your Gmail password
With Gmail 2-step authentication enabled, use an application-specific Gmail password.
SMTP port (TLS): 587
SMTP port (SSL): 465
SMTP TLS/SSL required: yes

You can let your application access your Gmail account by turning on "Access for less secure apps" to lower the security level.
It's a setting on the "My Account" page under Sign-in security. The link https://www.google.com/settings/security/lesssecureapps should take you there.

Related

can i send firebase verification email from another email provider?

I'm creating an app with node.js and i'm using Firebase authentication.
After the user sign up, I want to send the verification email through Salesforce API. How can I make Firebase do such thing?
You can set a custom SMTP server for sending emails in the Firebase console.
Go to the Authentication panel in the Firebase console
Click on the Templates tab
Click on SMTP settings
Click the Enable toggle to enable the custom SMTP server settings
Fill out the details of your SMTP server and click Save

Send email from local smtp server node.js

I'm using node.js smtp-server module to create local smtp server on my localhost.
But when I want to connect to another smpt server (e.g gmail) from my local smtp server it requires authentication. I just want to send email to any gmail account and don't want to login to my gmail account!
Any help?
Your local SMTP server should be able to send email to the Google MX servers without authentication, provided that you are sending email to an address #gmail.com.  To get a list of MX servers you would have to do a DNS lookup on gmail.com for records of type MX.  If you are trying to connect to other Google SMTP servers (other than their listed MX servers) this may not work so be sure to connect to the MX servers.

What is the need of SMTP AUTH?

I want to write an application which can receive emails locally and can response with successful and error responses.
After reading some tutorials about how SMTP works I was trying to send an email using telnet to my locally running SMTP server.
Connect to SMTP server
HELO/EHLO command
AUTH ...
MAIL from command
RCPT to command
DATA command
write somedata
QUITE
What I couldn't understand is step 3. Why do I need to be authenticated to send an email to localhost. I mean if I am yahoo user and I have to send an email to gmail user, how can I be authenticated to gmail SMTP server?
SMTP Auth is used to authenticate the send email. SMTP AUTH authenticates you directly with our SMTP server. This is transparent to you as a user.
SMTP is the protocol (the language) your email program uses to send email through our email server. AUTH is the part of that protocol that is used to verify that you are one of our users.
SMTP authentication allows the client to show the server that this client has permission to relay e-mail through this server.
In most cases, you can send without authentication to local e-mail addresses of this domain
(i.e. send from bob#domain.com to alice#domain.com)
because the server does not need to relay your e-mail to external servers. Authentication is required whenever the recipient is not of a local domain
(i.e. send from joe#company.com to tom#example.com, provided that
company.com and example.com use different e-mail servers).
If you want to read more about this Here I find the some reference where it explain very clearly.
http://www.afterlogic.com/mailbee-net/docs/smtp_authentication.html
http://www.softhome.net/help/faq/smtp-auth.html
Hope this can help full for you.
SMTP AUTH protects the server from unauthorized use. For example, Google doesn't allow people to send email from Google's email servers unless they have an account. You prove that you have an account (or that you are somehow authorized to use their servers) by authenticating with the AUTH command.
Maybe an example where the email service isn't free would be more clear. If you are trying to send email using GoDaddy's email servers, but you don't have an account, they will prevent you from doing it. GoDaddy charges people to use their services.
If you are running a company called mycompany.com, and you run your own mail servers, you don't want every spammer in the world using your servers to send email out of your company. You require senders to authenticate using AUTH in order to protect your servers from unauthorized use.

Does smtp in IIS refer to smtp service or smtp server?

In control panel there is a option to turn on certain features that are not installed by default. When you turn on IIS feature it has an option called smtp email. Does it refer to smtp service or smtp server? I have looked for the answer. But there is no concrete answer. Some say it's a service others say it refers to server. Can anyone please help me with the confusion??
The SMTP service under IIS is a simple relay agent. You really cannot use it as a mail server, as there is no real interface for retrieving (reading) emails from that service.
You typically use the SMTP service as a sending buffer for outgoing emails generated by your server (e.g. website). You configure the SMTP service as a relay for outgoing emails (e.g. to a smarthost) and then you can have your website generate emails to the local SMTP service. This way your website is not affected if network or other server problems would affect mail sending, as the SMTP service queues the emails you generate and can automatically retry deliveries etc.

Configuring IIS smtp with gmail

I am using Windows Server 2012. I followed following URL for configuring IIS smtp
http://blogs.technet.com/b/yashgoel-msft/archive/2012/10/26/configuring-outgoing-email-settings-in-sharepoint-with-gmail-smtp.aspx
Now my problem is my email are stuck in queued folder, I feel like as I have 2-step verification in gmail account is getting reject. So I change password in my smtp to application specific password. But still same problem.
So now I wanted to know what can be the problem. Is there any tool from which we can say that smtp of gmail is rejecting email.
Hope somebody can help me over here
I found the issue, actually my network team had block 25 port on our network.

Resources