using acp_mail Class ?

Discussion forum for MOD Writers regarding MOD Development.
Juanpa
Registered User
Posts: 2
Joined: Tue May 19, 2015 4:01 pm

using acp_mail Class ?

Post by Juanpa »

Hi 'verybody,

I just would like to modify Global Annoucement Mod and I ask me if is it possible to use the Class acp_email that sends mass email.
Can we instanciate this class, give parameters we want (groupId, Title, Message) and send messages to users ?

What I want to do is, when you send an Annouce Post, It send an email to somes user groups.

Can you tell me if is it possible, and how to implement that.

Thanx ;)
Juanpa
Registered User
Posts: 2
Joined: Tue May 19, 2015 4:01 pm

Re: using acp_mail Class ?

Post by Juanpa »

Thanks for help :?

I've build a mass email class, because I don't think we can instanciate acp_mail class, corrrect me if I'm wrong, could you explain to me how to include properly this class to use it, to instance it in the posting.php ?

Thanx
User avatar
AmigoJack
Registered User
Posts: 6127
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン

Re: using acp_mail Class ?

Post by AmigoJack »

It was never intended for that. "Including" it would result in ugly hacks to make the class think it's executed as a module - in the end you're better off copying the code parts you prefer, which would also dodge all the code parts that are definitly not useful for you.
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28

Return to “[3.0.x] MOD Writers Discussion”