Skip to Main Content

APEX

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!

why did I make APEX_MAIL.SEND the default sender name by Apex Oracle

NO NameOct 25 2023

I want to ask, I made a procedure like this but why is the sender's name instead 'dbtools-apexext-noreply@ociapp-notifications.oracle.com

The sender's name should be cobapassword@gmail.com

and also want to ask how to prevent the link l_reset_link from being full like this, how to do it so that it is short and safe

DECLARE
l_reset_link VARCHAR2(2000);
BEGIN
l_reset_link := 'https://apex.oracle.com/pls/apex/r/belajar/coba-kirim-email/new-password?session=' || :APP_SESSION;

-- Send the email using APEX_MAIL.SEND
APEX_MAIL.SEND(
p_from => 'cobapassword@gmail.com',
p_to => :P3_EMAIL,
p_subj => 'New Password',
p_body => 'Please change your password using this link.',
p_body_html => 'Please change your password using this link. <a href="' || l_reset_link || '">Click Here</a>'
);

-- Push the email to the queue
apex_mail.push_queue;
END;

Comments
Post Details
Added on Oct 25 2023
9 comments
1,143 views