Skip to Main Content

Oracle Database Express Edition (XE)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Email sending wrong information

bigmac704Oct 18 2021 — edited Oct 18 2021

Hello
I am trying to send out an email that includes specific information for each individual user that is to be emailed. Problem I am having is that it sends out the emails to each person listed but keeps all the all the specific detail that is in the first record in the data list for all the emails that go out. Each person that is emailed should have their on specific detailed information listed.
Thank in advanced.
declare
l_body clob := q'{
Hello %user,
This notification, is to let you know that you have been assinged Gate Duty for %sport by your Athletic Director.
Game Date: %date
Game Time: %time
Location/School: %loc
You will receive reminders as this date gets closer.
Thank You!
***Please DO NOT REPLY to this Message***
}';
begin
for c1 in (
SELECT A.* FROM (
SELECT distinct NAME, GAME_DATE, LOCATION, EMAIL, TIME, SPORT
,(GAME_DATE - TRUNC(SYSDATE)) chk
FROM ATHLETICS_GATE_DUTY
) A
WHERE round(A.CHK,0) in (0,1)
)
loop
if c1.EMAIL is not null then
l_body := replace(l_body, '%user', c1.NAME);
l_body := replace(l_body, '%date', c1.GAME_DATE);
l_body := replace(l_body, '%time', c1.TIME);
l_body := replace(l_body, '%loc', c1.LOCATION);
l_body := replace(l_body, '%sport', c1.SPORT);

htmldb_mail.send(
p_to => c1.EMAIL,
p_from => 'ApexApps@rock.k12.nc.us',
p_body => l_body,
p_subj => 'Gate Duty Reminder');
end if;
end loop;
end;

Comments

Unfortunately Java ME SDK 3.2 is not publicaly available now. Could you please help me to understend why are you asking for such an old version so I might be able to suggest you an alternative solution? What a use case do you have?

gdillen

Hi,

Sorry for the late answer.

Java ME SDK 3.2 is needed to build Eclipse PAHO MQTT library (org.eclipse.paho.mqtt.java.git - MQTT Client Package - Java Language).

From the README file:

Paho Java ME client for MQTT

The Java ME client requires the Oracle J2ME SDK 3.2 (which is only available for windows) and assumes it will be installed in c:/Java_ME_platform_SDK_3.2/

The client jar is built using ant and the build.xml file in org.eclipse.paho.jmeclient.mqttv3/

Sergey.N-Oracle

Hi!

J2ME SDK3.4 is good choice to substitute SDK3.2 without any source and binaries update

/Sergey

gdillen

Hi,

I asked the guys from Eclipse PAHO: Java ME SDK 3.2 is a requirement!

thanks.

Guy

Sergey.N-Oracle

Didn't try to build but reference to SDK3.2 and its library is placed at root/org.eclipse.paho.jmeclient/org.eclipse.paho.jmeclient.mqttv3/build.xml

<path id="lib.path.ref">
<fileset dir="c:/Java_ME_platform_SDK_3.2/lib">
<include name="**/cldc_1.1.jar" />
<include name="**/jsr75_1.0.jar" />
<include name="**/jsr120_1.1.jar" />
<include name="**/jsr172_1.0.jar" />
<include name="**/jsr177_1.0.jar" />
<include name="**/jsr179_1.0.jar" />
<include name="**/jsr280_1.0.jar" />
<include name="**/impng_1.0.jar" />
</fileset>
</path>

Please substitute SDK_3.2 with SDK_3.4

gdillen

Thanks.

I know and I already changed and tried (a while ago) by changing v3.2 in v3.4 in the build.xml; but that doesn't work unfortunately.

Thanks.

Guy

Sergey.N-Oracle

Hi!

May I ask to show error log?

/Sergey

1 - 7

Post Details

Added on Oct 18 2021
3 comments
109 views