6 Replies Latest reply on Apr 10, 2018 5:40 AM by 3563593

    How to configure apex with gmail for sending mail

    3563593

      Hi all,

      I have a scenario where i have to send the mail from apex.I ran two procedures but am not able to send the mail.Is there any pre-requsites has to be made to send like configuring the smtp details and so on.

      I ran the following codes:

      1)

      begin

      APEX_MAIL.PUSH_QUEUE('smtp.gmail.com',465);

      end;

       

      2)

      begin

       

       

      wwv_flow_api.set_security_group_id;

       

       

      apex_mail.send( 

      p_to => 'nobody@gmail.com', -- change email address

      p_from => 'nobody@gmail.com', -- change to your email address

      p_body => 'Main email text goes here', 

      p_subj => 'APEX_MAIL Package - Plain Text message'

      ); 

       

       

      end;

       

      Please, help me to solve the issue.