Re: ASP / Value Question

From: Ray Costanzo [MVP] (myfirstname)
Date: 08/21/04


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
> > >
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: Emailing AD audit alerts...
    ... Dèjì Akómöláfé, MCSE MCSA MCP+I ... "Ray" wrote in message ... > group is created/deleted in the Active Directory domain. ... > changes in groups/users in active directory and email notifications ...
    (microsoft.public.win2000.active_directory)
  • Re: Naval Battle of Guadalcanal
    ... but Ray posted a reply to Deemsbill that took a firm ... I'm sick of negativity that you can't support. ... I'm saying that the ... a commander given and impossibly short time to get his command ...
    (sci.military.naval)
  • Re: Naval Battle of Guadalcanal
    ... but Ray posted a reply to Deemsbill that took a firm ... I'm sick of negativity that you can't support. ... I'm saying that the ... a commander given and impossibly short time to get his command ...
    (sci.military.naval)
  • Re: filetime human readable?
    ... Ray at work ... Some attributes in Active Directory have syntax Integer8, ... > IADsLargeInteger interface, which has HighPart and LowPart property ...
    (microsoft.public.scripting.vbscript)
  • Re: Note
    ... And how can you say such bad things about Ray? ... You can take your "comedic" way of saying ... want to be my friend, ... Sooner rather than later if you shut the fuck up ...
    (misc.writing)