← Back to team overview

zorba-coders team mailing list archive

[Bug 1023796] Re: smtp:send does not set sender name in email

 

Ok, I associated that branch with this bug, so I believe Launchpad will
mark it Fix Committed when the branch is merged. I'm assigning the bug
back to David since he needs to manage getting the merge completed.

I've voted Approve on the merge, so it should be ready to go, but it
needs a commit message. Please mention fixing this bug in addition to a
description of the utf-8 encoding stuff. Thanks!

** Changed in: zorba
       Status: Opinion => Confirmed

** Branch linked: lp:~davidagraf/zorba/bug-867248

** Changed in: zorba
     Assignee: Chris Hillery (ceejatec) => David Graf (davidagraf)

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/1023796

Title:
  smtp:send does not set sender name in email

Status in Zorba - The XQuery Processor:
  Confirmed

Bug description:
  When sending an email with smtp:send the name of the sender is no
  longer included in the mail. Previous versions of zorba handeled this
  correctly.

  To reproduce:
  * replace password or use other mail account
  * insert your email as reciever

  Your mailclient will NOT display "TESTNAME (28msec@xxxxxxxxxxxxxxxxx)"
  as sender as expected but only "28msec@xxxxxxxxxxxxxxxxx"

  
  import module namespace smtp = 'http://www.zorba-xquery.com/modules/email/smtp';
  import module namespace imap = 'http://www.zorba-xquery.com/modules/email/imap';
   import schema namespace email = 'http://www.zorba-xquery.com/modules/email';

  declare variable $mailtest:host as element(email:hostInfo) := 
    (
       <email:hostInfo>
        <email:hostName>mail.evaluescience.com/novalidate-cert/secure</email:hostName>
        <email:userName>28msec@xxxxxxxxxxxxxxxxx</email:userName>
        <email:password>INSERT CORRECT PASSWORD HERE</email:password>
      </email:hostInfo>      
    
    );

   let $mail := validate strict {
     <email:message>
          <email:envelope>     
             <email:from>
               <email:name>TESTNAME</email:name>
               <email:email>28msec@xxxxxxxxxxxxxxxxx</email:email>
             </email:from>
            <email:subject>Test Mail</email:subject>                   
            
                <email:recipient>
                  <email:to>
                    <email:name>Alexander Kreutz</email:name>                    
                    <email:email>kreutz@xxxxxxxxx</email:email>
                  </email:to>
                </email:recipient>
                     
          </email:envelope>
          <email:body>
            <email:multipart contentType="multipart/alternative">            
               <email:content contentType="text/plain" charset="UTF-8" contentTransferEncoding="ENC8BIT">
               {
                 "Bla Bla Bla"
               }
               </email:content>
               <email:content contentType="text/html" charset="UTF-8" contentTransferEncoding="ENC8BIT">
               { 
                 fn:serialize(<html><head></head><body>Bla bla bla</body></html>)
               }   
               </email:content>
            </email:multipart>
          </email:body>
        </email:message> }
    return
      smtp:send($mailtest:host, $mail);

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1023796/+subscriptions


References