Page 1 of 1

Notification from one mail address

PostPosted:Mon Jan 03, 2011 5:22 am
by ssprasad.e
hi ,

in using mail configuration as in mail-service.xml
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: mail-service.xml 62349 2007-04-15 16:48:15Z dimitris@jboss.org $ -->
<server>

  <!-- ==================================================================== -->
  <!-- Mail Connection Factory                                              -->
  <!-- ==================================================================== -->

  <mbean code="org.jboss.mail.MailService" name="jboss:service=OpenKM">
    <attribute name="JNDIName">java:/mail/OpenKM</attribute>
    <attribute name="User">ssprasad.e</attribute>
    <attribute name="Password">123456</attribute>
    <attribute name="Configuration">
      <!-- A test configuration -->
      <configuration>
        <!-- Change to your mail server prototocol -->
        <property name="mail.store.protocol" value="pop3"/>
        <property name="mail.transport.protocol" value="smtp"/>
   
        <!-- Change to the user who will receive mail  -->
        
   
        <!-- Change to the mail server  -->
        <property name="mail.pop3.host" value="pop.gmail.com"/>
   
        <!-- Change to the SMTP gateway server -->
        <property name="mail.smtp.host" value="pop.gmail.com"/>
        <property name="mail.smtp.starttls.enable" value="true" />
        
        <!-- The mail server port -->
        
   
        <!-- Change to the address mail will be from  -->
        
        <property name="mail.smtp.user" value="ssprasad.e@gmail.com"/>
        <property name="mail.smtp.password" value="123456"/>
        <property name="mail.smtp.auth" value="true"/>
   
        <!-- Enable debugging output from the javamail classes -->
        <property name="mail.debug" value="false"/>
      </configuration>
    </attribute>
    <depends>jboss:service=Naming</depends>
  </mbean>
</server>
if i send notification to the users, then from address of received mails should be like support@somthing.com but not from ssprasad.e@gmail.com. They are receiving notification like below:
Code: Select all
from	:ssprasad.e@gmail.com
to:	saibaba@gmail.com
date	Mon, Jan 3, 2011 at 10:41 AM
subject	Redpine Signals Notification : Documentation/Software Update - DialyVisit.txt
mailed-by	gmail.com
	
Message: hi shyam
BUT I WANT LIKE :
Code: Select all
from	:support@something.com
to:	saibaba@gmail.com
date	Mon, Jan 3, 2011 at 10:41 AM
subject	Redpine Signals Notification : Documentation/Software Update - DialyVisit.txt
mailed-by	gmail.com
	
Message: hi shyam
even if i send notification from ssprasad.e@gmail.com that should be shown from address like support@something.com,
please help me.
please help me.

Re: Notification from one mail address

PostPosted:Mon Jan 03, 2011 8:11 pm
by jllort
support@something.com I think is the user mail who sends the notification, could it be ?

Re: Notification from one mail address

PostPosted:Thu Jan 20, 2011 8:35 pm
by pavila
You are right samenlia, but I think only mail.from is needed in this case.