Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Server "from" e-mail address

  1. #11
    Matt's Avatar
    Matt is offline GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    5,960

    Default

    Interesting. I still think there is another way around it in the script itself. I will have to try and find how we did this in the past.

    Any reason you want to use charset=iso-8859-1 instead of UTF-8 ?
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | Follow us on X |

  2. #12
    charlesh's Avatar
    charlesh is offline Master Glow Jedi
    Join Date
    Aug 2006
    Location
    Atlanta, GA - better than you imagined it would be.
    Posts
    189

    Default

    I guess I could change it now, I used it from another site I did (copied over) back in 2006 and we were having serious email problems with trying to get attachments through to end-users without being blacklisted. Somehow, I think I tried everything at the time to get it to pass. In the end, we just went to a "send you the link with a get statement" download type thingy. I could change it now to get with the times - thanks for pointing that out.

  3. #13
    Matt's Avatar
    Matt is offline GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    5,960

    Default

    Sure

    I've talked to a friend of mine and this is what he says. Maybe he will post here eventually.

    the solution of their problem lies in the middle.

    Return Path can't be set in headers, it must be set as additional mail() parameter. Like so:

    PHP Code:
    mail($to$subject$body$headers"-f".$return_path); 
    It should be also noted that it can't be set if PHP is running under Windows or is less than version 4.0.6.

    These headers are correct:

    PHP Code:
    $headers .= 'From: Mr. Person<person@domain.com>'.$eol
    $headers .= 'Reply-To: Mr. Person<person@domain.com>'.$eol
    A combination of the above should get them through without any server config modifications.
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | Follow us on X |

  4. #14
    charlesh's Avatar
    charlesh is offline Master Glow Jedi
    Join Date
    Aug 2006
    Location
    Atlanta, GA - better than you imagined it would be.
    Posts
    189

    Default

    I agree, but I think the

    Set the Sender: Header when the mail sender changes the sender (-f flag passed to sendmail).
    Always set the "Sender:" header when the sender differs from the actual sender. Unchecking this will stop "On behalf of" data in Microsoft® Outlook, but may limit your ability to track abuse of the mail system.
    ...checkbox when selected overrides this and then inserts the server's own. I tried it both ways and found I was able to pass the -f param only when the checkbox was disabled.

    What would be cool is that if Cpanel could have logic built in where if someone does do the -f param, it overrides the configuration!
    Last edited by charlesh; 10-14-2010 at 03:24 PM. Reason: remove hyperlink to whm

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 7
    Last Post: 09-23-2008, 04:14 PM
  2. Share a PHP coder - a "timeshare" solution that saves you $$$
    By Matt in forum General Announcements
    Replies: 0
    Last Post: 03-20-2006, 02:35 PM

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14