SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Apr 2002
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sending E-mail from a form but HTML

    How can I send an Email with HTML tags (but the tags have to work) thru a FORM? I think I've done it before with ENCTYPE but now it won't work.

    Thanks

  2. #2
    SitePoint Zealot Drew630's Avatar
    Join Date
    Nov 2001
    Location
    Maryland
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    WEll, if you only use HTML and not any scripts, then you just have to use this for your <form> tag
    Code:
    <form name="form1" action="mailto:Me@email.com" Method="post">
    That will send your form data in an email to the email address that you specify. But this will send the raw data with the variable names of your form elements. it isn't pretty and it can be difficult to read. I would suggest sending the form data to a script and having the script parse your info and then email.

    Drew
    ~Drew

    There Is No Greater Joy Than Soaring High On The Wings Of Your Dreams, Except Maybe The Joy Of Watching A Dreamer Who Has Nowhere To Land But In The Ocean Of Reality.

  3. #3
    SitePoint Addict
    Join Date
    Apr 2002
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well I guess I can do without HTML tags in the E-mail for now

    I would use mail(); in php but the host doesn't support that.

  4. #4
    SitePoint Zealot Drew630's Avatar
    Join Date
    Nov 2001
    Location
    Maryland
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you hosted by an IIS server? If so, then ASP has a very simple email facility that will do the trick.

    Look under EMail forum at this website. If you still have problems, post.

    http://www.4guysfromrolla.com

    Drew
    ~Drew

    There Is No Greater Joy Than Soaring High On The Wings Of Your Dreams, Except Maybe The Joy Of Watching A Dreamer Who Has Nowhere To Land But In The Ocean Of Reality.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •