1
MS-2001
Xoops Mailer
  • 2005/8/1 19:40

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


Is it possible to add the Administrators eMail adress as a blind copy recipient using the XoopsMailer?

$xoopsMailer =& getMailer();
$xoopsMailer->useMail();
$xoopsMailer->setToEmails($thisUser->getVar("email"));
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
$xoopsMailer->setFromName($xoopsConfig['sitename']);
$xoopsMailer->setSubject(_US_YOUHAVEBEENWARNED);
$xoopsMailer->setBody(sprintf(_US_WARNMAIL$thisUser->getVar("uname"), $adminUser->getVar("uname"), $warning$xoopsDB->getRowsNum($result)));
$xoopsMailer->send();

2
MS-2001
Re: Xoops Mailer
  • 2005/8/2 18:22

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


That's quite importan. So could you please help me?
I don't want to have the same code twice when it "should" be possible within one

3
MS-2001
Re: Xoops Mailer
  • 2005/8/4 17:07

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


Don't you know it or is it impossible?

4
MS-2001
Re: Xoops Mailer
  • 2005/8/5 15:25

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


Ok, for a last time: Please help me. :-/

5
kaotik
Re: Xoops Mailer
  • 2005/8/5 15:32

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


to send same email to various address's:

$xoopsMailer->setToEmails( array($email1$email2$email3));

6
MS-2001
Re: Xoops Mailer
  • 2005/8/5 15:49

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


But I don't want that the recipient with "email1" sees the other email adresses. Is that possible?

7
Dave_L
Re: Xoops Mailer
  • 2005/8/5 16:09

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Quote:
MS-2001 wrote:
Is it possible to add the Administrators eMail adress as a blind copy recipient using the XoopsMailer?


I just tested this in XOOPS 2.2, and it worked:

...
[
color=ff0000]$xoopsMailer->addHeaders('Bcc: ' $xoopsConfig['adminmail']);[/color]
$xoopsMailer->send();

8
MS-2001
Re: Xoops Mailer
  • 2005/8/5 17:09

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


I just tested it on XOOPS 1.7.3 but now a user gets the same mail twice even thoght the two assigned email adresses

$xoopsMailer->addHeaders('Bcc: '.$xoopsConfig['adminmail']);
$xoopsMailer->setToEmails($thisUser->getVar("email"));

are different. Any idea why?

9
Dave_L
Re: Xoops Mailer
  • 2005/8/5 17:12

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Does email sent to those two addresses get routed to the same email account? If so, then it's working correctly.

10
MS-2001
Re: Xoops Mailer
  • 2005/8/5 17:40

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


Nope. I've got two different adresses without any routing. Any other idea?

Login

Who's Online

159 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 159


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits