Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Administration & Installation

User login

Frontpage Sponsor

Main

Poll
As a Customer What would do to keep your ERP Implementation intact
Proactively define Business Process-- Take the Project Ownership
50%
Handover everything to System Integrator from drawing BP till implementation of ERP
17%
Hire more inhouse skilled & capable IT Resource to work directly with SI
33%
Rely on SI Architects/Consultants
0%
Total votes: 12

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 23rd February 2021, 11:46
mvanta mvanta is offline
Member
 
Join Date: May 2004
Location: Athens HELLAS
Posts: 64
mvanta is on a distinguished road
Baan: LN 10.5 - DB: SQL 2014 - OS: Windows 2012
Lightbulb Send email from LN session after specific actions
Baan: Infor ERP 10.5
DB: SQL Server 2019
OS: Windows 10
C/S: Client

Hello all.
We have a request and we need your expertise since we have never done something similar.

We are using LN 10.5 and from Order session (tdpur4100m000-tdpur4100m900) when an order is submitted (there is a change in the status) we want to send an email to specific users so as to let them know.Is it possible?If yes, using which LN functionality?

Any ideas?Please advice.
Thank you in advance!
Maria
Reply With Quote
  #2  
Old 26th February 2021, 06:23
srkndnsn srkndnsn is online now
Member
 
Join Date: Aug 2016
Posts: 61
srkndnsn is on a distinguished road
Baan: Infor LN 10.4 - DB: Oracle - OS: Unix
Hello,

You can send a mail in the ue script of tdpur400.

I guess , ue.after.after.save.object would be work for you

Best regards
Serkan Danışan
Reply With Quote
  #3  
Old 26th February 2021, 07:37
mvanta mvanta is offline
Member
 
Join Date: May 2004
Location: Athens HELLAS
Posts: 64
mvanta is on a distinguished road
Baan: LN 10.5 - DB: SQL 2014 - OS: Windows 2012
Hello srkndnsn!
Can you be more specific?It is really a black box for us.We need to use extension for sure but do we need to configure ES emessage?Or there is no need?

Thank you,
mvanta
Reply With Quote
  #4  
Old 26th February 2021, 09:41
srkndnsn srkndnsn is online now
Member
 
Join Date: Aug 2016
Posts: 61
srkndnsn is on a distinguished road
Baan: Infor LN 10.4 - DB: Oracle - OS: Unix
UE means User Exit, you can use for every table in your LN system. For detailed information, you should check this thread :

http://www.baanboard.com/baanboard/s...ad.php?t=70710

You can use also Extensions but I have not experienced yet. So I cant say anything about that.

For your second question, we are using our mail server and send mail via shell script.

Best,
Serkan Danışan
Reply With Quote
  #5  
Old 26th February 2021, 10:50
vahdani's Avatar
vahdani vahdani is offline
Guru
 
Join Date: Aug 2002
Location: Cologne, Germany
Posts: 471
vahdani is on a distinguished road
Baan: all - DB: all - OS: Unix / Win2K
Hi,

I know that there is a complex internal functionality for sending emails from an ERPLN program. I had tested the functionality a long time ago and it did work!
Programmers can find the information hier: Emessage Connector Overview

To Maria: I don't know if there is another more user freindly way to send emails but the Emessage Connector method mentioned above needs a real expirienced programmer to write a program to register the status change of orders -say per user exit as mentioned per serkan- and then create another program to create and send the emails for the registered orders. As said real programming!
__________________
May the force be with you!
Reply With Quote
Sponsored Links
  #6  
Old 26th February 2021, 16:11
mvanta mvanta is offline
Member
 
Join Date: May 2004
Location: Athens HELLAS
Posts: 64
mvanta is on a distinguished road
Baan: LN 10.5 - DB: SQL 2014 - OS: Windows 2012
Quote:
Originally Posted by vahdani View Post
Hi,

I know that there is a complex internal functionality for sending emails from an ERPLN program. I had tested the functionality a long time ago and it did work!
Programmers can find the information hier: Emessage Connector Overview

To Maria: I don't know if there is another more user freindly way to send emails but the Emessage Connector method mentioned above needs a real expirienced programmer to write a program to register the status change of orders -say per user exit as mentioned per serkan- and then create another program to create and send the emails for the registered orders. As said real programming!
vahdani,
you make it sound really scary!
:-)

You have sent the emails using the emessager functionality?

mvanta
Reply With Quote
  #7  
Old 27th February 2021, 07:09
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,503
bhushanchanda is a jewel in the roughbhushanchanda is a jewel in the roughbhushanchanda is a jewel in the rough
Baan: LN FP 1-9, 10.4, a little bit of Baan IV - DB: SQL Server 2008, Oracle - OS: Windows Server 2008 R2, Unix
Check out this thread. Or just google "send email baanboard" and you will find a lot of answers. E-message connector is pretty straight forward solution. Just configure the service you want to use (SMTP..etc), use the sample program in the prog guide to test..customize as per need. You can also use external programs like Blat (Thread) and run them from LN. A lot of different ways to achieve what you are looking for.
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote
  #8  
