summaryrefslogtreecommitdiff
path: root/scripting/source/pyprov/mailmerge.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/source/pyprov/mailmerge.py')
-rwxr-xr-xscripting/source/pyprov/mailmerge.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripting/source/pyprov/mailmerge.py b/scripting/source/pyprov/mailmerge.py
index 4654ad35fc1f..04af53a7a2b7 100755
--- a/scripting/source/pyprov/mailmerge.py
+++ b/scripting/source/pyprov/mailmerge.py
@@ -73,7 +73,7 @@ class PyMailSMTPService(unohelper.Base, XSmtpService):
server = xConnectionContext.getValueByName("ServerName")
if dbg:
print >> sys.stderr, server
- port = xConnectionContext.getValueByName("Port")
+ port = int(xConnectionContext.getValueByName("Port"))
if dbg:
print >> sys.stderr, port
self.server = smtplib.SMTP(server, port)
@@ -254,7 +254,7 @@ class PyMailIMAPService(unohelper.Base, XMailService):
server = xConnectionContext.getValueByName("ServerName")
if dbg:
print >> sys.stderr, server
- port = xConnectionContext.getValueByName("Port")
+ port = int(xConnectionContext.getValueByName("Port"))
if dbg:
print >> sys.stderr, port
connectiontype = xConnectionContext.getValueByName("ConnectionType")
@@ -323,7 +323,7 @@ class PyMailPOP3Service(unohelper.Base, XMailService):
server = xConnectionContext.getValueByName("ServerName")
if dbg:
print >> sys.stderr, server
- port = xConnectionContext.getValueByName("Port")
+ port = int(xConnectionContext.getValueByName("Port"))
if dbg:
print >> sys.stderr, port
connectiontype = xConnectionContext.getValueByName("ConnectionType")