Welcome, Guest!!
follow us on... rss

Author Topic: 2 email addresses in "BotScout.php"?  (Read 5004 times)

Tiffer

  • Newbie
  • *
  • Posts: 1
    • View Profile
2 email addresses in "BotScout.php"?
« on: March 21, 2012, 12:58:28 AM »
Hi

In the "BotScout.php" file is there any way to allow the bot emails to be sent to 2 email addresses? I have 2 administrator (including myself) on my forum and at present I am forwarding the email notifications I get to the other admin so he is aware the API is working.

I thinking specifically of the line:

// if sending alerts, send them to what email address?
$toText = "you@YourEmail.com";

Many thanks for a great service
Chris.

Mike

  • Administrator
  • Sr. Member
  • *****
  • Posts: 300
    • View Profile
Re: 2 email addresses in "BotScout.php"?
« Reply #1 on: March 21, 2012, 05:04:06 AM »
You can try separating the email addresses with a comma like this:

$toText = "you@YourEmail.com, me@myEmail.com";

I don't know if that will work. If not, you could add a BCC or CC address in the header section and modify the mail() line to look like this:

$bccText = 'me@myEmail.com <me@myEmail.com>';
mail($toText, $subjectText, $msgText, "To: $toText <$toText>\n" . "From: $fromText <$fromText>\n" . "Bcc: " . $bccText . "\n");




Hi

In the "BotScout.php" file is there any way to allow the bot emails to be sent to 2 email addresses? I have 2 administrator (including myself) on my forum and at present I am forwarding the email notifications I get to the other admin so he is aware the API is working.

I thinking specifically of the line:

// if sending alerts, send them to what email address?
$toText = "you@YourEmail.com";

Many thanks for a great service
Chris.

Please don't PM me for assistance- post your questions in the forum where others can see them.