Results 1 to 6 of 6
  1. #1

    * Change default sender address using php mail() / sendmail?

    I'm wondering if anyone else has experience with this, or if it's something easy that I'm overlooking.

    I am on a VPS service (CentOS Linux) and I want my php mail function emails to send from a specified address. I've already manipulated the headers, so the emails do appear to come from the specified addres, but on mobile devices it comes up as [email protected] format. I would like this to read something like [email protected]

    Does anyone know which configuration files can change this default address?


  2. #2
    Join Date
    Mar 2009
    Not sure but I think some mobile devices might look at headers or something to see some various crap (MMS/SMS gateway type stuff) - I don't see why it shouldn't work if the To field is properly set in normal desktop clients

  3. #3
    I know I'm being picky about the way emails are showing up, but it seems like I should be able to change the default 'nothing' email address to whatever I choose. What makes the mail software decide to use what it uses?

  4. #4
    Join Date
    May 2002
    You can set additional options in your php.ini for sendmail. Or in .htaccess if you use php as module:

    php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
    but you need disable safe_mode to use -f option.
    Rustelekom LLC Dedicated server since 2002, RIPE NCC member, LIR, AS51168

  5. #5
    Join Date
    Aug 2004
    GPLHost:>_ open source hosting worldwide (I'm founder, CEO & official Debian Developer)
    Servers & our leading control panel and our Xen VPS hosting, which are already included in Debian and Ubuntu
    Available in: Kuala Lumpur, Singapore, Sydney, Seattle, Atlanta, Paris, London, Barcelona, Zurich, Israel

  6. #6
    Thanks for your help guys, I've made those modifications but for some reason it hasn't done the trick. The server is still using its ugly default address. I think I will just live with it!

Similar Threads

  1. Default address in cPanel Mail
    By bumfilter in forum Hosting Software and Control Panels
    Replies: 3
    Last Post: 03-14-2007, 11:45 AM
  2. change default IP address of Plesk server
    By noahlau in forum Hosting Software and Control Panels
    Replies: 1
    Last Post: 12-25-2006, 08:17 AM
  3. Change the default IP address in Windows?
    By pmak0 in forum Hosting Security and Technology
    Replies: 3
    Last Post: 04-18-2006, 04:07 PM
  4. Cpanel: Change Default Address
    By Jon12345 in forum Hosting Security and Technology
    Replies: 2
    Last Post: 09-06-2004, 05:11 PM
  5. How to change return address for default email
    By nogi in forum Hosting Security and Technology
    Replies: 3
    Last Post: 01-18-2003, 10:21 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