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)
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}
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.
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:
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
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
Looking into it now, thanks for reporting :)
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
Fixed in latest build http://nightly.umbraco.org/Umbraco%20Contour/4.0/
Flawless, thanks for the quick response!
Works perfectly.
is working on a reply...