Okay
  Public Ticket #1322264
Email link - Compile email with data from row
Closed

Comments

  •  2
    Freestocksteel started the conversation

    Hi

    I understand that WP Datatables can add an email link to text in a column. 

    What we need to know is if it is possible for WP Datatables to do the following.

    See screenshot attached.

    If our customer click on "Enquire now" (This will be an email link) will WP Datatables be able to add a subject line(New online enquiry) and description (Eg Item no #3063) in the clients email program?

    This will give us the advantage to know what the enquiry is about.

    It this is not a standard feature of WP Datatables but you are of the opinion that a programmer can get this done for us the please let me know.

    Much appreciated.

    Stephan


  • [deleted] replied

    Hi Stephan,

    You can actually do this by entering following code snippet in string type column:

    <a href="mailto:?subject=New online enquiry&body=Item no #3063">Enquire now</a>

    This will add "New online enquiry" as email subject and "Item no #3063" as email body. 

    You can make this dynamic by gathering this informations from other cells in same row, but this requires writing additional code and could not be done with built in tools.