I want to send email in asp.net web application without authentication, that means without having to enter the password by the email sender just like in contact page of a normal website. Any help on this will be highly appreciated. Thanks in advance.
If your e-mail provider, like gmail, demands authentication, you cannot "send email without authentication".
Each and every contact form you will find on the Internet for sure will do some backend stuff for sending emails, including authentication against the SMTP.
Create an account for that purpose, and use those credentials.
Related
I currently built a small WebApp for personal use. I want to push it online but not everyone should have access to it. I want to send the password to people which I will allow to access the site but I only want one password which can everyone use. I build the App with just Nuxt.js and firestore because I'm not familiar with backend technology.
I'm aware of the firebase authentication, but it only supports authentication with e-mail address.
Does someone know a simple Method how I can do this? Security is in this case not very import, I just want that not everyone can go on the site yet.
Thank you very much for your help.
As you mentioned, you're aware of firebase authentication, create a single account with email and password. For now, on login screen you can pass email hardcoded in input[type='hidden'] field.
You can use basic authentication for that. Not the most secure way of securing a site since the credentials are sent over with each request but If your site is under https you should be fine.
Scenario:
I work on a portal application that has its own user credential store. Another company who has a mobile app needs to authenticate against our data store using SAML 2.0.
The user will launch the mobile app, it will send an authentication request to the portal/IdP, the portal presents login page, user logs in and a SAML response is then sent back so user can continue using mobile app.
My question: Is there anything else extra needed if a user clicks a link in the mobile app that requests a protected page on the portal? I mean, the user will be authenticated in the portal already, so it should let them right in without any other kind of token or whatever sent to the portal from the mobile browser - is that right?
Are there any other considerations or resources for referencing a situation like this?
Any assistance is appreciated.
There are two aspects that needs to be considered here: Authentication and Authorization. Even though the user is authenticated, s/he might not be authorized (i.e. have permissions) to access that particular link.
If you follow SAML 2.0 protocol that is OK.
You have just to be careful what are you sending with AuthetnicationResponse and how it will be used on mobile app.
There is not extra tokens. AuthenticationResponse (encrypted and signed) is token by itself.
My website uses ASP.NET to send emails, but my school's network administrator has blocked the SMTP port and services. After I visited the p2p forums I found a suggestion to use web service to send email, have you any suggestion which website would provide web service for sending emails?
I tried to use System.Web.Mail.MailMessage class to send the emails through my program, but it also fail. Anyone can help me to solve this problem? I need your help. Thank you!
You can use SendGrid.
They offer a webservice and you can send up to 200 emails a day with a free account.
They have code samples for several languages: https://github.com/sendgrid
I think Email sending with ASp.net has nothing to do with blocking of your smtp port and service of school.
You can use gmail's smtp server for sening email in your application/
SMTP URL HOST : smtp.gmail.com,
IS SSL Enabled : true,
PORT: 465,
USERId:your_username#gmail.com,
Password: Your_Password
Use Gmail, Yahoo or other Email providers to send a mail.
Please refer my answer #CodeProject - sending email to gmail from asp.net, if you want to use Gmail.
Also follow - Send Email from Yahoo, Gmail, Hotmail (C#).
Well that depends, if you are talking about the SMTP port of your network, then you can still use Gmail, Yahoo, Outlook or other ports, all you will be needing will be just a username and password alongwith the port (that must be 25) and the server address (for gmail it is smtp.gmail.com).
But if you are talking about Sending emails without using SMPT. Its not possible, with or without ASP.NET.
However, you can try using SmtpSettings for ASP.NET.
There are some other issue too. Please checked that the SmtpServer that you are using (gmail, yahoo etc) are allowed, because if they are blocked too, you would have to search for something new.
And yes, there are some other servers too. Like free email providers that would also let you use 200emails/day for free or something like that. You can check that out.
You mentioned you are using System.Web.Mail.MailMessage, here is an msdn blog post about setting the Smtp for that: http://msdn.microsoft.com/en-us/library/system.web.mail.mailmessage.aspx
hi i want to send a some form entries resulting in a postback to be mailed automatically with my gmail account to the target mail id entered by the user with asp.net - c#?
You can send an email using: http://www.systemnetmail.com/
Gmail uses the mail server that you can configure (I forget the exact address, but you can find it on the google site) your web application to use when it sends mail.
As gmail lets you send mail var SMTP you should just be able to use the SmtpClient class in the .net framework.
Do you however often have to configure your virus scanner to allow out going emails from the process the Asp.net is running in.
I have a web application using Forms authentication provided by AD.
I would like to know if it's possible to use EWS to send mail as the currently logged in user without having to supply credentials, or; would I be required to set up an account with impersonating access which will send mail on behalf of the currently logged in user?
Yes you can. If your process runs (or impersonated) as a user having a mailbox you will access all the stuff without specifying any credentials.