zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #12108
[Bug 1023796] Re: smtp:send does not set sender name in email
David - please attempt to reproduce this soon, and if confirmed, take a
look at the problem. Thanks.
** Changed in: zorba
Importance: Undecided => High
** Changed in: zorba
Assignee: (unassigned) => David Graf (davidagraf)
** Changed in: zorba
Milestone: None => 2.7
--
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:
New
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