Skip to main content
Solved

COMMAND_SYS.Mail syntax

  • November 6, 2023
  • 2 replies
  • 648 views

Forum|alt.badge.img+9

Hello All , 

I try to add a list of email to the to_list , here is my script : 

 

dest_mail_ :=  'a@gmail.com' , 'b@gmail.com' , 'b@gmail.com' ; 

COMMAND_SYS.Mail(sender_      => 'IFS Applications!',
                 from_        => '&USER_EMAIL',
                 to_list_     =>dest_mail_ ,
                 cc_list_     => '',
                 bcc_list_    => '',
                 subject_     => 'text',
                 text_        => 'Text',

                  attach_      => '',
                  rowkey_      => '',
                  mail_sender_ => 'MAIL_SENDER1');

 

It seems that my syntax in dest_mail_ variable is wrong , I’ve tried the semi colon , the parentheses 

Would appreciate your help .

 

Thank you,

Hanane

Best answer by Tomas Ruderfelt

Try this instead:

dest_mail_ :=  'a@gmail.com,b@gmail.com,b@gmail.com';

 

2 replies

Forum|alt.badge.img+21
  • Superhero (Employee)
  • 500 replies
  • Answer
  • November 6, 2023

Try this instead:

dest_mail_ :=  'a@gmail.com,b@gmail.com,b@gmail.com';

 


Forum|alt.badge.img+9
  • Author
  • Sidekick
  • 42 replies
  • November 6, 2023

Hello Tomas ,

 

It works , thank you !

 

Kind Regards,

Hanane