Announcement

Collapse
No announcement yet.

sending a mail with ASP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • sending a mail with ASP

    im trying to include code to a listing so when a costumer click on a button i created it sends a mail to us, if i include asp code to for example, viewcart.asp is going to work? i have this code

    Code:
    <%
    Set myMail=CreateObject("CDO.Message")
    myMail.Subject="Sending email with CDO"
    myMail.From="[email protected]"
    myMail.To="[email protected]"
    myMail.HTMLBody = "<h1>This is a message.</h1>"
    myMail.Send
    set myMail=nothing
    %>

  • #2
    No, you can't embed ASP code in the template.

    I think your best bet is to use the included mailer. Example of a form here

    just change the input fields to hidden fields with the content you want

    Comment


    • #3
      do you know what are the fields that the aspsendmail.asp admits?

      Comment


      • #4
        I can be any text input field. You can name it whatever you want. It will just be passed on to the body of the email.

        Comment


        • #5
          oh i got it, thanks a ton!

          Comment


          • #6
            one last question, in the example u linked and with the description u gave me of how can i add fields to the mail body, is there any way to not use text fields and add elements to the mail body, because i have information i already have gathered by me and theres no need to ask the costumer to type it, you said i have to use input type"text" but how about something like :

            <input type="hidden" value="any information i want " name="mailbody?">

            or theres any other way to add information to the mail body without ask the customer to type it?.

            Comment


            • #7
              Yes, use the input type = hidden method

              Comment


              • #8
                do you know if this support html?, like sending mails with html code like 3dcart mails

                Comment


                • #9
                  No it won't

                  Comment

                  Working...
                  X