this and that

AppScript를 이용하여 임의의 사용자에게 메일 보내기 본문

SBM

AppScript를 이용하여 임의의 사용자에게 메일 보내기

미스터림 2012. 6. 7. 22:52

스크립트를 이용하여 SBM사용자가 아닌 임의의 사용자로 메일 보내기 예제

Dim tableId, myRecord, myLong
REM Create a Notifications Message record
tableId = Ext.TableId("TS_NOTIFICATIONMESSAGES")
Set myRecord = Ext.CreateAppRecord (tableId)
myRecord.SetFieldValue( "address", "toaddress@gmail.com" )
myRecord.SetFieldValue( "subject", "Test Message Subject Goes Here" )
myRecord.SetFieldValue( "content", "The body of the message goes here." )
myLong = myRecord.Add()
If myLong = 0 Then
    Call Ext.LogErrorMsg("Error adding message to notifications table.")
End If





Comments