www.webdeveloper.com
Results 1 to 6 of 6

Thread: phpmailer jargon

  1. #1
    Join Date
    Feb 2005
    Location
    Florida
    Posts
    219

    phpmailer jargon

    I am using phpmailer to send emails from my webpage to whoever becomes a registered member.

    $mail->FromName = "Personal"; //The name that you'll see as Sender
    $mail->Host = "mail.pilando.com"; //Your SMTP mail server
    $mail->Mailer = "smtp"; //Protocol to use
    $mail->AddAddress($_POST['email']);

    The thing is that, even though phpmailer is working, it outputs a lot of info to the webpage before redirecting the user. The output seems to be coming from the mail server itself.

    How do I stop it from doing that?

    ______________________________________________________
    http://www.carbotek.org

  2. #2
    Join Date
    Mar 2004
    Posts
    3,056
    What does the output say? Is it not an error notification?

  3. #3
    Join Date
    Feb 2005
    Location
    Florida
    Posts
    219

    Cool

    It tells me about the connection I am making with the host, even gives out the address. No password, no login. Nothing dangerous. Just plain annoying

  4. #4
    Join Date
    Mar 2004
    Posts
    3,056
    Oh right. Sounds like it's just the design of the class then. I'd just go with the standard PHP mail functions or make a class of my own then. Sorry to be so useless.

  5. #5
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,251
    Just a guess, you may have PHPMailer::SMTPDebug set to true instead of the default false value? You could try setting it explicitly to false and see if that has any affect:
    PHP Code:
    $mailer = new PHPMailer();
    $mailer->SMTPDebug false
    "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

  6. #6
    Join Date
    Feb 2005
    Location
    Florida
    Posts
    219
    That did it. Thanks

    ____________________________________________
    http://www.carbotek.org

Thread Information

Users Browsing this Thread

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

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