ASP / Send Mail Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dthmtlgod

    ASP / Send Mail Question

    I am having an e-mail being sent from a form submitting on a web page.

    Right now, it is just a generic name (not a valid e-mail address) in the
    Mail From box. "Web Server Request". How can I add a reply to piece to
    this, so when a user clicks on Reply, it sends it to a valid e-mail address.

    Thank you




  • Curt_C [MVP]

    #2
    Re: ASP / Send Mail Question

    Assign the .From a valid address.


    --
    Curt Christianson
    Owner/Lead Developer, DF-Software
    Site: http://www.Darkfalz.com
    Blog: http://blog.Darkfalz.com


    "dthmtlgod" <dthmtlgod@yaho o.com> wrote in message
    news:O1k22peiEH A.592@TK2MSFTNG P11.phx.gbl...[color=blue]
    >I am having an e-mail being sent from a form submitting on a web page.
    >
    > Right now, it is just a generic name (not a valid e-mail address) in the
    > Mail From box. "Web Server Request". How can I add a reply to piece to
    > this, so when a user clicks on Reply, it sends it to a valid e-mail
    > address.
    >
    > Thank you
    >
    >
    >
    >[/color]


    Comment

    • Ray Costanzo [MVP]

      #3
      Re: ASP / Send Mail Question

      What mail component are you using?

      Ray at work

      "dthmtlgod" <dthmtlgod@yaho o.com> wrote in message
      news:O1k22peiEH A.592@TK2MSFTNG P11.phx.gbl...[color=blue]
      >I am having an e-mail being sent from a form submitting on a web page.
      >
      > Right now, it is just a generic name (not a valid e-mail address) in the
      > Mail From box. "Web Server Request". How can I add a reply to piece to
      > this, so when a user clicks on Reply, it sends it to a valid e-mail
      > address.
      >
      > Thank you
      >
      >
      >
      >[/color]


      Comment

      • dthmtlgod

        #4
        Re: ASP / Send Mail Question

        CDONTS. .


        "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
        message news:ObQmt7eiEH A.632@TK2MSFTNG P12.phx.gbl...[color=blue]
        > What mail component are you using?
        >
        > Ray at work
        >
        > "dthmtlgod" <dthmtlgod@yaho o.com> wrote in message
        > news:O1k22peiEH A.592@TK2MSFTNG P11.phx.gbl...[color=green]
        > >I am having an e-mail being sent from a form submitting on a web page.
        > >
        > > Right now, it is just a generic name (not a valid e-mail address) in the
        > > Mail From box. "Web Server Request". How can I add a reply to piece to
        > > this, so when a user clicks on Reply, it sends it to a valid e-mail
        > > address.
        > >
        > > Thank you
        > >
        > >
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Ray Costanzo [MVP]

          #5
          Re: ASP / Send Mail Question

          Are you on an NT server? If not, you should be using CDO instead of CDONTS.
          http://www.aspfaq.com/show.asp?id=2026 But, either way, you can set the
          ..From field as Curt suggested or set the Reply-To address of either mail
          object.

          CDONTS:

          oYourCDONTSMail Object.Value("R eply-To") = "someone@somewh ere.kom"

          CDO:

          oYourCDOMailObj ect.ReplyTo = "someone@somewh ere.kom"

          Ray at work



          "dthmtlgod" <dthmtlgod@yaho o.com> wrote in message
          news:%23KEN$pfi EHA.396@TK2MSFT NGP12.phx.gbl.. .[color=blue]
          > CDONTS. .
          >
          >
          > "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
          > message news:ObQmt7eiEH A.632@TK2MSFTNG P12.phx.gbl...[color=green]
          >> What mail component are you using?
          >>
          >> Ray at work
          >>
          >> "dthmtlgod" <dthmtlgod@yaho o.com> wrote in message
          >> news:O1k22peiEH A.592@TK2MSFTNG P11.phx.gbl...[color=darkred]
          >> >I am having an e-mail being sent from a form submitting on a web page.
          >> >
          >> > Right now, it is just a generic name (not a valid e-mail address) in
          >> > the
          >> > Mail From box. "Web Server Request". How can I add a reply to piece
          >> > to
          >> > this, so when a user clicks on Reply, it sends it to a valid e-mail
          >> > address.
          >> >
          >> > Thank you
          >> >
          >> >
          >> >
          >> >[/color]
          >>
          >>[/color]
          >
          >[/color]


          Comment

          • frmrsrs

            #6
            Re: ASP / Send Mail Question

            Thanks

            "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
            message news:eTsbO5fiEH A.3348@TK2MSFTN GP12.phx.gbl...[color=blue]
            > Are you on an NT server? If not, you should be using CDO instead of[/color]
            CDONTS.[color=blue]
            > http://www.aspfaq.com/show.asp?id=2026 But, either way, you can set the
            > .From field as Curt suggested or set the Reply-To address of either mail
            > object.
            >
            > CDONTS:
            >
            > oYourCDONTSMail Object.Value("R eply-To") = "someone@somewh ere.kom"
            >
            > CDO:
            >
            > oYourCDOMailObj ect.ReplyTo = "someone@somewh ere.kom"
            >
            > Ray at work
            >
            >
            >
            > "dthmtlgod" <dthmtlgod@yaho o.com> wrote in message
            > news:%23KEN$pfi EHA.396@TK2MSFT NGP12.phx.gbl.. .[color=green]
            > > CDONTS. .
            > >
            > >
            > > "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
            > > message news:ObQmt7eiEH A.632@TK2MSFTNG P12.phx.gbl...[color=darkred]
            > >> What mail component are you using?
            > >>
            > >> Ray at work
            > >>
            > >> "dthmtlgod" <dthmtlgod@yaho o.com> wrote in message
            > >> news:O1k22peiEH A.592@TK2MSFTNG P11.phx.gbl...
            > >> >I am having an e-mail being sent from a form submitting on a web page.
            > >> >
            > >> > Right now, it is just a generic name (not a valid e-mail address) in
            > >> > the
            > >> > Mail From box. "Web Server Request". How can I add a reply to piece
            > >> > to
            > >> > this, so when a user clicks on Reply, it sends it to a valid e-mail
            > >> > address.
            > >> >
            > >> > Thank you
            > >> >
            > >> >
            > >> >
            > >> >
            > >>
            > >>[/color]
            > >
            > >[/color]
            >
            >[/color]


            Comment

            • dthmtlgod

              #7
              Re: ASP / Send Mail Question

              Ray, so should this work? The replyto isn't taking. Message does send OK.

              <!--
              METADATA
              TYPE="typelib"
              UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
              NAME="CDO for Windows 2000 Library"
              -->
              <%
              Set cdoConfig = CreateObject("C DO.Configuratio n")

              With cdoConfig.Field s
              .Item(cdoSendUs ingMethod) = cdoSendUsingPor t
              .Item(cdoSMTPSe rver) = "EXCSERV01"
              .Update
              End With

              Set cdoMessage = CreateObject("C DO.Message")


              With cdoMessage
              Set .Configuration = cdoConfig
              .From = "Automation_Ser ver"
              .To = "vandk@hfd. com"
              .Subject = "Sample CDO Message"
              .TextBody = "This is a test for CDO.message"
              .Replyto = "Syracuse@haywe ed.com"
              .Send
              End With


              "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
              message news:eTsbO5fiEH A.3348@TK2MSFTN GP12.phx.gbl...[color=blue]
              > Are you on an NT server? If not, you should be using CDO instead of[/color]
              CDONTS.[color=blue]
              > http://www.aspfaq.com/show.asp?id=2026 But, either way, you can set the
              > .From field as Curt suggested or set the Reply-To address of either mail
              > object.
              >
              > CDONTS:
              >
              > oYourCDONTSMail Object.Value("R eply-To") = "someone@somewh ere.kom"
              >
              > CDO:
              >
              > oYourCDOMailObj ect.ReplyTo = "someone@somewh ere.kom"
              >
              > Ray at work
              >
              >
              >
              > "dthmtlgod" <dthmtlgod@yaho o.com> wrote in message
              > news:%23KEN$pfi EHA.396@TK2MSFT NGP12.phx.gbl.. .[color=green]
              > > CDONTS. .
              > >
              > >
              > > "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
              > > message news:ObQmt7eiEH A.632@TK2MSFTNG P12.phx.gbl...[color=darkred]
              > >> What mail component are you using?
              > >>
              > >> Ray at work
              > >>
              > >> "dthmtlgod" <dthmtlgod@yaho o.com> wrote in message
              > >> news:O1k22peiEH A.592@TK2MSFTNG P11.phx.gbl...
              > >> >I am having an e-mail being sent from a form submitting on a web page.
              > >> >
              > >> > Right now, it is just a generic name (not a valid e-mail address) in
              > >> > the
              > >> > Mail From box. "Web Server Request". How can I add a reply to piece
              > >> > to
              > >> > this, so when a user clicks on Reply, it sends it to a valid e-mail
              > >> > address.
              > >> >
              > >> > Thank you
              > >> >
              > >> >
              > >> >
              > >> >
              > >>
              > >>[/color]
              > >
              > >[/color]
              >
              >[/color]


              Comment

              • Aaron [SQL Server MVP]

                #8
                Re: ASP / Send Mail Question

                Put the valid e-mail address in the .From not the .ReplyTo

                --
                Please contact this domain's administrator as their DNS Made Easy services have expired.

                (Reverse address to reply.)




                "dthmtlgod" <dvanderm@twcny .rr.com> wrote in message
                news:eAmi6YhiEH A.3632@TK2MSFTN GP09.phx.gbl...[color=blue]
                > Ray, so should this work? The replyto isn't taking. Message does send[/color]
                OK.[color=blue]
                >
                > <!--
                > METADATA
                > TYPE="typelib"
                > UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
                > NAME="CDO for Windows 2000 Library"
                > -->
                > <%
                > Set cdoConfig = CreateObject("C DO.Configuratio n")
                >
                > With cdoConfig.Field s
                > .Item(cdoSendUs ingMethod) = cdoSendUsingPor t
                > .Item(cdoSMTPSe rver) = "EXCSERV01"
                > .Update
                > End With
                >
                > Set cdoMessage = CreateObject("C DO.Message")
                >
                >
                > With cdoMessage
                > Set .Configuration = cdoConfig
                > .From = "Automation_Ser ver"
                > .To = "vandk@hfd. com"
                > .Subject = "Sample CDO Message"
                > .TextBody = "This is a test for CDO.message"
                > .Replyto = "Syracuse@haywe ed.com"
                > .Send
                > End With
                >
                >
                > "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
                > message news:eTsbO5fiEH A.3348@TK2MSFTN GP12.phx.gbl...[color=green]
                > > Are you on an NT server? If not, you should be using CDO instead of[/color]
                > CDONTS.[color=green]
                > > http://www.aspfaq.com/show.asp?id=2026 But, either way, you can set the
                > > .From field as Curt suggested or set the Reply-To address of either mail
                > > object.
                > >
                > > CDONTS:
                > >
                > > oYourCDONTSMail Object.Value("R eply-To") = "someone@somewh ere.kom"
                > >
                > > CDO:
                > >
                > > oYourCDOMailObj ect.ReplyTo = "someone@somewh ere.kom"
                > >
                > > Ray at work
                > >
                > >
                > >
                > > "dthmtlgod" <dthmtlgod@yaho o.com> wrote in message
                > > news:%23KEN$pfi EHA.396@TK2MSFT NGP12.phx.gbl.. .[color=darkred]
                > > > CDONTS. .
                > > >
                > > >
                > > > "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote[/color][/color][/color]
                in[color=blue][color=green][color=darkred]
                > > > message news:ObQmt7eiEH A.632@TK2MSFTNG P12.phx.gbl...
                > > >> What mail component are you using?
                > > >>
                > > >> Ray at work
                > > >>
                > > >> "dthmtlgod" <dthmtlgod@yaho o.com> wrote in message
                > > >> news:O1k22peiEH A.592@TK2MSFTNG P11.phx.gbl...
                > > >> >I am having an e-mail being sent from a form submitting on a web[/color][/color][/color]
                page.[color=blue][color=green][color=darkred]
                > > >> >
                > > >> > Right now, it is just a generic name (not a valid e-mail address)[/color][/color][/color]
                in[color=blue][color=green][color=darkred]
                > > >> > the
                > > >> > Mail From box. "Web Server Request". How can I add a reply to[/color][/color][/color]
                piece[color=blue][color=green][color=darkred]
                > > >> > to
                > > >> > this, so when a user clicks on Reply, it sends it to a valid e-mail
                > > >> > address.
                > > >> >
                > > >> > Thank you
                > > >> >
                > > >> >
                > > >> >
                > > >> >
                > > >>
                > > >>
                > > >
                > > >[/color]
                > >
                > >[/color]
                >
                >[/color]


                Comment

                • Ray Costanzo [MVP]

                  #9
                  Re: ASP / Send Mail Question

                  What "isn't taking" about it? If you receive the message, then your ASP
                  code should be fine. Are you saying that when you reply to the message, it
                  is not addressed to your reply-to account? Are both of those e-mail
                  accounts defined in your Exchange server? What I mean is that where I am, I
                  have multiple e-mail SMTP e-mail addresses setup for myself on my Exchange
                  server. So, if I set a reply-to address to be one of my alternate e-mail
                  accounts, Outlook will still resolve that address to be "Costanzo, Ray" when
                  I go to reply. To test accurately, I'd have to set a reply-to address of
                  someone@someoth erdomain.kom.

                  Ray at work

                  "dthmtlgod" <dvanderm@twcny .rr.com> wrote in message
                  news:eAmi6YhiEH A.3632@TK2MSFTN GP09.phx.gbl...[color=blue]
                  > Ray, so should this work? The replyto isn't taking. Message does send
                  > OK.
                  >
                  > <!--
                  > METADATA
                  > TYPE="typelib"
                  > UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
                  > NAME="CDO for Windows 2000 Library"
                  > -->
                  > <%
                  > Set cdoConfig = CreateObject("C DO.Configuratio n")
                  >
                  > With cdoConfig.Field s
                  > .Item(cdoSendUs ingMethod) = cdoSendUsingPor t
                  > .Item(cdoSMTPSe rver) = "EXCSERV01"
                  > .Update
                  > End With
                  >
                  > Set cdoMessage = CreateObject("C DO.Message")
                  >
                  >
                  > With cdoMessage
                  > Set .Configuration = cdoConfig
                  > .From = "Automation_Ser ver"
                  > .To = "vandk@hfd. com"
                  > .Subject = "Sample CDO Message"
                  > .TextBody = "This is a test for CDO.message"
                  > .Replyto = "Syracuse@haywe ed.com"
                  > .Send
                  > End With
                  >
                  >
                  > "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
                  > message news:eTsbO5fiEH A.3348@TK2MSFTN GP12.phx.gbl...[color=green]
                  >> Are you on an NT server? If not, you should be using CDO instead of[/color]
                  > CDONTS.[color=green]
                  >> http://www.aspfaq.com/show.asp?id=2026 But, either way, you can set the
                  >> .From field as Curt suggested or set the Reply-To address of either mail
                  >> object.
                  >>
                  >> CDONTS:
                  >>
                  >> oYourCDONTSMail Object.Value("R eply-To") = "someone@somewh ere.kom"
                  >>
                  >> CDO:
                  >>
                  >> oYourCDOMailObj ect.ReplyTo = "someone@somewh ere.kom"
                  >>
                  >> Ray at work
                  >>
                  >>
                  >>
                  >> "dthmtlgod" <dthmtlgod@yaho o.com> wrote in message
                  >> news:%23KEN$pfi EHA.396@TK2MSFT NGP12.phx.gbl.. .[color=darkred]
                  >> > CDONTS. .
                  >> >
                  >> >
                  >> > "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
                  >> > message news:ObQmt7eiEH A.632@TK2MSFTNG P12.phx.gbl...
                  >> >> What mail component are you using?
                  >> >>
                  >> >> Ray at work
                  >> >>
                  >> >> "dthmtlgod" <dthmtlgod@yaho o.com> wrote in message
                  >> >> news:O1k22peiEH A.592@TK2MSFTNG P11.phx.gbl...
                  >> >> >I am having an e-mail being sent from a form submitting on a web
                  >> >> >page.
                  >> >> >
                  >> >> > Right now, it is just a generic name (not a valid e-mail address) in
                  >> >> > the
                  >> >> > Mail From box. "Web Server Request". How can I add a reply to
                  >> >> > piece
                  >> >> > to
                  >> >> > this, so when a user clicks on Reply, it sends it to a valid e-mail
                  >> >> > address.
                  >> >> >
                  >> >> > Thank you
                  >> >> >
                  >> >> >
                  >> >> >
                  >> >> >
                  >> >>
                  >> >>
                  >> >
                  >> >[/color]
                  >>
                  >>[/color]
                  >
                  >[/color]


                  Comment

                  • Ray Costanzo [MVP]

                    #10
                    Re: ASP / Send Mail Question

                    That I did not catch.

                    Yes, in order for the SMTP server to be willing to send your message, at
                    least as far as MS SMTP, you need a valid .From address. You can do that as
                    "Automation Server <valid@address. kom>" if you still want the "Automation
                    Server" to appear as the name.

                    The .ReplyTo is only necessary if you want the .From not to be the .ReplyTo.
                    If .ReplyTo is not specified, .From is what will be replied to.

                    Ray at work

                    "Aaron [SQL Server MVP]" <ten.xoc@dnartr eb.noraa> wrote in message
                    news:OSWdithiEH A.2448@TK2MSFTN GP12.phx.gbl...[color=blue]
                    > Put the valid e-mail address in the .From not the .ReplyTo
                    >
                    > --
                    > http://www.aspfaq.com/
                    > (Reverse address to reply.)
                    >
                    >
                    >
                    >
                    > "dthmtlgod" <dvanderm@twcny .rr.com> wrote in message
                    > news:eAmi6YhiEH A.3632@TK2MSFTN GP09.phx.gbl...[color=green]
                    >> Ray, so should this work? The replyto isn't taking. Message does send[/color]
                    > OK.[color=green]
                    >>
                    >> <!--
                    >> METADATA
                    >> TYPE="typelib"
                    >> UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
                    >> NAME="CDO for Windows 2000 Library"
                    >> -->
                    >> <%
                    >> Set cdoConfig = CreateObject("C DO.Configuratio n")
                    >>
                    >> With cdoConfig.Field s
                    >> .Item(cdoSendUs ingMethod) = cdoSendUsingPor t
                    >> .Item(cdoSMTPSe rver) = "EXCSERV01"
                    >> .Update
                    >> End With
                    >>
                    >> Set cdoMessage = CreateObject("C DO.Message")
                    >>
                    >>
                    >> With cdoMessage
                    >> Set .Configuration = cdoConfig
                    >> .From = "Automation_Ser ver"
                    >> .To = "vandk@hfd. com"
                    >> .Subject = "Sample CDO Message"
                    >> .TextBody = "This is a test for CDO.message"
                    >> .Replyto = "Syracuse@haywe ed.com"
                    >> .Send
                    >> End With
                    >>
                    >>
                    >> "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
                    >> message news:eTsbO5fiEH A.3348@TK2MSFTN GP12.phx.gbl...[color=darkred]
                    >> > Are you on an NT server? If not, you should be using CDO instead of[/color]
                    >> CDONTS.[color=darkred]
                    >> > http://www.aspfaq.com/show.asp?id=2026 But, either way, you can set
                    >> > the
                    >> > .From field as Curt suggested or set the Reply-To address of either
                    >> > mail
                    >> > object.
                    >> >
                    >> > CDONTS:
                    >> >
                    >> > oYourCDONTSMail Object.Value("R eply-To") = "someone@somewh ere.kom"
                    >> >
                    >> > CDO:
                    >> >
                    >> > oYourCDOMailObj ect.ReplyTo = "someone@somewh ere.kom"
                    >> >
                    >> > Ray at work
                    >> >
                    >> >
                    >> >
                    >> > "dthmtlgod" <dthmtlgod@yaho o.com> wrote in message
                    >> > news:%23KEN$pfi EHA.396@TK2MSFT NGP12.phx.gbl.. .
                    >> > > CDONTS. .
                    >> > >
                    >> > >
                    >> > > "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote[/color][/color]
                    > in[color=green][color=darkred]
                    >> > > message news:ObQmt7eiEH A.632@TK2MSFTNG P12.phx.gbl...
                    >> > >> What mail component are you using?
                    >> > >>
                    >> > >> Ray at work
                    >> > >>
                    >> > >> "dthmtlgod" <dthmtlgod@yaho o.com> wrote in message
                    >> > >> news:O1k22peiEH A.592@TK2MSFTNG P11.phx.gbl...
                    >> > >> >I am having an e-mail being sent from a form submitting on a web[/color][/color]
                    > page.[color=green][color=darkred]
                    >> > >> >
                    >> > >> > Right now, it is just a generic name (not a valid e-mail address)[/color][/color]
                    > in[color=green][color=darkred]
                    >> > >> > the
                    >> > >> > Mail From box. "Web Server Request". How can I add a reply to[/color][/color]
                    > piece[color=green][color=darkred]
                    >> > >> > to
                    >> > >> > this, so when a user clicks on Reply, it sends it to a valid
                    >> > >> > e-mail
                    >> > >> > address.
                    >> > >> >
                    >> > >> > Thank you
                    >> > >> >
                    >> > >> >
                    >> > >> >
                    >> > >> >
                    >> > >>
                    >> > >>
                    >> > >
                    >> > >
                    >> >
                    >> >[/color]
                    >>
                    >>[/color]
                    >
                    >[/color]


                    Comment

                    Working...