Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lewis Knight 6 posts 86 karma points
    Jul 22, 2016 @ 17:45
    Lewis Knight
    0

    User email not being sent with [#to#]

    Hi All,

    I've got no experience with c# so i'm using Umbraco Forms and PerplexMail out-of-the-box so apologies for any novice mistakes here...

    I'm using PerplexMail in a workflow to send a 'Thanks for contacting us, we'll be in touch soon' kind of email using the email the user put on the form.

    From what I've gathered on the Email node on the root-directory you need to add [#to#] to the 'To:' input field on the default settings tab - aswell as populating the 'From:' fields.

    However when i submit my form, the admin email is correctly sent by Umbraco Forms telling me the form has been submitted but the workflow doesn't complete. I get the following error:

    Form workflow 'Send user email' failed on 'Submitted' of Record with Unique ID 'd569ae87-585c-42ad-bde8-262f75beb870' from the Form named 'Booking Enquiry' with Unique ID '05aa1108-35e6-4379-8910-24f96459dd48'
    System.Exception: Could not determine the primary recipient for the email. Please specify a 'to', 'cc' or 'bcc' recipient.
       at PerplexMail.Email.SendEmail()
       at PerplexMail.UmbracoForms.EmailWorkflow.Execute(Record record, RecordEventArgs e)
    

    If i remove the [#to#] i still get the error. Putting in a specific personal email address sends it perfectly.

    This might not be a bug, in fact it's probably just my incompetance, but any help would be appreciated. This is the only place where people were asking for help etc.

    Thanks,

    Lew.

    Email node default settings Form Workflow 'Send user email' perplex settings

  • Daniël Knippers 153 posts 1116 karma points MVP 2x c-trib
    Aug 26, 2016 @ 07:03
    Daniël Knippers
    0

    Hi Lewis,

    My apologies for the extremely delayed response.

    The tag that you specify in the To-field of the e-mail should correspond to the label of the e-mail field in your form. Since you have named that field "Email", could you test to replace [#to#] with [#Email#]?

    Kind regards, Daniël Knippers

  • [email protected] 406 posts 2135 karma points MVP 7x c-trib
    Aug 26, 2016 @ 07:06
    jeffrey@umarketingsuite.com
    0

    Hi Lewis,

    thanks for using our packages. I was on a long holiday and only got back to work this week.

    Hope I can still help you, or you found a solution yourself.

    You can specify [#to#] if you want, but you have to be sure that [#to#] will be filled by a field in your Umbraco Form that has this alias ('to'). This is probably not the case, because you will probably name your field 'Your e-mail' or something like that and the alias would be 'yourEMail'. In that case you should specify [#yourEMail#] in the to-field.

    Best way of debugging this is:

    1) Specify your own e-mailaddress in the to-field instead of a dynamic field like [#to#].

    2) If that works, find out the alias of the field you would like to send the e-mail to and specify that.

    Hope you will manage to get this working,

    Jeffrey

Please Sign in or register to post replies

Write your reply to:

Draft