+ Reply to Thread
Results 1 to 6 of 6

Thread: PHP Mail from address?

  1. #1
    liammk is offline x10Hosting Member liammk is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    15

    PHP Mail from address?

    Even when i specify the from address in php it still makes the from adress liammk@absolut.x10hosting.com
    I dont want this. What is wrong with my code:
    PHP Code:
    // The message
    $message " bla, bla, bla, bla, bla";

    $headers 'From: no_reply@XXX.co.cc' "\r\n" .
        
    'Reply-To: no_reply@XXX.co.cc' "\r\n" .
        
    'X-Mailer: PHP/' phpversion();

    // In case any of our lines are larger than 70 characters, we should use wordwrap()
    $message wordwrap($message70);

    // Send
    mail($emails'XXX'$message$headers); 

    Last edited by liammk; 04-07-2010 at 07:44 PM.

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: PHP Mail from address?

    I copied/pasted your code (added $emails = "my address") and ran it. It showed up at gmail with the 'XXX.co.cc' from/reply-to .

    gmail did show : mailed-by chopin.x10hosting.com

    What server are you on?
    Nothing is always absolutely so.

  3. #3
    liammk is offline x10Hosting Member liammk is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    15

    Re: PHP Mail from address?

    Quote Originally Posted by descalzo View Post
    I copied/pasted your code (added $emails = "my address") and ran it. It showed up at gmail with the 'XXX.co.cc' from/reply-to .

    gmail did show : mailed-by chopin.x10hosting.com

    What server are you on?
    lostus, i was testing it with gmail

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: PHP Mail from address?

    Just had a friend on Lotus try it and this is what my gmail says:

    Code:
    from	no_reply@xxx.co.cc
    reply-to	no_reply@xxx.co.cc
    to	mygmailaddress@gmail.com
    date	Wed, Apr 7, 2010 at 7:37 PM
    subject	XXX
    mailed-by	lotus.x10hosting.com
    EDIT/ADD...

    well, the two accounts I had my friends send from were yadda.x10hosting.com, not yadda.co.cc accounts.
    Last edited by descalzo; 04-07-2010 at 09:44 PM.
    Nothing is always absolutely so.

  5. #5
    liammk is offline x10Hosting Member liammk is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    15

    Re: PHP Mail from address?

    I rly want some help here, im at a loss of what to do!

  6. #6
    liammk is offline x10Hosting Member liammk is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    15

    Re: PHP Mail from address?

    Anyone?

+ Reply to Thread

Similar Threads

  1. I cannot confirm my e-mail address!
    By challenge_nyge in forum Free Hosting
    Replies: 1
    Last Post: 01-03-2010, 06:14 AM
  2. e-mail address confirmation
    By dntemple in forum Free Hosting
    Replies: 1
    Last Post: 11-07-2009, 09:21 AM
  3. Getting rid of www. in e-mail address?
    By Buddyroe333 in forum Free Hosting
    Replies: 2
    Last Post: 07-10-2008, 05:22 PM
  4. Get an @live E-Mail Address!
    By MicrotechXP in forum Computers & Technology
    Replies: 12
    Last Post: 08-30-2007, 09:44 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
x10hosting free hosting for the masses
dedicated servers