Customizing Compiere to send email to all users

11 views
Skip to first unread message

Jp

unread,
Jun 4, 2007, 6:42:22 AM6/4/07
to Compiere
I need to send an email alert to all users of a particular client
group, if one particular transaction occurs or if any specified
condition is satisfied.
I create a new java class in org.compiere.model package of base
folder.In that class, if a new record is inserted in a specified
database table, an email alert should be passed from the logged-in
user mailid to all the other user mailids of that particular client
group.
This also involved certain updation of tables in database.
At present, insertion of record and updation of database occurs
properly. But, the next step of sending email to all users is not
successful. there is no compilation or logical error in that
coding(upto my knowledge) and smtp connection is also checked.
My doubt is where to place the java for the email alert to work
properly.
i need some help in this regard for which i vil be very grateful.

kerv

unread,
Jun 5, 2007, 1:32:39 PM6/5/07
to Compiere
The user who create the transaction can send emails from Compiere
client?
You can test it with sending, for example, a report.

Jp

unread,
Jun 6, 2007, 12:58:52 AM6/6/07
to Compiere
Hi kerv,

Really happy to see a reply to my message. I will be more
happy if U can elaborate on this.Iam clueless regarding the files of
compiere source and so iam not able to make a perfect start.
TanQ .

> > i need some help in this regard for which i vil be very grateful.- Hide quoted text -
>
> - Show quoted text -

kerv

unread,
Jun 6, 2007, 3:53:40 AM6/6/07
to Compiere
Hi,

I not understand very well your answer.
If You want to solve your problem please answer my question.

Jp

unread,
Jun 6, 2007, 4:18:56 AM6/6/07
to Compiere
Hi,

At present, Iam doing research on Compiere. I hav done certain
customization in the existing Compiere source code.
My customization involves inserting a record in a specified database
table. If a new record is inserted, then an email has to be sent to
all the users of the particular client group mentioning the record
insertion.Here, my work involves coding a java program that does
customization followed by sending email to all other users.Any user of
a group can do this new record insertion and intimate this to all
other users of his group.My java code does two steps:
Inserting a new record ,and then, sending email to all users.
My code works properly in case of inserting record. My database is
also getting updated perfectly. But, iam not receiving any email once
this is done.As per the code, all users of this group should receive a
mail.But this is not getting done.
I hav placed my java file in org.compiere.model package of base
folder.I hav doubt whether these changes r to be made in any folder of
the Compiere source code. Hope U can makeout my problem. Pls try to
reply me. TanQ

Jp

> > > - Show quoted text -- Hide quoted text -

kerv

unread,
Jun 6, 2007, 4:49:22 AM6/6/07
to Compiere
I don't ask you about the source code. I ask you if the user who
created the transaction can send emails from inside the Compiere
client?
Reply all
Reply to author
Forward
0 new messages