Uploaded image for project: 'ZZZ-WSO2 Carbon'
  1. ZZZ-WSO2 Carbon
  2. CARBON-12262

transport.mail.SMTPBccAddresses parameter of mail sender does not work

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: 3.2.4
    • Fix Version/s: 4.0.0
    • Labels:
      None
    • Severity:
      Critical
    • Estimated Complexity:
      Moderate
    • Test cases added:
      No

      Description

      1. Create a proxy service with transport.mail.SMTPBccAddresses parameter as follows.

      <proxy xmlns="http://ws.apache.org/ns/synapse" name="StockQuoteProxy" transports="mailto" statistics="disable" trace="disable" startOnLoad="true">
      <target>
      <inSequence>
      <property name="senderAddress" expression="get-property('transport', 'From')" />
      <log level="full">
      <property name="Sender Address" expression="get-property('senderAddress')" />
      </log>
      <send>
      <endpoint>
      <address uri="http://localhost:9000/services/SimpleStockQuoteService" />
      </endpoint>
      </send>
      </inSequence>
      <outSequence>
      <property name="Subject" value="Custom Subject for Response" scope="transport" />
      <header name="To" expression="fn:concat('mailto:', get-property('senderAddress'))" />
      <property name="OUT_ONLY" value="true" />
      <property name="transport.mail.Format" value="Multipart" scope="axis2" />
      <log level="full">
      <property name="message" value="Response message" />
      <property name="Sender Address" expression="get-property('senderAddress')" />
      </log>
      <send />
      </outSequence>
      </target>
      <publishWSDL uri="file:repository/samples/resources/proxy/sample_proxy_1.wsdl" />
      <parameter name="transport.PollInterval">5</parameter>
      <parameter name="mail.pop3.host">pop.gmail.com</parameter>
      <parameter name="mail.pop3.password">mailpassword</parameter>
      <parameter name="mail.pop3.user">synapse.demo.1</parameter>
      <parameter name="mail.pop3.socketFactory.port">995</parameter>
      <parameter name="transport.mail.ContentType">application/xml</parameter>
      <parameter name="transport.mail.SMTPBccAddresses">uoccharitha@gmail.com</parameter>
      <parameter name="mail.pop3.port">995</parameter>
      <parameter name="mail.pop3.socketFactory.fallback">false</parameter>
      <parameter name="transport.mail.Address">synapse.demo.1@gmail.com</parameter>
      <parameter name="transport.mail.Protocol">pop3</parameter>
      <parameter name="mail.pop3.socketFactory.class">javax.net.ssl.SSLSocketFactory</parameter>
      </proxy>

      2. According to this configuration, a blind carbon copy of the response should be sent to the specified mail address. But it does not.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sagara@wso2.com Sagara Gunathunga
                Reporter:
                charitha@wso2.com Charitha Kankanamge
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: