cancel
Showing results for 
Search instead for 
Did you mean: 

How do I set email sending.

evan
Champ in-the-making
Champ in-the-making
I defined a simple workflow for one space, now I want to send email to different person with different template.
For example: when this document has been approved, system can send approve email. If it is rejected,  system can send another email.
Who has the experience like this, and can solve for me
21 REPLIES 21

pjcaracuel
Champ in-the-making
Champ in-the-making
Right.

What´s mail.jar version have in your  tomat/WEB_INF/lib path?

evan
Champ in-the-making
Champ in-the-making
I only saw mail.jar but I don't know this mail.jar version. How can I know mail.jar version?

pjcaracuel
Champ in-the-making
Champ in-the-making
Ok,

Yoou open with winzip this file (mail.jar) . Edit MANIFEST.MF and post the text.

evan
Champ in-the-making
Champ in-the-making
Hi,
    i have get the MANIFEST.MF but what is the meaning of post the text.text as follows

Manifest-Version: 1.0
Implementation-Version: 1.4
Specification-Title: JavaMail(TM) API Design Specification
Specification-Version: 1.3
Implementation-Title: javax.mail
Extension-Name: javax.mail
Created-By: 1.5.0 (Sun Microsystems Inc.)
Implementation-Vendor-Id: com.sun
Implementation-Vendor: Sun Microsystems, Inc.
Specification-Vendor: Sun Microsystems, Inc.
SCCS-ID: @(#)javamail.mf   1.6 05/12/09

Name: javax/mail/search/SearchTerm.class
SHA1-Digest: SwGnDhIUmpZhfhq/FKkCQ9nD7ZE=

Name: javax/mail/SendFailedException.class
SHA1-Digest: XdCEygaIZQB9YrH2WIr4nPRYYk0=

what should i do next?

evan
Champ in-the-making
Champ in-the-making
anyone who can do a favor for me ????  top urgent !!!

evan
Champ in-the-making
Champ in-the-making
waiting you help and top urgent.

evan
Champ in-the-making
Champ in-the-making
Hi anyone
i have modified <TOMCAT_HOME>/classes/alfresco-global.properties as below:

# Sample Gmail settings
mail.host=smtp.gmail.com
mail.port=465
mail.protocol=smtps
mail.username=user@gmail.com
mail.password=password

# New Properties
mail.smtps.starttls.enable=true
mail.smtps.auth=true

create a <TOMCAT_HOME>/classes/alfresco/extension/custom-email-context.xml and content as below:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
<!–                        –>
<!– MAIL SERVICE           –>
<!–                        –>

<bean id="mailService" class="org.springframework.mail.javamail.JavaMailSenderImpl">
    <property name="host">
        <value>${mail.host}</value>
    </property>
    <property name="port">
        <value>${mail.port}</value>
    </property>
    <property name="protocol">
        <value>${mail.protocol}</value>
    </property>
    <property name="username">
        <value>${mail.username}</value>
    </property>
    <property name="password">
        <value>${mail.password}</value>
    </property>
    <property name="defaultEncoding">
        <value>${mail.encoding}</value>
    </property>
    <property name="javaMailProperties">
        <props>
            <prop key="mail.smtps.auth">${mail.smtps.auth}</prop>
            <prop key="mail.smtps.starttls.enable">${mail.smtps.starttls.enable}</prop>
        </props>
    </property>
</bean>
</beans>
now i define a processdefinition and set a task to send a mail to notify somebody.code as below:

var mail = actions.create("mail");
                 mail.parameters.to = "user@gmail.com";
                 mail.parameters.subject = "Sample Task " + bpm_workflowDescription;
                 mail.parameters.text = "It's done";
                 mail.execute(bpm_package);

issue as below:

Failed to send email to ltt
org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException
Caused by: javax.mail.AuthenticationFailedException
   at javax.mail.Service.connect(Service.java:306)
anyone who can help me to fixed bugs? top urgent!

pjcaracuel
Champ in-the-making
Champ in-the-making
Hi evan,

I had the same issue that you. Unfortunately I couldnt´t solve it. Then I used my smtp company in order to send mail. See my post
http://forums.alfresco.com/en/viewtopic.php?f=9&t=20818&p=68030

Regard.

evan
Champ in-the-making
Champ in-the-making
o~~~~~~~~~~~!my God! who can help me~~~~~~~~~~~~~~~~~~~~~
"_"!

evan
Champ in-the-making
Champ in-the-making
Who successfully sent email to extranet by JBPM code in processdefinition.xml?exchange our experience