Author Topic: How to turn off trade centre emails  (Read 3740 times)

Offline Daniel15

How to turn off trade centre emails
« on: January 05, 2006, 01:56:10 pm »
If you don't like the email feature, here's how to turn it off:

Open Sources/shop.php
Find: (lines 785 - 789)
Code: [Select]
//Send message to original owner
$to = $row_item['emailAddress'];
$subject = "Your trade of '{$row_item['name']}' item";
$message = "Congratulations! {$row_user['realName']} has purchased your '{$row_item['name']}' item from you for ".formatMoney($row_item['tradecost']).".\r\n\r\nHave a good day,\r\n --Forum Management";
mail($to, $subject, $message);

See the mail($to, $subject, $message) line? Just put a // in front of it (eg.:
Code: [Select]
//mail($to, $subject, $message);

This will comment out that line, and stop the email from being sent.
« Last Edit: January 05, 2006, 02:53:49 pm by daniel15 »

Offline Daniel15

Re: How to turn off trade centre emails
« Reply #1 on: August 06, 2006, 02:16:21 pm »
No longer relevant, SMFShop now uses IM's instead
Unstickyed