PHPMailer eregi() doest work... need help

Discussion in 'PHP' started by LOD, Aug 30, 2009.

  1. #1
    hi guys
    i've been trying to send email with phpmailer.. but they seem to be using a function called eregi() which is now decapitated. and its showing error even though it sends the mail alright..
    can someone help me to fix this.. i dont want my visitor to see an error everytime they submit an email even though it gets passed...
    thanks in advance...
     
    LOD, Aug 30, 2009 IP
  2. pneulameiro

    pneulameiro Peon

    Messages:
    440
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Why don't you try to upgrade your version of phpmailer to match with the version of your server php interpreter?
     
    pneulameiro, Aug 31, 2009 IP
  3. LOD

    LOD Member

    Messages:
    319
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    35
    #3
    the new version of php doesnt seem to be working for me...:(
     
    LOD, Aug 31, 2009 IP
  4. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well, you can change all mentions of eregi by preg_match, but you'l have to add the /i modifier to all regexes.
     
    premiumscripts, Aug 31, 2009 IP