2 Replies Latest reply on Nov 12, 2012 7:17 PM by Sham HC

    Send Email - ${payload.email}

    ravindrareddydr Level 1

      Hi all,

      In my workflow i am using "Send Email " step to send emails using custom
      templates.

      I done following steps in my execution

      1 .  Added properties to email , userId, password and fullname with values
      to "/content/geometrixx/en/jcr:content"

      https://lh6.googleusercontent.com/-kXybosRoO_0/UJpL22Xw-QI/AAAAAAAAAVg/aH8QcNEo32E/s1600/Payload.png

      2 .  Created "test workflow"  with "Send Email " workflow step and selected
      the template "/etc/workflow/geometrixx/email/welcome.txt"
      3.    Started "test workflow" for /content/geometrixx/en .

      EMail is not working

      error.log

      07.11.2012 17:14:42.533 *INFO* [127.0.0.1 [1352288682531] POST
      /bin/workflow/inbox HTTP/1.1] com.day.cq.workflow.impl.CQWorkflowSession
      Attempting to complete work item with ID:
      /etc/workflow/instances/2012-11-07/model_7535626098811/workItems/node1_etc_ workflow_instances_2012-11-07_model_7535626098811
      07.11.2012 17:14:42.607 *INFO* [JobHandler:
      /etc/workflow/instances/2012-11-07/model_7535626098811:/content/geometrixx/ en]
      com.day.cq.workflow.impl.job.JobHandler Start processing:
      /etc/workflow/instances/2012-11-07/model_7535626098811:/content/geometrixx/ en
      07.11.2012 17:14:42.608 *WARN* [JobHandler:
      /etc/workflow/instances/2012-11-07/model_7535626098811:/content/geometrixx/ en]
      com.day.cq.collab.commons.SendEmailProcess cannot send email:
      org.apache.commons.mail.EmailException: Missing final '@domain'
      at org.apache.commons.mail.Email.createInternetAddress(Email.java:605)
      at org.apache.commons.mail.Email.addTo(Email.java:727)
      at org.apache.commons.mail.Email.addTo(Email.java:710)
      at
      com.day.cq.collab.commons.SendEmailProcess.createEmail(SendEmailProcess.jav a:190)
      at
      com.day.cq.collab.commons.SendEmailProcess.execute(SendEmailProcess.java:11 6)
      at
      com.day.cq.workflow.impl.job.HandlerBase.executeProcess(HandlerBase.java:18 4)
      at com.day.cq.workflow.impl.job.JobHandler.process(JobHandler.java:112)
      at org.apache.sling.event.jobs.JobUtil$1.run(JobUtil.java:272)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: javax.mail.internet.AddressException: Missing final '@domain' in
      string ``${payload.email}''
      at
      javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:915)
      at javax.mail.internet.InternetAddress.validate(InternetAddress.java:856)
      at org.apache.commons.mail.Email.createInternetAddress(Email.java:601)
      ... 10 more