Web Forms :: How To Send Account Activation Email With Activation Link
Jan 22, 2012How to send email to users registered to our site and approve their account?
View 1 RepliesHow to send email to users registered to our site and approve their account?
View 1 RepliesHow to send a registration link in email upon new event creation? there has to be some ID associated with it so that when a new user clicks on registration link a page opens up with the specific event details..
View 1 RepliesI've been programming with VB for a little over 2 years, however have never had any formal education. So the extent of my education is as follows:
I want to know how to do a mouseover for an image on my webpage, I look online for someone who's done it in VB and I try and duplicate their code and then play with it until I get the results I want.
So as you can see there is a wealth of VB coding that simply escapes me because I just haven't desired to include it or needed to include different aspects of VB in my programs / web developments. What I want now is big enough that so far (one week of online searches) I've uncovered no site or forum that has given me a tutorial on how to go about implementing what I want into my Microsoft Web Development project. The old sources for information are only good for one or two aspects of a coding procedure, not an entire overhaul of my current .aspx files. Not to mention a bias towards hard coding in pure <html>, I get a lot of that when someone doesn't have the patients to address my question.
When I created my new project it automatically populated an Accounts folder with a Changepassword.aspx, Changepasswordsuccess.aspx, registration.aspx, and Login.aspx. I've successfully prevent the program from logging in the user after they register with a simple " ' " before an authentication line in the registration.vb code; however, the login.vb code and the login.design.vb code is simple beyond me, and I've yet to find a site that spells it out for me.
I've created an online test. However, the intent is to have the users only take the test once, thus after they register with their email address I want my site to send them an email with an account activation link. Once they click on this link by visiting their inbox they can then take the test.
I want to send a confirmation email to the user after they register to my website. I am using CreateUserWizard of .NET and I use C#.
My idea is after users register they get an email with a link. If they click the link, they will come to an activation page. I have done this so far:
Register.aspx:
[Code]....
[Code]....
After Guid userId = (Guid)user.ProviderUserKey;
I am very confused and not sure what to do. I understand that i need to email an url with the userID to user's email upon registration, but how to do this, and when user clicks that url in that email, how that url will automatically come to activation page?
how can i implement new user Email verification in regsitration form. It should be like, when user clicks on Submit button, an email sent to the user email id with an autogenerated code and a redirect link ..
View 1 Repliesi want to use activation link, as when user registered itself, i'll send activation link on his mail-id, and when he click that activation link, then his account will actived...?
View 1 RepliesDoing an activation link that the user will press to activate an account. What i wanted to ask is, the link will go to a page and it will hit the sql server to find out if it's valid.Now what i'm afraid of is that some boot can send thousands of get's in the page, forcing the sql to be active with useless data. So is there a way to protect against this? I was thinking the "lock ip" trick i did to stop users trying to log in to a site many times. Any other suggestions are welcome. Some other think also.I use a try catch in case of a get with not or wrong data.Will this affect the site in general? I mean i don't really care if someone post an invalid get and wait for the try catch, but does this affect the performance of the site in general or a session takes the memory by default and ignore any try catching that s stalling the page.
View 6 RepliesThe activation code is not receiving here
4 hours, 23 minutes ago|LINK
if (String.IsNullOrEmpty(Request.Params["ActivationID"])){Response.Redirect("index.html");}else{try{con.Open();string hash = Request.Params["ActivationID"];Response.Write(hash);con.Open();cmd = new SqlCommand("update userdetails set status=1 where hashid='" + hash + "'", con);cmd.ExecuteNonQuery();con.Close();Response.Write("Your account has been successfully activated. You can now login using the username and password you chose during the registration. ");
} catch{Response.Redirect("index.html");}}
But the values is passing to here [URL] .... but not working the above code
I program in vb
I was wondering if someone can direct me to a good quality tutorial on the process of registering and sending an activation link to the user's email address. I can't seem to find any useful tutorials online!
I make a login module. In registration page email is sent to user to activate the account.on login page what should i used code to not login the user who not acctivate the account .My code is
Try con.Open()
Dim cmd As New SqlCommand("select status from signup where name =" & "'" & txtname.Text & "'" & "and
password=" & "'" & txtpassword.Text & "'", con)
Dim value As [Object] = cmd.ExecuteScalar()
If value Is Nothing Then Label1.Text = "Invalid Login. Please Try Again!"
[CODE] ....
how to verify that if an e-mailid is valid and how to send an e-mail in the inbox to validate an e-mailid by clicking on the link
View 1 RepliesCREATE TABLE Member
(
memberID int IDENTITY (2480,39) PRIMARY KEY,
memberName nvarchar(70) NOT NULL,
password nvarchar(30) NOT NULL,
eMail nvarchar(100) NOT NULL,
notify bit NOT NULL,
isActive bit NOT NULL,
lastLogin datetime DEFAULT GetDate(),
dateCreated datetime DEFAULT GetDate() NOT NULL
);
Once user fill registration form that consists of:
memberName, password, email and check/uncheck notify box then click submit. The values will be stored in the above table with isActive equals to False. Email will be sent to user for activation, once activated, isActive will equal to true. 1. How can i send an activation link to the email and then change isActive to True once link is clicked? I tried to solve it, i just didn't get it yet.
I have to validate the email addresses. For that an email containing verification link is sent to the candidates while registering. By clicking the link the database will be updated with the status of email id as verified. How can I pass the username or other details of the candidates through the verification link? I am using asp.net with c# coding.
View 1 RepliesI found a tutorial on how to setup a user will be emailed an activation link when registering [URL]. What I want is modify it so that the email is sent to the administrators for activation.
View 9 RepliesI know there is a lot of information regardind sending activation e-mails, but I have just found information regarding the Create Wizard control, and I'm doing all the forms manually. Right now, I'm able to register a user name in a SQL Server Database, and then an e-mail is sent to this new user to the corresponding em-mail address, the columns the user has to register are:
ID
Name
Nickname
Password (SHA1 hash)
E-mail
I don't know if it is the best approach, and also, there are somethings I don't know how to do. Creating another column in the database table, then a Trigger that on insert fills that column (or just a query that fills it) with for instance "Inactive". Creating a guid code. (What is the guid? and what is it for?) In the email generated attach a link that will open the confirmation.aspx page that will run a code on load that will compare the necessary fields with the database. If the comparison is succesful the page will run a query to update acivation column from "Inactive" to "Active". When the user wants to login compare "username" "Password" and check "Activation" columns before enabling the log-in. THe thing is that I don't know is what is the guid is for, and how to use the data to embed it in the link. Because I have seen something like confirmation.aspx?username or something like that that you have to do.
I know this is a simple fix but here's my register.aspx.vb and activation.aspx.vb codes. Its given an ordinary user unauthorized permissions after activation from email link which when clicked, approves and logs them in.
Protected Sub RegisterUser_CreatedUser(ByVal sender As Object, ByVal e As EventArgs) Handles RegisterUser.CreatedUser
FormsAuthentication.SignOut()
If _group IsNot Nothing Then
[Code]....
I have a Gridview with a CommandButton for Update and a seperate Link Button in another column for Delete.
The problem is that when in Update mode if i click the Delete Link i get an exception error message.
i have name ,address,contactno,emailid,details of enquiry labels and their respective textbox and one submit button.i just want to send all the information to my emailid(msenterprises@mseworld.in) whenever a user click on submit button..
View 1 RepliesI am trying hard from the past 2 days to Send mail to my gmail account. But I am not able to do so
Only Exception i am getting is "Failure sending mail."
If i am giving wrong username and password then it is giving the exception
" The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at"
0
2
I've run into a problem with WCF REST Service. I get:
Could not load type 'System.ServiceModel.Activation.HttpHandler' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
when running inside of the IIS in an ASP.NET 4.0 AppPool.
The problem seems to occur only if:Running inside of IIS
When ASP.NET Comaptibility is enabled
Running in Cassini - no problem it works properly. Running with ASP.NET compatibility off - no problem it works.
It appears that it's some sort of handler version conflict trying to instantiate the wrong version of the handler that in turn tries to load an older version of System.ServiceModel, but I haven't been able to trace this down.
Anybody seen anything like this before and have any ideas how to track this down further?
I've looked in ApplicationHost.config and the master web.config files for System.ServiceModel and HttpHandler references but no luck.
Previously I had thread Send Mail? That helps me to send mail through Gmail credential account. Now I want to send Email through my server (suppose my server name is [URL]) so what should I do?
View 3 RepliesThe below code working fine but I dont want to pass the username and pwd at NetworkCredential. Is there any way to avoid passing username and password ? Is it mandatory that we should pass from username and password in NetworkCredential ?
SmtpClient _SmtpClient = new SmtpClient("smtp.gmail.com");
MailAddressCollection _MailAddressCollection = new MailAddressCollection();
MailMessage _message = new MailMessage();
_message.From = new MailAddress("abc@gmail.com");
[Code].....
I am trying to send an email from our web server to a gmail account via System.Net.Mail but am failing miserably receiving this error message:
Mailbox name not allowed. The server response was:
that domain isn't in my list of allowed rcpthosts (#5.7.1) Using this code I am able to send emails to other email addresses on our Outlook email server:
[Code]....
So I know I am capable of sending email to Gmail with port 587 and using the proper credentials of my own Gmail account. That is not the problem.
The problem is I want to be able to have the mail sent from my application from whatever the user puts in the FROM (Email address): text box to a Gmail account. When I use the above code, the address that the email is sent from is my own.
So the question is: Is there any way to configure this to be able to send from an Outlook email server to a Gmail account without having to use my Gmail account to actually do it (using my credientials). Therefore showing the email as sent from whatever the user puts in the txtEmail text box, and having it sent from the Outlook server?
I know my SMTP uses the port 25 for outgoing mail and I am pretty sure that the Gmail settings block port 25 for incoming mail, which makes sense, but what doesnt make sense is I can compose a message in Outlook and send it to a gmail account, but I cannot automate this through my programming, which makes me feel certain its my programming.
Having problems sending email to a gmail account? In my web config I have it setup as:
Code:
<system.net>
<mailSettings>
<smtp from="xxxx" deliveryMethod="Network" >
<network host="smtp.xxxx.com" password="xxx" userName="xxx" enableSsl="false" port="25" />
</smtp>
</mailSettings>
</system.net>
This works if I send it to something like my domain, but if I try this to gmail it will give me something like "secure connection required" I've tried a few different ports. I've tried 587 and it gives me the same thing. If I turn enablessl=true ports 587 and 25 will tell me secure email no supported. If I try it on port 465 it will time out.
there's a thing called "Collaboration Data Objects for Windows 2000" using System.Web.Mail, but I don't want to do that because I'm using System.Net.Mail and microsoft also when I try and compile the CDO objects it says it's now unsupported plus it doesn't work anyway. It times out when I try this:
Code:
Dim smtpServer As String = "xxxx"
Dim userName As String = "xxx"
Dim password As String = "xxx"
Dim cdoBasic As Integer = 1
[Code] ....
Really sorry because this is almost "send me the code" - although really it's "send me a link to another discussion"
I am setting up a .net membership system and need to validate users from the email address they provide via a "click here to validate your account" type link.
Just wondered if anyone knew of any good tutorials or posts out there about this? I have searched for about an hour and can't find anything - hence me asking the question.