<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - MailMerge: Not recognising outgoing SMTP Server password when supplied by macro"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=117221">117221</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>MailMerge: Not recognising outgoing SMTP Server password when supplied by macro
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.1.0.0.alpha0+ Master
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>BASIC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mcmurchy1917-bugzilla@yahoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Because the password is stored in registrymodifications.xcu in clear text. See
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Outgoing mail server password in clear text inside the registrymodifications.xcu file"
href="show_bug.cgi?id=96672">Bug 96672</a> - Outgoing mail server password in clear text inside the
registrymodifications.xcu file
I elected to supply the Outgoing mail server password using a text box and
supplying the password to MailMerge using this property OutServerPassword
within a macro as in the following code snippet.
oMailMerge = CreateUnoService("com.sun.star.text.MailMerge")
oMailMerge.DocumentURL = ConvertToUrl(strSelectedTemplate)
oMailMerge.DataSourceName = "MySQLDataBase"
oMailMerge.CommandType = 0 'Command
oMailMerge.Command = "MySQLDataBase.tbl_temporary"
oMailMerge.OutputType = com.sun.star.text.MailMergeType.MAIL
oMailMerge.Subject = strTitle
oMailMerge.AddressFromColumn = "Email_Address"
oMailMerge.OutServerPassword="XXXXXXX YYYYYYY"
oMailMerge.SendAsHTML = True
oMailMerge.execute(Array())
It didn't work! Returned this information in an Error Message Box -
BASIC runtime error.
An exception occurred
Type: com.sun.star.uno.Exception
Message: Mail merge failed. Sorry, no further information available..</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>