Plugin Directory

Changeset 360496


Ignore:
Timestamp:
03/15/2011 11:54:49 PM (15 years ago)
Author:
tkriplean
Message:

adding sender header to email

File:
1 edited

Legend:

Unmodified
Added
Removed
  • reflect/trunk/php/controllers/bullets_api.php

    r359643 r360496  
    192192                    $bullet_text = str_replace("\\'", "'", $bullet_text);
    193193                    try {
     194                       $from = get_bloginfo('admin_email');
    194195                    $subject = "$user summarized a comment you wrote in \"$post_title\"";           
    195196                    $message = "Hi $comment_author,\n\n$user believes that you made the following point:\n\n\"$bullet_text\"\n\nTo verify whether this is accurate or not, please visit $link and login.\n\nThanks!";
    196                         mail($comment->comment_author_email, $subject, $message);   
     197                        $headers = "From: $from" . "\r\n" .
     198                           'Reply-To: wordpress@communityforums.org' . "\r\n" .
     199                           'X-Mailer: PHP/' . phpversion();                     
     200                        mail($comment->comment_author_email, $subject, $message, $headers);
    197201                    } catch (Exception $e) {}
    198202              }
Note: See TracChangeset for help on using the changeset viewer.