Re: ASP / Value Question
From: Ray Costanzo [MVP] (myfirstname)
Date: 08/21/04
- Next message: inamori: "ASP DateDiff"
- Previous message: jason_at_catamaranco.com: "Re: Do domains override cookies? Why?"
- In reply to: Dvan: "Re: ASP / Value Question"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 20 Aug 2004 22:23:31 -0400
You need to take the username, and from that, extract the person's e-mail
address from your Active Directory. Is that what you're saying?
Look at this sample code:
http://groups.google.com/groups?selm=evsPcUHcCHA.1748%40tkmsftngp12&rnum=4
Ray at home
"Dvan" <dthmtlgod@yahoo.com> wrote in message
news:%23d4iwCxhEHA.636@TK2MSFTNGP12.phx.gbl...
> Thanks "Ray at home", but the username plus "@yourdomainname.com"
> will not work with my Exchange Server, it has to be either the Network ID
> by itself or the format needs to be in firstname.lastname@yourdomain.com
>
>
>
>
>
> "Ray Costanzo [MVP]" <myfirstname at lane34 dot com> wrote in message
> news:%23AnTOxwhEHA.2604@TK2MSFTNGP09.phx.gbl...
> > Try:
> >
> > <%
> > sLogonuser = Request.ServerVariables("AUTH_USER")
> > sUsername = Split(sLogonuser & "\")(0)
> > sFrom = sUsername & "@yourdomainname.com"
> > %>
> >
> > You don't have to put this value in a hidden input. If you do that,
> clever
> > people can spoof the from address. Instead, use the code above to
> generate
> > the From address for your mail object.
> >
> > Ray at home
> >
> >
> >
> > "Dvan" <dthmtlgod@yahoo.com> wrote in message
> > news:OLXa$kwhEHA.3648@TK2MSFTNGP10.phx.gbl...
> > > Maybe there is an easy to do this. I am trying to send the results of
a
> > > form to our support mailbox. This works, but I have to provide it
with
> a
> > > static MailFrom.
> > >
> > > I would like the From to be from the person who submitted the form.
> > >
> > > Any insight? Our exchange server accepts a users Windows Logon, so I
> can
> > > provide that and it should work.
> > >
> > > I have a VBscript command that pulls that info plus the Doman into a
> > string,
> > > I can grab a substring of this to grab the UserID.
> > >
> > > response.write "<input type=hidden name=User value='" &
> right(LogonUser,7)
> > &
> > > "'>"
> > >
> > > Can I send this variable to this command somehow?
> > > <input type=hidden name=mailfrom value=??????>
> > >
> > > TIA
> > >
> > >
> > >
> >
> >
>
>
- Next message: inamori: "ASP DateDiff"
- Previous message: jason_at_catamaranco.com: "Re: Do domains override cookies? Why?"
- In reply to: Dvan: "Re: ASP / Value Question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|