Sending email notifications to multiple IDs from lookup?
Is it possible to send email notifications to multiple ids by putting them in the decode column of a lookup separated by semicolon or nay other identifier?
OR is there any other way of sending email notfications to mutiple ids (not through Java mail) ?
Thanks,
Abhi
Try this to fetch the emails ids from the Lookup.
Suppose you have got a string say x from Lookup using "Lookup Definition.Lookup Code Information.Decode"
String x = "[email protected];[email protected];[email protected]";
StringTokenizer AA = new StringTokenizer(x.trim(), ";");
while(AA.hasMoreTokens())
int i = 0;
while(i <= AA.countTokens())
String B= AA.nextToken();
AAList.add(B);
i++;
Now you have the list just make a for loop
sendMail.setSubject("SUBJECT");
sendMail.setBody("BODY";
sendMail.setFromAddress(from);
for (int i=0;i<emailList.size();i++){
String email = AAList.get(i).toString();
sendMail.sendEmail(email);
If you need any help, let me know. I think we have written the whole code here. :-)
Similar Messages
-
Hi MSDN Forum,
I have created an Access Web App that I am hoping to add some functionality to. I am looking to provide email notification to different users from my organization (a field within the Access Table) when the current date approaches the renewal date (another
field within the Access Table). I would also like to display all renewal dates on a SharePoint Calendar for users to see. Any advice on how to do this would be much appreciated.
Thanks!I'm not familiar with how Access Web Apps work. However, on the SharePoint side of things, it looks like a workflow will be your best bet. Are you using Visual Studio? I've created a few tutorials on sending email notifications in Visual Studio 2012. https://youtu.be/JFdiQEyDkEk
-
Not able to send email notification to adhoc role created
Hi All,
Have a requirement to send email notification to multiple emails from workflow. As per the given requirements have derived the emails and concatenated with comma (,) and passed to the API createadhocrole to create.
lRoleEmail has value as [email protected],[email protected]
wf_directory.CreateAdHocRole(role_name => lRoleName,
role_display_name => lDisplayName,
language => 'AMERICAN',
territory => 'AMERICA',
role_description => NULL,
notification_preference => 'MAILHTML',
role_users => NULL,
email_address => lRoleEmail);
A new role is getting created but there is no email sent.
Created a new attribute of role type and in the notification function have assigned the same as the performer.
The NOTIFICATION_PREFERENCE in WF_ROLES table is DISABLED for the new role.
If anyone came across same issue please let me know to to achieve this.
Thanks in advance.
MJYou need to provide the correct email address but not the dummy address like '[email protected],[email protected]'. One more thing you can give only email address per one user or role. You cannot assign multiple addresses, if you do also it treats the entire string as one email address only.
After changing the email address, modify the notification preference to MAIL* and then send a notification. -
Human Workflow is not sending Email notifications to AD users
Hi,
I'm trying to send email notification to the assigness from workflow. If I use the weblogic users with email attributes, Its sending mails. But once I switch to AD and use the AD users it's not. I have made the AD provider to be the first in the list and also able to login to the worklist app using the same user. Problem is that it's not sending mails.
Can anyone please help soon.
Regards,
ThejasCan you explain what are AD users and how they are created(APIs)?
Please check that the user exists in wf_local_roles table.
select name,notification_preference, email_address from wf_local_roles where name = <AD Username>
In order to send email notification, the user/role should have the proper email addresses and notification preference set to MAIL* i.e MAILHTMl, MAILHTM2, MAILATTH, MAILTEXT..etc -
iCal keeps sending email notifications of all agenda items from the last 2 years (then I bought my laptop). After laptop start up this action is repeated every hour. How can I stop these >300 emails coming in every hour?
Hi,
We have rolled out a fix for this issue.
Please log off and log back in to your machine and the issue should be resolved automatically. In case that does not work, please manually run the msi installer posted here (may require reboot).
For details, please refer to the KB article here: Multiple RunOnce keys created 11.0.10 and 10.1.13 Acrobat | Reader
Please let us know if you still face any issues.
Thanks,
Ashu Mittal -
How can i send email notification from UCM?
Hi
I am new to this technology. I need to send email notification to the user's, whenever file is checked-in. What is the procedure to send an email notification let us take GMAIL from UCM.
1) Now I have installed UCM in my machine. Do I need to install any other software to implement this feature(sending email)?
2) I read it in a document, that configuration is needed in a config file in order to send email. What details do i need to give in these fields,
HttpServerAddress= ?
MailServer= ?
SysAdminAddress=?
SmtpPort=25
HttpRelativeWebRoot=/idc/
CgiFileName=idcplg
UseSSL=No
WebProxyAdminServer=true
3) Do I need to install any mail server? If so which software can i go with?? Is it possible to send email to gmail or yahoo acccount without installing mail server ???
Regards
RajYou will need to have an SMTP server of some sort that you can use. I think out of the box, you may only be able to use an SMTP server that allows anonymous sending or sending unauthenticated (e.g. an internal server). Any good SMTP server (that is not an internal server) would not allow this for security reasons.
Thus, I think if you want to use an external SMTP server such as Gmail, you will need to write custom Java code. See this thread for more information: UCM SMTP server Configuration
Jonathan
http://jonathanhult.com -
Sending email Notifications from BPM 11.1.1.5+FP
Hi all,
We're trying to send an email notifications from our process but we need to send HTML mails, not just plain text...
Any help would be appreciated.
Thanks in advance1. Configure the UMS Email Driver in Enterprise manager
2. onfigure the SOA Suite Workflow Notification properties
3. Restart the soa server
4. On the BPM Process, drag the mail notification from the notification category.
5. update the mail notification properties such as to address, title, and content etc.
For the configuration, please refer the following url
http://technology.amis.nl/blog/6019/configure-soa-suite-11g-for-sending-email-notifications-with-google-mail -
How to stop ical from sending email notifications for updates on my share ical calendar
Is it possible stop ical from sending email notifications for updates I make on my share ical calendar?
Mac OSX 10.7.2
Very annoying for the person I am sharing my calendar with to get an email every time I change something.
I hope there is a way to stop the emails, but for the updates to still go on their calendar.
ThanksGreat idea Lofty! thanks. If the person you are sharing a calendar with is a Yahoo Mail user, you only need to set up one filter (under Options - Mail Options - Filters) and route to Spam folder or a special folder for that purpose.
Add a filter with the following parameters:
Sender contains: "Your First and Last Name" as it appears in the emails they are receiving
Subject contains: "Your First Name"
Email body contains: "iCloud"
Don't need to match case on anything.
So far, only these unwanted emails are being routed to the folder I chose.
Hope that helps until Apple gets it's act together -
Send email notification from outside of OIM
Hi,
I have a code which i am running out of OIM. The code does the following things:
1. Updates user's end date of the basis of end date given as input.
2. Send email notification once user's end date is updated.
I am able execute point 1 successfully-getting user's key, manager key, updating user's end date in usr table But I am facing issues while sending mail notification to user's manager. If anybody have worked on this type of scenario, then please let me know.
Thanks,
Kalpana.Sending Text file as an attachment to email.
-
Schedule webi report to destination to Inbox AND send email notification
I'm writing a new process that will schedule a webi report. The output of the report needs to be delivered to multiple user's BO Inboxes AND an email notification (without the report attached) needs to be sent telling them that they have a new report to view in their Inbox. Trying to mimic how this is done via CMC Schedule - Notification and Destination tabs.
I can get it to deliver the report to the Inbox and I can get it to send an email seperately, but the problem I'm running into is that I can't get it to do both in the same process. Here is the code snippet that I've written. Any assistance would be appreciated.
// Retrieve the managed plugin
IInfoObjects managedInfoObjects = infoStore.query("Select SI_DEST_SCHEDULEOPTIONS, SI_PROGID From CI_SYSTEMOBJECTS Where SI_NAME = 'CrystalEnterprise.Managed'");
IInfoObject infoObject = (IInfoObject)managedInfoObjects.get(0);
IDestinationPlugin destinationPlugin = (IDestinationPlugin)infoObject;
IManaged managed = (IManaged)destinationPlugin;
// Set the destination to inbox
IManagedOptions managedOptions = (IManagedOptions)managed.getScheduleOptions();
managedOptions.setDestinationOption(IManagedOptions.CeDestinationOption.ceInbox);
managedOptions.setSendOption(IManagedOptions.CeManagedSendOption.ceCopy);
managedOptions.setIncludeInstance(true);
managedOptions.getDestinations().add(new Integer(ditUserID1));
managedOptions.getDestinations().add(new Integer(ditUserID2));
managedOptions.getDestinations().add(new Integer(ditUserID3));
scheduleInfo.getDestination().setFromPlugin(managed);
// Retrieve the smtp plugin. to send email notification
IInfoObjects smtpInfoObjects = infoStore.query("Select SI_DEST_SCHEDULEOPTIONS, SI_PROGID From CI_SYSTEMOBJECTS Where SI_PARENTID = 29 AND SI_NAME = 'CrystalEnterprise.Smtp'");
IInfoObject smtpInfoObject = (IInfoObject)smtpInfoObjects.get(0);
IDestinationPlugin smtpDestinationPlugin = (IDestinationPlugin)smtpInfoObject;
// Set to email notification on success
ISMTP smtp = (ISMTP)smtpDestinationPlugin;
ISMTPOptions smtpOptions = (ISMTPOptions)smtp.getScheduleOptions();
smtpOptions.setServerName("mailhost.XXXXX.net");
smtpOptions.setPort(25);
smtpOptions.setDomainName("XXXXX.com");
smtpOptions.setSenderAddress("XXXXX.com");
smtpOptions.setSubject("Indicative Data Update Reports");
smtpOptions.getToAddresses().add("XXXXX.com");
smtpOptions.setMessage("Test Message");
smtpOptions.setSMTPAuthenticationType(CeSMTPAuthentication.NONE);
scheduleInfo.getNotifications().getDestinationsOnFailure().add("New");
scheduleInfo.getDestination().setFromPlugin(smtp);
Edited by: Shannon Maret on Apr 21, 2009 7:02 PMOne thing to keep in mind is that "scheduling to SMTP" is different from "scheduling with email notification", and it looks like you're conflating the two. The ISchedulingInfo.getDestinations() is the access point for scheduling to SMTP and ISchedulingINfo.getNotifications() is the access point for scheduling with Notification.
> scheduleInfo.getNotifications().getDestinationsOnFailure().add("New");
You'd add the SI_PROGID of the SMTP Destination here, and work with the returned IDestination to set the destination parameters.
Sincerely,
Ted Ueda -
Urgent: Regarding Sending Email Notifications
Hi all,
We have scenario in which we have to search those users who has not accessed their accounts from last 2 years and then send them an email notification and after one month of notificatio we have to search those users who have been notified but yet not accessed their account and delete those accounts from LDAP.
For this we are using JNDI to search users. Now we are facing two problems:
1. The users email ids are in the form of List. When we refer this list in To address of Email Template then it gives us an exception: Saying that service not responding, No recepient addresses while in case of hard coded values it runs successfully. I think this is due to that it requires a semicolon(;) seperated list to send email notification. Thats why we thought that we have to use some looping to send the notifications to one user at a time. But if there is any other solution, please suggest.
2. For the scenario of the users to be deleted, how will we come to know whether after two years the users have been notified successfully??
This is really urgent. Please suggest any idea regarding the above issues.
Thanks & Regards
Gaurav JainThe way to do it would be to put your human task inside a while loop. This while loop would set a variable to the approver's userid and would continue till all the four approve it. In your human task you need just one approver and that would be the variable which the while loop sets.
If you do it this way, then you can use the OOTB notification tab in the .task and select the 'Assignee' as the email notification receiver and you won't have to worry about getting the email ids as well.
As for the current approach which you have, that is of using the sequential approvers in the human task, I haven't tried it, but just try setting the notification tab in the .task to 'Assignee' and event 'On Assignment'. That should do it as well.
-Bikash -
Email Notification for multiple business partners
Hi,
I can send email to a single partner based on my action. Is it possible to send the emails to multiple partners for a single action.
Thanks in advance.
Regards,
M.RHi;
Email notification to multiple business partners is not provided in standart SAP functions via actions. It is not related with actions and conditions. Below is the code for the related method... I may send the screenshots if you can give me your mail address... Use this method with smartform: CRM_IST_ORDER_CONFIRMATION_01
CLASS : CL_DOC_PROCESSING_CRM_ORDER
METHOD NAME: ....
METHOD DEFINITION:
IS_ARCHIVE_INDEX Importing Type TOA_DARA
IS_ARCHIVE_PARAMETERS Importing Type ARC_PARAMS
IS_CONTROL_PARAMETERS Importing Type SSFCTRLOP
IS_OUTPUT_OPTIONS Importing Type SSFCOMPOP
IO_APPL_OBJECT Importing Type Ref To OBJECT
IP_SMART_FORM Importing Type TDSFNAME
IS_MAIL_APPL_OBJ Importing Type SWOTOBJID
IS_MAIL_RECIPIENT Importing Type SWOTOBJID
IS_MAIL_SENDER Importing Type SWOTOBJID
IO_PARTNER Importing Type Ref To CL_PARTNER_PPF
IP_USER_SETTINGS Importing Type TDBOOL
IP_APPLICATION_LOG Importing Type BALLOGHNDL
ES_DOCUMENT_OUTPUT_INFO Exporting Type SSFCRESPD
ES_JOB_OUTPUT_INFO Exporting Type SSFCRESCL
ES_JOB_OUTPUT_OPTIONS Exporting Type SSFCRESOP
ET_ERROR_TAB Exporting Type TSFERROR
CT_ARCHIVE_INDEX_TAB Changing Type TSFDARA
METHOD z_anahtar_kullanici_yeni.
*This Method is used to print service order.
generally used constants of generic order
INCLUDE: crm_direct.
DATA:
control_parameters TYPE ssfctrlop.
function name
DATA: function_name TYPE rs38l_fnam,
dummy(254) TYPE c,
ls_archive_index TYPE toa_dara,
ls_orderadm_h TYPE crmt_output_orderadm_h_com,
ls_activity_h TYPE crmt_output_activity_h_com,
ls_opport_h TYPE crmt_output_opport_h_com,
ls_orgman_h TYPE crmt_output_orgman_h_com,
lt_partner_h TYPE crmt_output_partner_h_comt,
ls_partner_h TYPE crmt_output_partner_h_comt,
ls_pricingdata_h TYPE crmt_output_pricingdata_h_com,
ls_sales_h TYPE crmt_output_sales_h_com,
ls_shipping_h TYPE crmt_output_shipping_h_com,
lt_payplan_d_h TYPE crmt_output_payplan_d_h_comt,
ls_customer_h TYPE crmt_output_customer_h_com,
ls_cumulat_h TYPE crmt_output_cumulat_h_com,
lt_billing_h TYPE crmt_output_billing_h_comt,
lt_cancel_h TYPE crmt_output_cancel_h_comt,
lt_appointment_h TYPE crmt_output_appointment_h_comt,
lt_billplan_d_h TYPE crmt_output_billplan_d_h_comt,
lt_billplan_h TYPE crmt_output_billplan_h_comt,
lt_status_d_h TYPE crmt_output_status_d_h_comt,
lt_status_h TYPE crmt_output_status_h_comt,
lt_srv_subject_h TYPE crmt_output_srv_subject_h_comt,
lt_srv_reason_h TYPE crmt_output_srv_reason_h_comt,
lt_srv_result_h TYPE crmt_output_srv_result_h_comt,
ls_acs_h TYPE crmt_acs_h_com,
lt_srv_subject_i TYPE crmt_output_srv_subject_h_comt,
lt_srv_refobj_h TYPE crmt_output_srv_refobj_h_comt,
lt_srv_refobj_i TYPE crmt_output_srv_refobj_h_comt,
lt_orderadm_i TYPE crmt_output_orderadm_i_comt,
lt_orgman_i TYPE crmt_output_orgman_i_comt,
lt_pricingdata_i TYPE crmt_output_pricingdata_i_comt,
lt_pricing_i TYPE crmt_output_pricing_i_comt,
lt_product_i TYPE crmt_output_product_i_comt,
lt_sales_i TYPE crmt_output_sales_i_comt,
lt_service_i TYPE crmt_output_service_i_comt,
lt_shipping_i TYPE crmt_output_shipping_i_comt,
lt_schedlin_i TYPE crmt_output_schedlin_i_comt,
lt_customer_i TYPE crmt_output_customer_i_comt,
lt_partner_i TYPE crmt_output_partner_i_comt,
lt_item_cstics_i TYPE crmt_item_cstics_tab,
lt_billing_i TYPE crmt_output_billing_i_comt,
lt_cancel_i TYPE crmt_output_cancel_i_comt,
lt_finprod_i TYPE crmt_output_finprod_i_comt,
lt_ordprp_i TYPE crmt_output_ordprp_i_comt,
lt_appointment_i TYPE crmt_output_appointment_i_comt,
lt_billplan_d_i TYPE crmt_output_billplan_d_i_comt,
lt_billplan_i TYPE crmt_output_billplan_i_comt,
lt_orderadm_i_qt TYPE crmt_output_orderadm_i_qt_comt,
lt_schedlin_i_cf TYPE crmt_output_schedlin_i_cf_comt,
lt_status_i TYPE crmt_output_status_i_comt,
lt_working_set_e_s_bbp TYPE /1cn/working_set_e_s_bbp_t,
lv_language LIKE sy-langu,
lo_order TYPE REF TO cl_doc_crm_order,
lv_object_guid TYPE crmt_object_guid,
lv_status TYPE jstat,
lt_status TYPE TABLE OF jstat,
lv_error_tab_wrk TYPE ssferror,
ls_output_options TYPE ssfcompop,
for assignments - begin
lt_service_i_assi TYPE crmt_output_service_i_***_comt
for assignments - end
fill internal structure for the output options
ls_output_options = is_output_options.
get the function name for this smart form
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = ip_smart_form
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = function_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
IF sy-subrc <> 0.
add an error message to processing protocol
MESSAGE i015(sppf_media) WITH ip_smart_form INTO dummy.
CALL METHOD cl_log_ppf=>add_message
EXPORTING
ip_problemclass = '1'
ip_handle = ip_application_log.
EXIT.
ENDIF.
determine the tables of the application
CALL FUNCTION 'CRM_OUTPUT_SINGLE_READ'
EXPORTING
iv_object = io_appl_object
iv_smart_form = ip_smart_form
ir_partner = io_partner
IMPORTING
es_output_orderadm_h = ls_orderadm_h
es_output_activity_h = ls_activity_h
es_output_opport_h = ls_opport_h
es_output_orgman_h = ls_orgman_h
es_output_pricingdata_h = ls_pricingdata_h
es_output_sales_h = ls_sales_h
es_output_shipping_h = ls_shipping_h
et_output_partner_h = lt_partner_h
et_output_payplan_d_h = lt_payplan_d_h
es_output_customer_h = ls_customer_h
es_output_cumulat_h = ls_cumulat_h
et_output_billing_h = lt_billing_h
et_output_cancel_h = lt_cancel_h
et_output_appointment_h = lt_appointment_h
et_output_billplan_d_h = lt_billplan_d_h
et_output_billplan_h = lt_billplan_h
et_output_status_d_h = lt_status_d_h
et_output_status_h = lt_status_h
et_output_srv_subject_h = lt_srv_subject_h
et_output_srv_reason_h = lt_srv_reason_h
et_output_srv_result_h = lt_srv_result_h
et_output_srv_refobj_h = lt_srv_refobj_h
et_output_srv_refobj_i = lt_srv_refobj_i
et_output_srv_subject_i = lt_srv_subject_i
es_output_acs_h = ls_acs_h
et_output_orderadm_i = lt_orderadm_i
et_output_orgman_i = lt_orgman_i
et_output_pricingdata_i = lt_pricingdata_i
et_output_pricing_i = lt_pricing_i
et_output_product_i = lt_product_i
et_output_sales_i = lt_sales_i
et_output_service_i = lt_service_i
et_output_shipping_i = lt_shipping_i
et_output_schedlin_i = lt_schedlin_i
et_output_partner_i = lt_partner_i
et_item_cstics_i = lt_item_cstics_i
et_output_customer_i = lt_customer_i
et_output_billing_i = lt_billing_i
et_output_cancel_i = lt_cancel_i
et_output_finprod_i = lt_finprod_i
et_output_ordprp_i = lt_ordprp_i
et_output_appointment_i = lt_appointment_i
et_output_billplan_d_i = lt_billplan_d_i
et_output_billplan_i = lt_billplan_i
et_output_orderadm_i_qt = lt_orderadm_i_qt
et_output_schedlin_i_cf = lt_schedlin_i_cf
et_output_status_i = lt_status_i
et_output_wrk_set_e_s_bbp = lt_working_set_e_s_bbp
ev_language = lv_language
for assignments - begin
et_output_service_i_assi = lt_service_i_assi
for assignments - end
set mail title
SELECT SINGLE caption INTO ls_output_options-tdtitle
FROM stxfadmt WHERE
formname = ip_smart_form AND
langu = lv_language.
IF ls_output_options-tdtitle IS INITIAL.
SELECT SINGLE caption INTO ls_output_options-tdtitle
FROM stxfadmt WHERE
formname = ip_smart_form.
ENDIF.
CONCATENATE 'Servis Masası - Yeni bir sorun açıldı:'
ls_orderadm_h-object_id INTO ls_output_options-tdtitle
SEPARATED BY space.
is_mail_appl_obj -
fill this parameter if your application object is a BOR object
the output will be connected with the BOR object via SAP Office
this is done for mail and fax but not for print outputs
------>
is_mail_appl_obj-LOGSYS =
is_mail_appl_obj-OBJTYPE =
is_mail_appl_obj-OBJKEY =
is_mail_appl_obj-DESCRIBE =
------>
language of smart form----
determin here the language of the smart form
control_parameters = is_control_parameters.
control_parameters-langu = lv_language.
fill archive parameters for archive link -
IF is_output_options-tdarmod = '2' OR
is_output_options-tdarmod = '3'.
archive_index_tab
READ TABLE ct_archive_index_tab INTO ls_archive_index INDEX 1.
ls_archive_index-object_id = ls_orderadm_h-guid.
IF ls_archive_index-object_id IS INITIAL.
DELETE ct_archive_index_tab INDEX 1.
ELSE.
MODIFY ct_archive_index_tab FROM ls_archive_index INDEX 1.
ENDIF.
ENDIF.
DATA : zzpartner TYPE crmt_output_partner_h_com .
DATA : zzadres TYPE so_name .
DATA : zobjkey TYPE swotobjid-objkey .
DATA: lv_user TYPE syuname,
lv_mailaddr TYPE so_name,
lv_type_id TYPE so_escape,
lv_partnno TYPE ppfdpartno,
lv_partner_no TYPE bu_partner,
lv_partner TYPE crmt_object_guid,
ls_mail_recipient TYPE swotobjid.
LOOP AT lt_partner_h INTO zzpartner .
CLEAR zzadres.
CHECK zzpartner-ref_partner_fct EQ 'ZSLFN001'.
SELECT SINGLE smtp_addr FROM adr6 INTO zzadres
WHERE addrnumber = zzpartner-addr_nr.
CHECK sy-subrc EQ 0.
lv_mailaddr = zzadres.
lv_type_id = 'U'.
CALL FUNCTION 'CREATE_RECIPIENT_OBJ_PPF'
EXPORTING
ip_mailaddr = lv_mailaddr
ip_type_id = lv_type_id
IMPORTING
ep_recipient_id = ls_mail_recipient
EXCEPTIONS
invalid_recipient = 1
OTHERS = 2.
delete the old recipient object
CALL FUNCTION 'DELETE_RECIPIENT_OBJECT_PPF'
EXPORTING
is_recipient_id = is_mail_recipient.
call function to process smart form
CALL FUNCTION function_name
EXPORTING
archive_index = is_archive_index
archive_index_tab = ct_archive_index_tab
archive_parameters = is_archive_parameters
control_parameters = control_parameters
mail_appl_obj = is_mail_appl_obj
mail_recipient = is_mail_recipient
mail_recipient = ls_mail_recipient
mail_sender = is_mail_sender
output_options = ls_output_options
user_settings = ip_user_settings
orderadm_h = ls_orderadm_h
activity_h = ls_activity_h
opport_h = ls_opport_h
orgman_h = ls_orgman_h
partner_h = lt_partner_h
pricingdata_h = ls_pricingdata_h
sales_h = ls_sales_h
shipping_h = ls_shipping_h
payplan_d_h = lt_payplan_d_h
cumulat_h = ls_cumulat_h
customer_h = ls_customer_h
acs_h = ls_acs_h
billing_h = lt_billing_h
cancel_h = lt_cancel_h
appointment_h = lt_appointment_h
billplan_d_h = lt_billplan_d_h
billplan_h = lt_billplan_h
status_d_h = lt_status_d_h
status_h = lt_status_h
srv_subject_h = lt_srv_subject_h
srv_reason_h = lt_srv_reason_h
srv_result_h = lt_srv_result_h
srv_subject_i = lt_srv_subject_i
srv_refobj_h = lt_srv_refobj_h
srv_refobj_i = lt_srv_refobj_i
orderadm_i = lt_orderadm_i
orderadm_i_qt = lt_orderadm_i_qt
orgman_i = lt_orgman_i
pricingdata_i = lt_pricingdata_i
pricing_i = lt_pricing_i
product_i = lt_product_i
sales_i = lt_sales_i
service_i = lt_service_i
schedlin_i = lt_schedlin_i
schedlin_i_cf = lt_schedlin_i_cf
shipping_i = lt_shipping_i
partner_i = lt_partner_i
item_cstics_i = lt_item_cstics_i
customer_i = lt_customer_i
billing_i = lt_billing_i
cancel_i = lt_cancel_i
finprod_i = lt_finprod_i
ordprp_i = lt_ordprp_i
appointment_i = lt_appointment_i
billplan_d_i = lt_billplan_d_i
billplan_i = lt_billplan_i
status_i = lt_status_i
working_set_e_s_bbp = lt_working_set_e_s_bbp
language = lv_language
for assignments - begin
service_i_assi = lt_service_i_assi
for assignments - end
IMPORTING
document_output_info = es_document_output_info
job_output_info = es_job_output_info
job_output_options = es_job_output_options
EXCEPTIONS
output_canceled = 1
parameter_error = 2
OTHERS = 3.
IF sy-subrc = 0.
determine header guid to set status printed
lo_order ?= io_appl_object.
lv_object_guid = lo_order->get_crm_obj_guid( ).
set status printed into the crm order
CALL FUNCTION 'CRM_STATUS_SET_INTERN'
EXPORTING
iv_objnr = lv_object_guid
iv_status = gc_status-printed
xnoauto = true
EXCEPTIONS
object_not_found = 1
status_inconsistent = 2
status_not_allowed = 3
OTHERS = 4.
ELSE.
CASE sy-subrc.
WHEN 1.
MESSAGE e016(sppf_media) INTO dummy.
WHEN 2.
MESSAGE e017(sppf_media) WITH function_name INTO dummy.
WHEN 3.
MESSAGE e018(sppf_media) WITH function_name INTO dummy.
ENDCASE.
CALL METHOD cl_log_ppf=>add_message
EXPORTING
ip_problemclass = '1'
ip_handle = ip_application_log.
ENDIF.
get error table
CALL FUNCTION 'SSF_READ_ERRORS'
IMPORTING
errortab = et_error_tab.
fill error into crm_order status
LOOP AT et_error_tab INTO lv_error_tab_wrk
WHERE msgty = gc_msgtype-error.
CALL FUNCTION 'CRM_MESSAGE_COLLECT'
EXPORTING
iv_caller_name = gc_object_name-order
iv_msgno = lv_error_tab_wrk-msgno
iv_msgid = lv_error_tab_wrk-msgid
iv_msgty = lv_error_tab_wrk-msgty
iv_msgv1 = lv_error_tab_wrk-msgv1
iv_msgv2 = lv_error_tab_wrk-msgv2
iv_msgv3 = lv_error_tab_wrk-msgv3
iv_msgv4 = lv_error_tab_wrk-msgv4
IV_ERROR_RELEVANCE = FALSE
iv_msglevel = gc_msglevel-administrator
EXCEPTIONS
not_found = 1
appl_log_error = 2
OTHERS = 3.
ENDLOOP.
ENDLOOP .
ENDMETHOD. -
Cannot Send Email Notification Using Stored Procedure.
Hi Friends,
I tried to execute this job scheduler...
begin
dbms_scheduler.create_job(
job_name => 'ILMS_JOB_SCHEDULE'
,job_type => 'PLSQL_BLOCK'
,job_action => 'begin ilms.check_reminder(); end; '
,start_date => SYSTIMESTAMP
,repeat_interval => 'FREQ=DAILY'
,enabled => TRUE
,end_date => NULL
,comments => 'Ilms job schedule for notification.');
end;
However, since the effect is too long I rescheduled the frequency to be every one minute in this set attribute...
BEGIN
DBMS_SCHEDULER.SET_ATTRIBUTE(
name => 'ILMS_JOB_SCHEDULE'
,attribute => 'repeat_interval'
,value => 'FREQ=MINUTELY;INTERVAL=1'
DBMS_SCHEDULER.DISABLE('ILMS_JOB_SCHEDULE');
DBMS_SCHEDULER.ENABLE('ILMS_JOB_SCHEDULE');
END;
Check Reminder is the stored procedure invoked by job scheduler to check values in database columns before sending email notification to the respective recipients' email address and also the format of the email notification to be sent to the recipients...
CREATE OR REPLACE PROCEDURE check_reminder AS
NO number;
CURSOR emp_cur is
select * from pergerakan_ks where TASK_FLAG=7 and TASK_STATUS='InProgress';
emp_rec emp_cur%rowtype;
email_to varchar2(200);
default_email varchar2(200);
mesg varchar2(4000);
no_kes varchar2(100);
subj varchar2(4000);
kpi number;
crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
BEGIN
default_email:='@abc.com.my';
FOR emp_rec in emp_cur
LOOP
if emp_rec.PKS_TKH_TERIMA is null then
dbms_output.put_line('count day ' || round(sysdate - to_date(emp_rec.pks_tkh_hantar)) || crlf || crlf);
if round(sysdate - to_date(emp_rec.pks_tkh_hantar)) >3 then
email_to:=emp_rec.pks_penghantar_id||default_email;
select b.KS_BIL_NO into no_kes from kertas_siasatan b where b.KS_ID = emp_rec.pks_ks_id;
subj:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
mesg:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
dbms_output.put_line('Sending email to ' || email_to || ' subject: ' || subj);
dbms_output.put_line('update old pergerakan pks_id : '||emp_rec.pks_id);
update pergerakan_ks set task_status='Done' where pks_id=emp_rec.pks_id;
dbms_output.put_line('insert new pergerakan ks : ');
insert into pergerakan_ks(pks_id,pks_ks_id,pks_km_id,pks_penghantar_id,pks_tkh_hantar,
pks_penerima_id,pks_tkh_terima,task_name,task_owner,task_status,task_flag,fb_id)
values(pks_id_seq.nextval,emp_rec.pks_ks_id,emp_rec.pks_km_id,
emp_rec.pks_penghantar_id,sysdate,
null,
null,emp_rec.task_name,
emp_rec.pks_penghantar_id,
'InProgress',6,emp_rec.fb_id);
commit;
e_mail_message(email_to,email_to,subj,mesg);
end if;
end if;
if emp_rec.PKS_TKH_TERIMA is not null then
dbms_output.put_line('emp_rec.pks_km_id ' || emp_rec.pks_km_id || crlf);
select c.KM_KPI into kpi from keluar_masuk_ks c where c.KM_ID = emp_rec.pks_km_id;
no := round(sysdate - to_date(emp_rec.pks_tkh_terima))-kpi;
dbms_output.put_line('count day - kpi' || no || crlf);
dbms_output.put_line('kpi ' || kpi || crlf);
if no = 1 then
email_to:=emp_rec.pks_penghantar_id||default_email;
select b.KS_BIL_NO into no_kes from kertas_siasatan b where b.KS_ID = emp_rec.pks_ks_id;
subj:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
mesg:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
dbms_output.put_line('Sending email to ' || email_to || ' subject: ' || subj);
email_to:=emp_rec.task_owner||default_email;
subj:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
mesg:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
dbms_output.put_line('Sending email to ' || email_to || ' subject: ' || subj);
e_mail_message(email_to,email_to,subj,mesg);
e_mail_message(email_to,email_to,subj,mesg);
end if;
if no = 3 then
select b.KS_BIL_NO into no_kes from kertas_siasatan b where b.KS_ID = emp_rec.pks_ks_id;
email_to:=emp_rec.task_owner||default_email;
subj:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
mesg:='Reminder untuk Membuat Tindakan Bagi No Kes '||no_kes;
dbms_output.put_line('Sending email to ' || email_to || ' subject: ' || subj);
e_mail_message(email_to,email_to,subj,mesg);
end if;
end if;
END LOOP;
END;
E_mail_message is the stored procedure invoked by the check_reminder to tell scheduler information of the connection and the email address of the recipients...
CREATE OR REPLACE procedure
e_mail_message
from_name in varchar2,
to_name in varchar2,
subject in varchar2,
message in varchar2
is
l_mailhost VARCHAR2(64);
l_from VARCHAR2(64);
l_to VARCHAR2(64);
crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
l_mail_conn UTL_SMTP.connection;
mesg VARCHAR2( 4000 );
BEGIN
select a.SERVER into l_mailhost from email_setting a where a.SERVER is not null;
select a.USERNAME into l_from from email_setting a where a.SERVER is not null;
--UTL_SMTP.open_data(l_mail_conn);
mesg:= 'Date: ' || TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' ) || crlf ||
'From: <'||l_from||'>' || crlf ||
'Subject: ' ||subject|| crlf ||
'To: '||to_name || crlf || '' || crlf ;
mesg:=mesg||message;
l_mail_conn := UTL_SMTP.open_connection(l_mailhost, 25);
UTL_SMTP.helo(l_mail_conn, l_mailhost);
UTL_SMTP.mail(l_mail_conn, l_from);
UTL_SMTP.rcpt(l_mail_conn, to_name);
UTL_SMTP.data(l_mail_conn, mesg);
UTL_SMTP.quit(l_mail_conn);
END;
I tried to execute to execute the e_mail_message procedure but received this error. Also, no notification sent to the email address...
ORA-29279: SMTP permanent error: 501 5.1.3 Invalid address
ORA-06512: at "SYS.UTL_SMTP", line 21
ORA-06512: at "SYS.UTL_SMTP", line 99
ORA-06512: at "SYS.UTL_SMTP", line 241
ORA-06512: at "ILMS.E_MAIL_MESSAGE", line 33
ORA-06512: at line 13
Please help so that I can receive the email notification into my email...thanks in advance for your time..user13281540 wrote:
ORA-29279: SMTP permanent error: 501 5.1.3 Invalid address
ORA-06512: at "SYS.UTL_SMTP", line 21
ORA-06512: at "SYS.UTL_SMTP", line 99
ORA-06512: at "SYS.UTL_SMTP", line 241
ORA-06512: at "ILMS.E_MAIL_MESSAGE", line 33
ORA-06512: at line 13This is not an Oracle error - this is the mail server saying "+hey, I don't like that e-mail address you are supplying, I'm not accepting it!+".
If you look at RFC821 (Request For Comments memo 821 describes the SMTP specifications), you'll see that the sender and recipient needs to be supplied in the format +<[email protected]>+, e.g. +<[email protected]>+.
I have found that not all SMTP servers are equal in this regard. Some may insist on the brackets around the address, some may not.
You need to confirm the format of the addresses you use in the "+MAIL FROM+" and "+RCPT TO+" commands.. and ensure that these formats are accepted by your SMTP server - and if not, change your code to use an acceptable format.
The easiest way to do this is using telnet - and interacting directly and manually with the server. SMTP is a clear text protocol and easy to use manually. Try it. It is the best way to test SMTP interaction and validate the approach and SMTP commands and arguments used by your code. -
Cannot send email notification to more than one people
Hi everyone,
Hope anyone could help me to solve this. I want to send email notification to two people. First to the staff to alert him that his claim is ready. And also to his supervisor that the claim has been disbursed. Below is the PL/SQL procedure, check_claim being used..
CREATE OR REPLACE PROCEDURE TEST.check_claim AS
NO number;
CURSOR emp_cur is
select * from emp where dept=7 and status='active';
emp_rec emp_cur%rowtype;
email_to varchar2(200);
default_email varchar2(200);
mesg varchar2(4000);
subj varchar2(4000);
crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
BEGIN
default_email:='@phantom.com';
FOR emp_rec in emp_cur
LOOP
if emp_rec.claim_status ='Y' then
email_to:=emp_rec.staff_id||default_email;
subj:='Claim No'||emp_rec.claim_id;
mesg:='Your claim has been disbursed. Please check.';
email_to:=emp_rec.staff_hod||default_email;
subj:='Claim'||emp_rec.claim_id;
mesg:='Claim No'||emp_rec.claim_id||' has been disbursed';
e_mail_message(email_to,email_to,subj,mesg);
e_mail_message(email_to,email_to,subj,mesg);
end if;
END LOOP;
END;
The first email_to is to be sent to staff_id and the second email_to is to be sent to staff_hod.
The PL/SQL procedure then called the e_mail_message procedure shown below for the connection information..
CREATE OR REPLACE procedure
TEST.e_mail_message
from_name in varchar2,
to_name in varchar2,
subject in varchar2,
message in varchar2
is
l_mailhost VARCHAR2(64);
l_from VARCHAR2(64);
l_to VARCHAR2(64);
crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
l_mail_conn UTL_SMTP.connection;
mesg VARCHAR2( 4000 );
BEGIN
select a.SERVER into l_mailhost from email_setting a where a.SERVER is not null;
select a.USERNAME into l_from from email_setting a where a.SERVER is not null;
--UTL_SMTP.open_data(l_mail_conn);
mesg:= 'Date: ' || TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' ) || crlf ||
'From: <'||l_from||'>' || crlf ||
'Subject: ' ||subject|| crlf ||
'To: '||to_name || crlf || '' || crlf ;
mesg:=mesg||message;
l_mail_conn := UTL_SMTP.open_connection(l_mailhost, 25);
UTL_SMTP.helo(l_mail_conn, l_mailhost);
UTL_SMTP.mail(l_mail_conn, l_from);
UTL_SMTP.rcpt(l_mail_conn, to_name);
UTL_SMTP.data(l_mail_conn, mesg);
UTL_SMTP.quit(l_mail_conn);
END;
However, the email notification only being sent to the supervisor / head of department. The staff concerned does not receive any email notification. Please help. Thank you for your time...from wht i see
email_to:=emp_rec.staff_id||default_email;
subj:='Claim No'||emp_rec.claim_id;
mesg:='Your claim has been disbursed. Please check.';
email_to:=emp_rec.staff_hod||default_email; -- wrongit should be
email_to:=emp_rec.staff_id||default_email;
subj:='Claim No'||emp_rec.claim_id;
mesg:='Your claim has been disbursed. Please check.';
email_to:= email_to || ' , ' || emp_rec.staff_hod||default_email; -
ICal keeps sending email notifications of past agenda items
iCal keeps sending email notifications of all agenda items from the last 2 years (then I bought my laptop). After laptop start up this action is repeated every hour. How can I stop these >300 emails coming in every hour? Am not using iCloud & not sharing my calendar with others. Thanks for any help!
iCal keeps sending email notifications of all agenda items from the last 2 years (then I bought my laptop). After laptop start up this action is repeated every hour. How can I stop these >300 emails coming in every hour? Am not using iCloud & not sharing my calendar with others. Thanks for any help!
Maybe you are looking for
-
How to stop email notifications
I share reminders with my wife and every time she changes something in her shared calendar, I get an email notification. How do I stop them?
-
Hi, After I try to load either an existing or new project in Adobe Premier Elements 9 I just get a blank grey screen with none of the timeline, etc. boxes on view. This has suddenly happened, one day OK next not! At the top of the screen I get the no
-
IPhone 4 apps won't open?
When I click on the app, it looks like it's going to open but then quickly goes back to the screen. I've tried turning off my phone, restarting it, and resyncing the apps on iTunes (where you check and uncheck the apps). Because I downloaded most of
-
Hello gurus I am implementing CRM with integration with ERP, I would like to know if I have more than one type of sales documents in CRM and I want to replicate them to ECC do I have to have the same number of the sales document types in ECC or only
-
Stoopid question: how can I see all the messages in a thread?
I know most lists have a "show all messages in thread" option, but I can't seem to find one here. One of the topics I waned to read about has a hundred or so messages in the thread, but I can only see about 6.