• This is the error message i get when someone posts a response to a topic. The response DOES get posted – but the users always sees this.

    Message failed to send to [PERSONS EMAIL HERE] from [MY USERNAME]
    Warning: Cannot modify header information – headers already sent by (output started at C:\webroot\blog\wp-content\plugins\swift-smtp\st_swift.php:118) in C:\webroot\blog\wp-includes\pluggable.php on line 327

Viewing 1 replies (of 1 total)
  • I’m getting the same problem, and I found out why by tracing the code in st_swift.php.

    The reason you are getting this error message from st_swift.php is because [MY USERNAME] is not a valid email address. It has to be in an email address form(eg. [email protected]).

    To work around:
    1) open st_swift.php

    2) go to line 117, the code of this line should be:
    if ($swift->send($message, $to, $from)) {return true;}

    3) On the above line of code, the variable $from is actually storing the [MY USERNAME] in our case; but again, it has to be in email format to make this line of code run correctly.
    Therefore, we can:
    a) hardcode an email address into $from by inserting
    $from = “xxxx.anydomain.com”;
    right before the 117 line of code(this is the solution i chose).
    b) right before the 117 line of code, write a little code to check if $from contains the character “@”, if not, append “@anydomain.com” to it.

    hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Warning: Cannot modify header information’ is closed to new replies.