<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><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#c1">Comment # 1</a>
on <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">bug 117221</a>
from <span class="vcard"><a class="email" href="mailto:mcmurchy1917-bugzilla@yahoo.co.uk" title="Alex Kempshall <mcmurchy1917-bugzilla@yahoo.co.uk>"> <span class="fn">Alex Kempshall</span></a>
</span></b>
<pre>I believe the problem is in sw/source/uibase/uno/unomailmerge.cxx arounf about
line 1009
Code snippet below. The last line is wrong.
else if (pData == &m_aBlindCopiesTo)
bOK = rValue >>= m_aBlindCopiesTo;
else if(pData == &m_sInServerPassword)
bOK = rValue >>= m_sInServerPassword;
else if(pData == &m_sOutServerPassword)
bOK = rValue >>= m_sInServerPassword;
Changed it as below and my macro now works.
diff --git a/sw/source/uibase/uno/unomailmerge.cxx
b/sw/source/uibase/uno/unomailmerge.cxx
index b5b477f56587..2816b6a0aa70 100644
--- a/sw/source/uibase/uno/unomailmerge.cxx
+++ b/sw/source/uibase/uno/unomailmerge.cxx
@@ -1006,7 +1006,7 @@ void SAL_CALL SwXMailMerge::setPropertyValue(
else if(pData == &m_sInServerPassword)
bOK = rValue >>= m_sInServerPassword;
else if(pData == &m_sOutServerPassword)
- bOK = rValue >>= m_sInServerPassword;
+ bOK = rValue >>= m_sOutServerPassword;
else {
OSL_FAIL("invalid pointer" );
}</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>