www.webdeveloper.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2008
    Location
    moreno valley, California ,usa
    Posts
    161

    resolved [RESOLVED] Message from Php Mailer

    Hi gang,
    I'm using phpmailer _2.3; it sends email from a form on a webpage to the hosting service email account. It has always worked beautifully; it works fine now except now it prints out the following message:
    "Depreciated:Function split() is depreciated in home/..pathspec....on line 447"
    then it gives the standard message: "Message has been sent"

    Is there any way to eliminate this 'depreciated' message?

    It might be helpful to list the settings the phpmailer is using so here is the php code that actually does the sendingpasswords 'xx'ed' out):

    <?php
    require("php/phpMailer_v2.3/class.phpmailer.php");
    $visitor_name=$_POST['visitor_name'];
    $visitor_email=$_POST['visitor_email'];

    $regard=$_POST['regard'];
    $message=$_POST['message'];


    $mail = new PHPMailer();

    $mail->IsMail(); // telling the class to use SMTP
    $mail->Host = "smtpout.secureserver.net"; // SMTP server

    $mail->From = $visitor_email;
    $mail->FromName =$visitor_name;
    $mail->AddAddress("jessina@thewellnessmassage.com");
    $mail->SMTPAuth=true;
    $mail->Port=25;
    $mail->Username = 'jessina@thewellnessmassage.com';
    $mail->Password = 'XXXXXXXXXX';
    $mail->Subject = $regard;
    $mail->Body = $message;
    $mail->WordWrap = 50;
    $mail->SMTPDebug=2;

    if(!$mail->Send()) {
    echo 'Message was not sent.';
    cho 'Mailer error: ' . $mail->ErrorInfo;
    } else {
    echo 'Message has been sent.';
    }
    ?>

    I would appreciate any suggestions.

    captsig

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    18,106
    You could convert it to use preg_split() (or possibly explode() if regular expressions are not actually needed); but in any case you should turn off error-reporting on your production server (set "display_errors" to false either in your config or via ini_set()). You can additionally turn off the logging of notice-level messages by changing the error_reporting setting (config or via error_reporting()).
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Oct 2008
    Location
    moreno valley, California ,usa
    Posts
    161
    NogDog, thank you for your prompt reply;
    Per your suggestion, I tried this:
    <?php
    ini_set('display_errors', 'off');

    and it solved the problem.

    thanks amigo,
    captsig

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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



Recent Articles