Welcome, Guest. Please login or register.
May 17, 2012, 03:12:51 pm
Home Help Search Login Register
News: SMF Forum plugin now available: Code Samples

BotScout  |  General Category  |  BotScout Discussion (Moderator: MysteryFCM)  |  Topic: 2 email addresses in "BotScout.php"? « previous next »
Pages: [1] Print
Author Topic: 2 email addresses in "BotScout.php"?  (Read 428 times)
Tiffer
Newbie
*
Posts: 1


View Profile
« on: March 21, 2012, 01: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.
Logged
Mike
Administrator
Sr. Member
*****
Posts: 280



View Profile
« Reply #1 on: March 21, 2012, 06: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.

Logged

Please don't PM me for assistance- post your questions in the forum where others can see them.
Pages: [1] Print 
BotScout  |  General Category  |  BotScout Discussion (Moderator: MysteryFCM)  |  Topic: 2 email addresses in "BotScout.php"? « previous next »
Jump to:  


Login with username, password and session length

BotScout - 2 email addresses in "BotScout.php"?

SEO light theme by © Mustang forums. Powered by SMF 1.1.16 | SMF © 2011, Simple Machines