Old 7th March 2021, 12:10
rochus rochus is offline
Senior Member
 
Join Date: Mar 2002
Location: Switzerland
Posts: 207
rochus is on a distinguished road
Baan: xBaanxxx - DB: Oracle, DB2, SQL-Server - OS: Unix, MS, Linux
cmf.sendMail()

cmf.sendMail() is available from TIV2370
Reply With Quote
  #9  
Old 8th March 2021, 09:50
ee05220 ee05220 is offline
Junior Member
 
Join Date: Aug 2017
Posts: 15
ee05220 is on a distinguished road
Baan: infor ln - DB: sqlserver - OS: w10
Use this code example from Programmers Guide Manual. It worked for me

Code:
|******************************************************************************
|* CMF Sample Code
|******************************************************************************
|* Script Type: 0
|******************************************************************************

DLLUSAGE
Desc:   This code sample demonstrates the use of some of the 
        Infor LN eMessage Connector commands described in the 
        CMF 4GL Functional Design. 
        It accepts a filename (which points to an RTF document), 
        Infor LN eMessage Connector service name, 
        recipient name and recipient address (SMTP only) 
        as input arguments. 
        It then uses the Infor LN eMessage Connector commands 
        to construct a message then send it to the indicated
        recipients.
Pre:    None.
Post:   The file is sent to the appropriate Infor LN eMessage
        Connector service.
In:     The four program arguments accepted are:
        sourcefile:	The name of the file (RTF format) to be sent.
        service:    This is the name of the service that will
                    be used to send the message. 
                    This must be name of a valid Infor LN 
                    eMessage Connector service
        name:       This is the (human readable) name of the recipient.
        address:    This the address where the file should be sent. 
                    This could be an email address, a fax number, 
                    etc.
Out:    None.
ENDDLLUSAGE

        string recipient.address(80)    |Recipient address
        string recipient.name(80)       
                        | Human readable name of the recipient
        string sourcefile(256)          
                        |Filename of the source file

function main()
{
        domain ttcmf.prov service       
                        |Infor LN eMessage Connector service for 
                        |transporting messages
        long stat       |Variable to hold return values
        long mid        |CMF message id

        |Switch to company 0
        compnr.check(0)
        
        |Get program arguments
        sourcefile = strip$(argv$(1))
        service = strip$(argv$(2))
        recipient.name = strip$(argv$(3))
        recipient.address = strip$(argv$(4))
        
        |Build message XML header
        mid = create.xml.header()       
        
        |Send message
        if mid <>0 then
                stat = cmf.startService(service,2)
                if stat<>0 then
                        message("Message could not be sent "&
                        	"(Infor LN eMessage Connector"&
                        	" service did not start)")
                        exit()
                endif
                stat = cmf.send(mid,service)
                if stat<>0 then
                        message("Message could not be sent "&
                        	(Infor LN eMessage Connector "&
                        	"service refused message)")
                        cmf.stopService(service,2)
                        exit()
                endif
                stat = cmf.stopService(service,2)
        endif
}

function long create.xml.header() 
{
        long    message.ID
        long    from.ID
        long    to.ID
        long    attachment.ID
        long    ret
        
        message.ID = cmf.create()
        
        ret = cmf.setClass(message.ID, "CMF.NOTE")
        ret = cmf.setSubject(message.ID, "Sample CMF Message")

        |Set FROM recipient
        from.ID = cmf.createRecipient(message.ID, ttcmf.role.from)
        ret = cmf.setRecipientName(from.ID, "John Doe")
        ret = cmf.setRecipientAddress(from.ID,"jdoe@example.com")
        ret = cmf.setRecipientType(from.ID, "SMTP")
        |In reality of course the from address could be filled from
		|the Address book.

        |Set TO recipient 
        to.ID = cmf.createRecipient(message.ID, ttcmf.role.to)  
        ret = cmf.setRecipientName(to.ID, recipient.name)
        ret = cmf.setRecipientAddress(to.ID, recipient.address)
        ret = cmf.setRecipientType(to.ID, "SMTP")
        ret = cmf.setRecipientResponsibility(to.ID, "TRUE")

        |Set attachment 
        attachment.ID = cmf.createAttachment(message.ID)
        ret = cmf.setAttachmentBody(attachment.ID, "TRUE")
        ret = cmf.setAttachmentMIME(attachment.ID,
				"application/rtf"
        ret = cmf.setAttachmentFileName(attachment.ID,sourcefile,
				"Sample Attachment")

        return(message.ID)
}
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Send Baan Reports by Email bamnsour Third Party Products 3 19th June 2013 16:29
zoom to correct business partner jojovalenton Tools Development 5 14th October 2009 10:26
synchronizing different occurrences on parent session from child Ruskin Tools Development 8 18th March 2008 17:56
how to send mail from baan session vaishali Tools Development 3 4th June 2007 07:48
-- - Set option for specific session pjohns Tools Administration & Installation 2 11th February 2002 14:13


All times are GMT +2. The time now is 14:09.


©2001-2021 - Baanboard.com - Baanforums.com