Forum Discussion

KarenHenke's avatar
KarenHenke
Qrew Cadet
11 years ago

How do I create a button to initiate an email from Outlook?

I would like to create a button to add to a form that would initiate a standard email from Outlook to another QB user. The email should send a copy of, or a link to, the record being displayed in the form when the button is clicked. Is this possible?

23 Replies

  • MM's avatar
    MM
    Qrew Member
    fantastic. i started copying and pasting like a crazy man and randomly discovered that if i only put the ? before the "cc" and then used "&" for each line of stuff it worked.

    thanks so much for your help on this one. i didn't know what the ? meant, but now i do and it makes much more sense.
  • Its actually similar to quickbase urls, they define a path and then they always have a  ? and the rest is parameters telling it what ti do.
  • MM's avatar
    MM
    Qrew Member
    how do i make QB return to the record after initiating the MailTo fuction?
    when i'm editing the record i click the button and i'm advised to save my record first. Outlook opens correctly, but my QB form goes to a blank page.
  • not tested, but try this.

    var text URLONE = "MailTo:user1@domain.com"
    &"?cc=user2@domain.com; user3@domain.com; user4@domain.com"
    &"&subject=Subject - "&[field name] &" - Site #: "&URLEncode([Site #])&" - Site Name: "&URLEncode([Site Name])
    &"&body=user1,"&"%0A%0A"&
    "Please send package for this site to:"&"%0A%0A"
    &[Address];

    var text URLTWO =
    urlroot() & "db/" & dbid() & "?a=dr&rid=" & totext([record id#]);

    $URLONE & "&rdr=" & URLEncode($URLTWO)
  • Is it possible to embed a table of child records when creating an email like this?