Re: email help
- From: "london calling" <londoncalling@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 6 Jul 2005 00:46:01 -0700
Hi Jason, Following up on Karl's post, it would be unusual to activate
accounts directly from an email, as this would imply that all you had to do
would be to create a POST or GET to the server to activate the new account.
In response to the Html Email part of the question: Creating one is very
simple
look at the System.Web.Mail namespace
e.g
'typically you only need to set the mail server once
Web.Mail.SmtpMail.SmtpServer = "My SMTP Server"
Dim m As New System.Web.Mail.MailMessage
With m
.To = myRecipientEmailAddress
.From = myEmailAddress
.Subject = myMessageSubject
.BodyFormat = Mail.MailFormat.Html
.Body = myHtmlEmailString
End With
Web.Mail.SmtpMail.Send(m)
If you want to send images embedded into the email it gets slightly more
complicated but can be done with MailAttachment objects and UrlContent* params
Note that the native .Net mail components do not allow for authentication
with an smtp server which in some cases may make it unworkable and you may
need to look at 3rd party components. If it's your own smtp server (e.g IIS)
you can allow anonymous users but make sure you lock down the IP addresses
that the smtp server will send/relay messages for otherwise you're inviting
every spammer to do their "work" through your equipment.
HTH jd
"Karl Seguin" wrote:
> Typically the way it would be done is to have it send you a notification
> email...you then log into the application where you accept/decline the new
> account.
>
> The problem with doing it straight from the email is that it won't at all be
> secure...there'll be no way for the application to verify that you are
> indeed the one clicking the ok...
>
> Karl
>
> --
> MY ASP.Net tutorials
> http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
> http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
> come!)
>
>
> ""jason via DotNetMonster.com"" <forum@xxxxxxxxxxxxxxxxx> wrote in message
> news:50E3C3D60E609@xxxxxxxxxxxxxxxxxxxx
> > currently i am doing a personal website and keep on changing the aspect...
> > finally the finall decision is to have a login page (requirement in
> > asp.net,
> > vb.net) and the login with security part of capturing user computer user
> > name
> > i have done...
> > my problem is ....
> >
> > i need the unregistered user to log in to my site and from there there
> > will
> > be a link for them to key in their short information in a textbox and a
> > html
> > email will be sent to me (as an admin) whether to accept the request or
> > not..
> > ~ so when i receive the html type email.. there will be extra 2 buttons
> > (for
> > me to accept or reject the request right?) so is it possible to make it
> > done?
> > sending using smtp server? tat is fine for me as i can use the server
> > being
> > provided by our school in which i had already been given permission to do
> > so..
> > .
> >
> > so when the button accept being pressed.... it will automatically being
> > saved
> > to my database (i am using MS access) and the user can gain access to the
> > site..
> >
> > sending a html email? is it really can be done with ease? as i am new in
> > .net
> > ... coz i am still stick to vb6.0 and find it .net quite troublesome...
> > can
> > you please help me?
> >
> > on every situation.. an email will be replied to the user stating his or
> > her
> > status on the request..
> >
> > as far as i know.. in every commersial website this can be done says for
> > example.. when i go to their site, and click permission to get access.. an
> > email will be sent to them right? then maybe it will go through a system
> > (server ) and then redirect the mail to admin and admin just response to
> > the
> > mail.. after that the replying thing will be done solely by the system
> > (server)... is this how the system goes? is i am wrong....
> > that is the thing i wish to do but to no avail.. so really hope that you
> > could help in this.. thanks...
> >
> > thank you...
> >
> > regards... jason
> >
> >
> > --
> > Message posted via DotNetMonster.com
> > http://www.dotnetmonster.com/Uwe/Forums.aspx/asp-net/200507/1
>
>
>
.
- Follow-Ups:
- Re: email help
- From: \"jason via DotNetMonster . com\"
- Re: email help
- References:
- email help
- From: \"jason via DotNetMonster . com\"
- email help
- Prev by Date: Re: How to loop a recordset and display html with conditions
- Next by Date: ASP.NET Impersonation to access Oracle database...
- Previous by thread: email help
- Next by thread: Re: email help
- Index(es):
Loading