User1310055179 posted
Hi,
I need to send email using SMTP, according to user's parameters (email address, password, host, port).
I wrote some backend code to test it.
When I use the following code:
smtp.EnableSsl = false;
I am able to send the mail using port 25.
When I use the following code:
smtp.EnableSsl = true;
I am supposed to be able to send the email using port 587.
I tried entering my Gmail email and I received an email alert saying an attempt to use my email address by external application was blocked.
I know I need to change something in Gmail settings in order to allow the application to use my Gmail as the sender email, however, I only used my Gmail for testing.
I actually need to use the Outlook Exchange server email to send my application.
What settings do I need to change in order for outlook not to block my emails?
In additions, what are the security risks in sending my emails with the following code:
smtp.EnableSsl = false;
My application can be installed on Internet or Intranet.
Thanks