cant use vbmail to send an email, header already sent.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mikep
    Senior Member
    • Jun 2006
    • 164
    • 3.5.x

    cant use vbmail to send an email, header already sent.

    using vbmail currently gives an error (it didnt used to)
    I have used it in data managers,

    but now doing something sompe and keeps throwing an error:

    Unable to add cookies, header already sent.
    File: /.../www/submitInfo.php
    Line: 2

    my code simplified, submitInfo.php:

    PHP Code:
    <?php
    Print 'submitting...<br>';
    include(
    './global.php');
    vbmail("a"'b''c');
    ?>
    submitInfo.php is in root, can someone tell me more about this error so I can fix this issue:
    Unable to add cookies, header already sent.
    I have had a look around, but cant actualy find the meaning of this error, and how to solve it in my case
    ai-stockmarketforum vbulletin-faq vbulletin-fans
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74167

    #2
    The print line is causing the error. Move it below the include for global.php.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • mikep
      Senior Member
      • Jun 2006
      • 164
      • 3.5.x

      #3
      School Boy Error, oh dear... Thanks for your help
      ai-stockmarketforum vbulletin-faq vbulletin-fans

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...