SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot bucich's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley
    Posts
    106
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Form submission to e-mail (changing the address)

    Greetings...I'm new at this so bear with me.
    I've created a "contact me" page where the form automatically e-mails me a comment.
    That's all well and good but...this is through Yahoo and the program defaults to my
    Yahoo e-mail address. How do I change the code to send the e-mail to a different address?
    The code follows:

    form name="form0" method="POST" action="http://us.1.p2.webhosting.yahoo.com/forms?login=[MEMBER_NAME]

    Thanks!
    Rick

  2. #2
    SitePoint Evangelist
    Join Date
    Sep 2003
    Location
    San Diego, CA
    Posts
    591
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What do you mean?

  3. #3
    SitePoint Zealot bucich's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley
    Posts
    106
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the code sends an e-mail to my yahoo account. I would like to change it to send the e-mail elsewhere...if possible.

    Is that clear?

  4. #4
    SitePoint Evangelist
    Join Date
    Sep 2003
    Location
    San Diego, CA
    Posts
    591
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh... for example, like a hotmail email account, right?

    If so, to do that in javascript, set the action to mailto:[your email address]. It will open the users default mail client. This is by far not the best way...., but it is the only way in javascript that I am aware of. The best solution is a server side script either in ASP or PHP.

  5. #5
    SitePoint Zealot bucich's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley
    Posts
    106
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks!


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
  •