0

Email question...

I have set up a "Request" document that I want to be able to send to other members of my team. I have set up a choice field with each members name. How would I set up a button script to send the document to the team member selected with the PDF document. 

so, Choice field with team members, in a Table called "Request"

Thanks 

Michael

3 replies

null
    • Central Park Furnishings
    • Michael_McKenna
    • 3 yrs ago
    • Reported - view

    Any takers for this question. : )

    • Ninox partner
    • RoSoft_Steven.1
    • 3 yrs ago
    • Reported - view

    Michael,

    If you put the email adresses in your choice field instead of the names, you could use this code:

    let sender := userEmail();
    let receiver := text(ChoiceFieldContainingTheMembersEmail);
    let subj := "Request Email";
    let body := "Dear, whatever....";
    let att := file(this, "RequestDocument.pdf");
    sendEmail({
    from: sender,
    to: receiver,
    subject: subj,
    text: body,
    attachments: att
    });
    alert("Email Sent")

     

    Steven

    • Central Park Furnishings
    • Michael_McKenna
    • 3 yrs ago
    • Reported - view

    Thanks Steven. 

Content aside

  • 3 yrs agoLast active
  • 3Replies
  • 305Views