Results 1 to 5 of 5

Thread: php email autoresponder (Solved)

  1. #1
    Join Date
    Dec 2007
    Location
    Mississauga
    Posts
    166
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default php email autoresponder (Solved)

    I have a php registration form page that when the submit button is hit it send an email to designated recipients and a thank you email to the person filling out the form via email.

    Right now the email address the recipient see's is "CGI-Mailer" how do I make the reply address the user see's as "info@dummysite.com"?

    Please and thanks.
    Last edited by nate51; 02-04-2008 at 09:19 PM.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    we would need to see the code, but usually it is in this line of code:

    Code:
    mail($to, $subject, $message, 'From: info@dummysite.com <info@dummysite.com>');
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Dec 2007
    Location
    Mississauga
    Posts
    166
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default

    It works to display the address in your inbox, but it produces a "Message has been blocked for your safety" message in hotmail and when you hit the reply button the address comes out like this on the address bar. "info@" <dummysite.com info@dummysite.com>

    Getting there though.

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    If that's the case, get rid of the highlighted part in the code below:

    Code:
    mail($to, $subject, $message, 'From: info@dummysite.com <info@dummysite.com>');
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  5. #5
    Join Date
    Dec 2007
    Location
    Mississauga
    Posts
    166
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default

    That did it!

    Perfect, thanks a bunch!

    -- Nate

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
  •