Copied to clipboard

Flag this post as spam?

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


  • Søren Lysdal 13 posts 75 karma points
    Dec 02, 2014 @ 12:56
    Søren Lysdal
    0

    Send mail workflow not parsing page properties

    Hi,

    Having trouble sending a mail to an email stored in a page property.

    I've put [#emailAddress] in the receipent field and the mail never gets through.

    Later tried to put it in a title of another mail (sent to the client, this one works)
    When looking at the mail it simply shows up as '[#emailAddress]'

     

    Umbraco 7.2.0-beta2

    Umbrco Forms 4.0WIP.4.0.0-Build.79 (Latest as of now)

    Stacktrace pulled from log:

    2014-12-02 12:33:29,230 [20] ERROR Umbraco.Forms.Data.LogHelper - [Thread 19] Forms: workflow 'Send email employee when submitted' failed on Submitted
    System.FormatException: The specified string is not in the form required for an e-mail address.
       at System.Net.Mail.MailAddressParser.ReadCfwsAndThrowIfIncomplete(String data, Int32 index)
       at System.Net.Mail.MailAddressParser.ParseAddress(String data, Boolean expectMultipleAddresses, Int32& index)
       at System.Net.Mail.MailAddressParser.ParseMultipleAddresses(String data)
       at System.Net.Mail.MailAddressCollection.ParseValue(String addresses)
       at Umbraco.Forms.Core.Providers.WorkflowTypes.SendEmail.Execute(Record record, RecordEventArgs e) in f:\TeamCity\buildAgent\work\133677a4e37ceece\Umbraco.Forms.Core.Providers\WorkflowTypes\SendEmail.cs:line 66
       at Umbraco.Forms.Core.Services.WorkflowService.ExecuteWorkflows(List`1 workflows, RecordEventArgs e)
  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Dec 02, 2014 @ 13:02
    Dennis Aaen
    0

    Hi Søren and welcome to our.

    If I understand your question correctly you want to sent the email to the value that is in the e.g email field on your form and try to add the field in the workflow in Contour.

    If this is the case try to change [#emailAddress] to {emailaddress}

    Hope this helps,

    /Dennis

  • Søren Lysdal 13 posts 75 karma points
    Dec 02, 2014 @ 13:04
    Søren Lysdal
    0

    Hi Dennis,

    Thanks for taking the time to answer.

    I'm sending two mails, one to the client(the form poster), this one uses {email} from the form and works fine, email is sent and all.
    The second mail is to the employee being contacted, this address is stored in a property with the alias emailAddress.

    Its the second I'm having issues with.

    Putting '[#emailAddress]' in the subject field of the working mail simply ends up as '[#emailAddress]' in the generated mail.

    - Søren

  • Comment author was deleted

    Dec 02, 2014 @ 13:11

    Looking into it now, thanks for reporting :)

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Dec 02, 2014 @ 13:14
    Dennis Aaen
    0

    Hi Søren,

    Perhaps this blogpost from Tim can help you to how to get the address from a property with the alias emailAddress. http://www.nibble.be/?cat=29

    Hope this helps,

    /Dennis

  • Comment author was deleted

    Dec 02, 2014 @ 13:26
  • Søren Lysdal 13 posts 75 karma points
    Dec 02, 2014 @ 13:35
    Søren Lysdal
    0

    Flawless, thanks for the quick response!

    Works perfectly.

Please Sign in or register to post replies

Write your reply to:

Draft