Sending Email in PHP ?

Discussion in 'PHP' started by mab, Mar 3, 2008.

  1. #1
    Hello guys .

    i'm currently working on a project which deal with many things link sending confirmation messages to members . well the server that i'm using i guess doesn't support Mail(); function . i tried to use it many time but nothing happened ,, it shows that "message has been sent" but i login my email there is no new email (even junk ) i'm using hotmail .

    any ideas ?
    Thanks .
     
    mab, Mar 3, 2008 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    nico_swd, Mar 3, 2008 IP
  3. 007c

    007c Peon

    Messages:
    611
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Have you tried a inbox that accepts spam? If you have no spf records or bad headers bad from address formatting, sometimes those emails won't even show up in hotmail.
     
    007c, Mar 3, 2008 IP
  4. mab

    mab Active Member

    Messages:
    563
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #4
    ok ill try it and ill tell you the result ..

    well i did .. on a bad server :) .. old one and no security on it ..
     
    mab, Mar 3, 2008 IP
  5. mab

    mab Active Member

    Messages:
    563
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #5
    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/XXX/public_html/XXX/class.phpmailer.php on line 44
     
    mab, Mar 3, 2008 IP
  6. zerxer

    zerxer Peon

    Messages:
    368
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Could you paste the code to use? Sounds like there's regular text after a ; somewhere on line 44 and it's expecting a $var, function, or end of the class (which would be })
     
    zerxer, Mar 3, 2008 IP
  7. webrehash

    webrehash Peon

    Messages:
    163
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You could try Universal Email. Not free, but it's pretty sweet for sending email to multiple recipients from a recordset.
     
    webrehash, Mar 3, 2008 IP
  8. 007c

    007c Peon

    Messages:
    611
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #8
    ppl will be able to help if you post line 44 of /home/XXX/public_html/XXX/class.phpmailer.php and some of the surroundings too.
     
    007c, Mar 3, 2008 IP
  9. chanakya

    chanakya Peon

    Messages:
    361
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Connect to outside smtp server and send mails through it, It`s always best spam free and fast method, Don`t use readymade scripts
     
    chanakya, Mar 3, 2008 IP
  10. renwickftw

    renwickftw Banned

    Messages:
    215
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #10
    mail() pretty easy
     
    renwickftw, Mar 3, 2008 IP
  11. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #11
    ^ Reading apparently not.
     
    nico_swd, Mar 4, 2008 IP
  12. mab

    mab Active Member

    Messages:
    563
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #12
    Sorry i didn't know that you guys have replyed :) ..

    Well don't care about the error message .. it has been fixed but the messages does not arrive in HOTMAIL but ther arrive to GMAIL in the inbox ! . any ideas ?
     
    mab, Mar 5, 2008 IP
  13. 007c

    007c Peon

    Messages:
    611
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Post the mail header of a received email.
     
    007c, Mar 6, 2008 IP
  14. mab

    mab Active Member

    Messages:
    563
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #14
    i'm using this ..

    $eol="\n";
    $headers = "From: ".$fromname."<".$fromaddress.">".$eol;
    $headers .= "Reply-To: ".$fromname."<".$fromaddress.">".$eol;
    $headers .= "Return-Path: ".$fromname."<".$fromaddress.">".$eol;
    $headers .= "Message-ID: <".time()."-".$fromaddress.">".$eol;
    $headers .= "X-Mailer: PHP v".phpversion().$eol;
    
    $headers .= 'MIME-Version: 1.0'.$eol;
    $headers .= "Content-type: text/html; charset=iso-8859-1".$eol.$eol;
    PHP:
     
    mab, Mar 7, 2008 IP
  15. mab

    mab Active Member

    Messages:
    563
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #15
    still lookin for help
     
    mab, Mar 9, 2008 IP