Posted on 2004-04-23
I am using JMail to send emails. I need to change the configuration to send the email from a different server. I have the details of the server, but I dont know the syntax to state the login and password.
This is my existing code:
loMail = CREATEOBJECT("jmail.smtpmail")
loMail.serveraddress = <serveraddress>
loMail.sender = <senderaddress>
loMail.subject = "This is a test"
loMail.Body = "This is a test"
lbRetVal = loMail.execute()
I assume it would be something like:
loMail.ServerUserName = <username>
loMail.ServerPassword = <password>
But this does not work...
Please can anyone let me know the correct syntax for this.