Results 1 to 6 of 6

Thread: 'From Address' in email

  1. #1
    Join Date
    Feb 2006
    Location
    West Hartford, Connecticut, USA
    Posts
    16

    Default 'From Address' in email

    I'm sending email out from a php script and the system ignores my from adderss and substitutes 'accountname@boxnn.bluehost.com' Is there any way to get this working? Most of the recipients will probably think it is spam and delete it immediately.

    -Mike

  2. #2
    Join Date
    Mar 2006
    Location
    nebraska
    Posts
    5

    Default "From"

    I have had the same problem. I had to script it like this:

    mail($emailTo, "TEST", $msg, 'From: "Tim B" <admin@mysite.com>');

    Make sure to leave a space before the <

  3. #3
    Join Date
    Feb 2006
    Location
    West Hartford, Connecticut, USA
    Posts
    16

    Default

    Thanks - it's working.

  4. #4

    Thumbs down Having this problem too, using Perl...

    *bump*

    I'm having the same issue...The script I'm using is a perl script. How do I get it to display something else? (I can post source code if necessary).

    Also-- messages sent by WordPress have the same thing happen to them. Looks ugly.

    Quote Originally Posted by mafeldman
    I'm sending email out from a php script and the system ignores my from adderss and substitutes 'accountname@boxnn.bluehost.com' Is there any way to get this working? Most of the recipients will probably think it is spam and delete it immediately.

    -Mike

  5. #5
    Join Date
    Feb 2006
    Location
    Michigan
    Posts
    61

    Default

    I could be wrong, but don't you have to actually have the from address be to an actual email address? So if it is register@yoursite.com then you need to make sure that address is created in the mail part of Cpanel. If that isn't the problem sorry.

  6. #6

    Default

    Quote Originally Posted by atomicnuke
    I could be wrong, but don't you have to actually have the from address be to an actual email address? So if it is register@yoursite.com then you need to make sure that address is created in the mail part of Cpanel. If that isn't the problem sorry.
    Interesting idea. I've never heard that. Is an alias all right? Or does it have to have an actual mail account?

    I only use a couple of actual accounts and set up forwarders for most of my addresses.

    Also, the main problem I'm having is on my contact form script (not bluehost's, that one's lame and uses your email address in cleartext)... the script puts the sender's address in the from field...and of course the user won't be an account on my server at all...

Tags for this Thread

Posting Permissions

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