MailSend Question

I have a mailsend formula set up. The first part of it seems to work fine. I have the second portion where I make this statement:IMDS_Submission = “Yes”;“sfizer”;“”);

It does not send the email to the person in thisportion. Do I need to set up another @If statement? Any ideas are more appreciated.

@Command([FileSave]);

@Command([FileCloseWindow]);

SendToAddress := @If(

Responsible_Facility = “Akron Facility”;“jantalvari”;Responsible_Facility = “Bellevue”;“biannell”;Responsible_Facility = “Nashville”;“jpolacek”;

Responsible_Facility = “Specialty”;“PHaberny”;Responsible_Facility = “St. Thomas”;“sgiles”;Responsible_Facility = “TPSI”;“GLaFleur”;

IMDS_Submission = “Yes”;“sfizer”;“”);

@If(@MailSend(SendToAddress;“”;“”;“New PPAP Request”;“”;"A new PPAP request has been entered into the database. It requires your attention. Click on this link to view → ";[IncludeDoclink]))

Subject: MailSend Question

If I understand the problem/question correctly, what is happening is that Responsible_Facility has some value which is being correctly trapped by your IF statement. The IF statement then stops, thus it never sees the IMDS_Submission portion.

You can set up two IF statements, one filling in SendTo1 variable, and the second filling in SendTo2 variable. Then you can send to both, assuming they have valid values.

regards,

raphael

Subject: RE: MailSend Question

Raphael,I’m somewhat new to Notes. Is this what you had in mind?

@Command([FileSave]);

@Command([FileCloseWindow]);

SendToAddress1 := @If(

Responsible_Facility = “Akron Facility”;“jantalvari”;Responsible_Facility = “Bellevue”;“biannell”;Responsible_Facility = “Nashville”;“jpolacek”;

Responsible_Facility = “Specialty”;“PHaberny”;Responsible_Facility = “St. Thomas”;“sgiles”;Responsible_Facility = “TPSI”;“GLaFleur”;

@If(@MailSend(SendToAddress1;“”;“”;“New PPAP Request”;“”;"A new PPAP request has been entered into the database. It requires your attention. Click on this link to view → ";[IncludeDoclink]))

SendToAddress2 := @If(

IMDS_Submission = “Yes”;“sfizer”;“”);

@If(@MailSend(SendToAddress2;“”;“”;“New IMDS Request”;“”;"A new IDMS request has been entered into the database. It requires your attention. Click on this link to view → ";[IncludeDoclink]))

Subject: RE: MailSend Question

hi

 i think u have to ues @postedcommand([filesave])

@postedcommand([closewindow])

and this commnd is at end of your code

and for sending doclink there should be a defalut view in your data base try this i maight solve your problem