Changeset 1079
- Timestamp:
- 09/17/06 02:01:18 (2 years ago)
- Files:
-
- feedmelinks/contacts/add.php (modified) (1 diff)
- feedmelinks/modules/utils.inc.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
feedmelinks/contacts/add.php
r427 r1079 18 18 <% 19 19 add_contact( $user, $u ); 20 notify_added_as_peep( $user, $u ); 20 21 %> 21 22 feedmelinks/modules/utils.inc.php
r1077 r1079 4 4 include_once( "env.inc.php" ); 5 5 include( get_root() . "/modules/prep-cache.inc.php" ); 6 7 function notify_added_as_peep( $u, $by ) { 8 $body = "Hi, $u. 9 10 $by just added you as a fellow linker on Feed Me Links. 11 12 To browse $by's links or add $by to your peeps, click http://feedmelinks.com/u/$by 13 14 Bye! 15 16 -- 17 18 the Feed Me Links staff 19 20 "; 21 $headers = get_mail_headers(); 22 $to = getEmailAddressForUser( $u ); 23 24 $success = mail( $to, "Someone has added you as a contact", $body, $headers); 25 return $success; 26 } 6 27 7 28 # returns the PATH to the newly created thumbnail … … 2409 2430 "; 2410 2431 2411 $headers .= "From: Feed Me Links <" . getEmailAddressForUser( $commenter ) . ">\n"; 2412 $headers .= "X-Mailer: feedmelinks-mailer-daemon\n"; 2432 $headers = get_mail_headers(); 2413 2433 $mailSuccess = mail( $to, $subject, $body, $headers); 2414 2434 if( $debug ) … … 2447 2467 } 2448 2468 2469 function get_mail_headers() { 2470 $headers = ""; 2471 $headers .= "From: Feed Me Links <do-not-reply@feedmelinks.com>\n"; 2472 $headers .= "X-Mailer: feedmelinks-mailer-daemon\n"; 2473 return $headers; 2474 } 2449 2475 function getOwnerForFolder( $argId ) { 2450 2476 if($debug)