Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Problem with Send Email with Attachments (Sample)

Avatar

Former Community Member
Hi,

We've just tried to send an email after a form validation.

We have used the activity(processes) "Send Email with attachments" proposed in Samples - Foundation -> E-mail - 1.0 .

We fill out "to addresses", "from addresses" and "connection settings".

But no mail are sent.

We are sure that connection settings are good because when an operation is halted we have an email of error (option in server administration).



Exeception raised is :

Caused by: javax.mail.AuthenticationFailedException



We have tried with "Send email" activity (samples foundation components Send email)

In this activity there is no connection settings, we think it use settings in server administration.

But here Exeception raised is :

Caused by: java.lang.Exception: Incorrect SMTP server provided



Have you got an idea? please
11 Replies

Avatar

Level 10
What SMTP provider are you using?



You have to configure that on the Send Email with attachments operation. This is a different configuration than the email you get when there's an exception.



Jasmin

Avatar

Former Community Member
Hi,

Thank you for your celerity.

We use an Microsoft exchange firm server.

"This is a different configuration than the email you get when there's an exception" :

What is the difference between exception configuration and email configuration ?

Avatar

Former Community Member
The email you get when an exception occurs is sent by the LiveCycle ES server.



The email that is sent using the Send Email operation is sent by the Email service.



These are two totally separate email clients.



For information about how to configure services using Workbench, search for "Editing service configurations"



For information about the configuration properties for the Email service, see Workbench Help > Creating Processes > Service Reference > Email > Email Service Configuration



scott

Avatar

Former Community Member
Hi,

Thank everybody.

In the activity "Send Email with Attachments" ,we have filled out "SMTP host" by IP adress and not the SMTP name.

Avatar

Former Community Member
I received info from Miad this morning regarding aircond for truck WNE 6309 is not functioning due to compressor problem. We need your kind help to rectify the problem. Instead of that, the rear tire also punctured and has to pump every morning.

Avatar

Level 2
Hi

I am having problem sending email alerts to the users. The email settings is configured in the administration console.When I use the send email with attachmnets option I get the error - 'java.lang.RuntimeException: javax.mail.AuthenticationFailedException'- what does this mean?

I have hardcoded my email address in send options and checked the connection settings option as the email settings was done in administration console. Please help me out with this.



Thanks!

Avatar

Level 10
The send email with attachment service is a seperate service than the email notification from the adminui.



This service doesn't use the settings configured in adminui, but uses it own settings.



You'll to configure them again on the service.



Jasmin

Avatar

Level 2
Thanks for the response.

here is the error which I get when I send email with attachmnets now. I have given the IP address of the SMTP server which we are using.

the error is. I am not sure of what to give in the attachments.I have a form which we use in the application but not sure how to send it as attachment.



java.lang.RuntimeException: Attachments of type:class com.adobe.idp.taskmanager.form.impl.xfa.XFARepositoryFormInstance are not supported

Avatar

Level 10
You need to put whatever you want to attach in a variable of type 'document'.



Jasmin

Avatar

Level 2
Jasmin,

Thanks for your quick response. I have created a variable called docs of type Document But where should I mention the document which need to be attached. In attachment(variable) I selected variable from drop down and gave docs there. But I get the same error.



Also in administration console do we have to add the email endpoints?what I see now is EJB,SOAP,Remoting and taskmanager. when do we add the Email endpoint?



Thanksyou very much.

Avatar

Level 10
If you use the Send Email with Attachment, just put the name you want for the attachment under 'Attachment Name' and the name of the variable that contains the content under 'Attachment'.



Before that email step, you'll need to make sure the document variable is loaded with the content you want, and how to do that depends where the content is located. If it's in a variable, you can use the SetValue, if it's on the file system, you can use ReadDocument, etc.



Jasmin