Results 1 to 3 of 3

Thread: PHP Mail Question

  1. #1
    Join Date
    Aug 2006
    Location
    Ohio
    Posts
    266
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question PHP Mail Question

    Hello, I have a question pertaining to the PHP mail() function. I am using a contact form on my site to send email. I set "From" in the headers and it does display what I specified for it in the email, but it shows, "Resonant-Media@host4.surreal-media.com" as the sender. Is there any way to remove/change the "@host4.surreal-media.com" section? I tried setting the "Reply-To" header and it didn't work. Any ideas? Thanks
    Thanks DD, you saved me countless times

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

    Default

    In the "From" header, do you have it set like so:

    Code:
    From: Your Name <email@domain.com>
    If so, then I believe the only way to fix it would be to edit the php.ini file for your server configuration. Other than that, not sure what can be done.

    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
    Aug 2006
    Location
    Ohio
    Posts
    266
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, that took care of the problem. I never even thought to do that.
    Thanks DD, you saved me countless times

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
  •