Hi,
I have an agent for sending emails by the date, and I can only get the body of the first email to send. The agent will send out all 5 emails with the correct subject but only the first email has text in the body where I have entered text into the field. The text for the other messages does not show up in the body when the messages are sent out.
How can I get the agent to send all 5 emails correctly?
Below is the code used in my agent.
@If(send_dt_1=@Today;@MailSend(receiver_1;copy_1;“”;subject_1;“”;email_body_1;“”);“”);@If(send_dt_2=@Today;@MailSend(receiver_2;copy_2;“”;subject_2;“”;email_body_2;“”);“”);@If(send_dt_3=@Today;@MailSend(receiver_3;copy_3;“”;subject_3;“”;email_body_3;“”);“”);@If(send_dt_4=@Today;@MailSend(receiver_4;copy_4;“”;subject_4;“”;email_body_4;“”);“”);@If(send_dt_5=@Today;@MailSend(receiver_5;copy_5;“”;subject_5;“”;email_body_5;“”);“”);
SELECT @All
Thanks,
Eric