Dear all, Sorry for creating a new topic. My original question was this one https://answers.axonivy.com/questions/3431/how-to-define-sender-name-in-axon-ivy-mail

I wanted to define a sender name in Ivy.Mail. And Thank @Reto Weiss, your instruction helped. But the problem is that I can't send an email defined 'from' with spaces and special character. The text I tried was 'Sony AG, john.smith@sony.ch'. Many thanks,

asked 25.09.2018 at 22:50

an_nguyen's gravatar image

an_nguyen
(suspended)
accept rate: 0%

Hi An Can you provide me the code you use with Java Mail to set the text? Thanks

(26.09.2018 at 08:32) Reto Weiss ♦♦ Reto%20Weiss's gravatar image

Hi An

It works for me if I use the following format (RFC822):

Sony AG <john.smith@sony.ch>

More Information can be found on the following class:

javax.mail.internet.InternetAddress

Regards

link

answered 26.09.2018 at 08:57

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.9k202857
accept rate: 74%

edited 27.09.2018 at 02:50

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958

Dear @Reto Weiss, @Reguel-Wermelinger,

(Sorry, This is actually a comment (not the answer like its function), because I need to add a picture to explain my problem more clearly.)

Continue with above problem (I & asker are in the same team :)) ),

This is my email step information, before add value for From field, we have value for Subject, Reply to, To, and in this time, email function work perfectly.

now, I add <%=in.from=> to From field in E-mail Header (as in picture), in.from is String type

And before go to this Email step, I try to set your value Sony AG < john.smith@sony.ch> to variable in.from, but it's not work. Email cannot be sent.

  • But If I set Sony AG < john.smithsony.ch> , It means no @ character here and it's work. Really so strange, I don't know why.

Is there any wrong here?

Thank you very much for the reading.

link

answered 27.09.2018 at 06:11

nhthang's gravatar image

nhthang
(suspended)
accept rate: 0%

edited 27.09.2018 at 06:12

This works for me with version 7.0.7 Designer. Which version are you using? What means does not work? Is there an error? Is there a log that tells it is not working? Anything?

(27.09.2018 at 06:35) Reto Weiss ♦♦ Reto%20Weiss's gravatar image

My Ivy version: 7.1.0 (Weisshorn) , email cannot be sent, In the same process file here, we have an Error start event to catch all the errors happend, there are some logs here which we print by object error.stackTrace: (I separate by some below comments): [ch.ivyteam.ivy.bpm.error.BpmErrorBuilder.build(BpmErrorBuilder.java:204), ch.ivyteam.ivy.bpm.engine.restricted.error.BpmErrorConverter.toBpmError(BpmErrorConverter.java:44), ch.ivyteam.ivy.bpm.engine.internal.model.bpmn.BackgroundActivityExecutorAdapter.handleErrorAndTimeout(BackgroundActivityExecutorAdapter.java:80), ...

(27.09.2018 at 08:40) nhthang nhthang's gravatar image

[ch.ivyteam.ivy.bpm.error.BpmErrorBuilder.build(BpmErrorBuilder.java:204), ch.ivyteam.ivy.bpm.engine.restricted.error.BpmErrorConverter.toBpmError(BpmErrorConverter.java:44), ch.ivyteam.ivy.bpm.engine.internal.model.bpmn.BackgroundActivityExecutorAdapter.handleErrorAndTimeout(BackgroundActivityExecutorAdapter.java:80), ch.ivyteam.ivy.bpm.engine.internal.model.bpmn.BackgroundActivityExecutorAdapter.handleBackgroundOperationResult(BackgroundActivityExecutorAdapter.java:66),

(27.09.2018 at 08:41) nhthang nhthang's gravatar image

ch.ivyteam.ivy.bpm.engine.internal.model.bpmn.BackgroundActivityExecutorAdapter.executeInProcessElementRequest(BackgroundActivityExecutorAdapter.java:50), ch.ivyteam.ivy.bpm.engine.internal.model.bpmn.ProcessElementRequestExecutorAdapter.lambda$0(ProcessElementRequestExecutorAdapter.java:44), ch.ivyteam.util.callable.AbstractExecutionContext.lambda$2(AbstractExecutionContext.java:44), ch.ivyteam.util.callable.AbstractExecutionContext.callInContext(AbstractExecutionContext.java:16), ch.ivyteam.util.callable.AbstractExecutionContext.callUncheckedInContext(AbstractExecutionContext.java:57),...]

(27.09.2018 at 08:41) nhthang nhthang's gravatar image

Hi This seems to be more a support case than a Q&A. Can you please start a support ticket about this. You can simple do this by sending a mail to support@axonivy.com. Thanks

(27.09.2018 at 09:14) Reto Weiss ♦♦ Reto%20Weiss's gravatar image

I will, Thanks for the supporting!

(27.09.2018 at 10:41) nhthang nhthang's gravatar image
showing 5 of 6 show 1 more comments

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×147
×34
×5

Asked: 25.09.2018 at 22:50

Seen: 2,516 times

Last updated: 27.09.2018 at 10:41