Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: PowerBuilder "Reply"
tatco
tthibault@oppenheimerfunds.com

From: Englewood, CO USA
Posts: 10
Member Since: 12/18/03
posted December 23, 2003 1:21 PM

This is code based on the sample reply method(Message Object)

Get message "error accessing external object property send...

msg = CREATE OLEobject
msgReply = CREATE OLEobject
msgReply.ConnectToObject("Dart.Message")
msg.ConnectToObject("Dart.Message")

ole_pop.object.Login(gServer, gAccount, gPassword)

ole_pop.object.Get(msgContent, string(1))

ole_pop.object.Logout()

msg = ole_pop.object.Messages(1).Reply("This is the reply")

ole_smtp.object.Login(gServer)

ole_smtp.object.send

ole_smtp.object.Logout

Can't see the error. So what am I doing wrong?

Thanks
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted December 23, 2003 1:37 PM

You aren't doing anything with the message after you create it. Try setting the message property of the smtp object to the message you create with reply.


tatco
tthibault@oppenheimerfunds.com

From: Englewood, CO USA
Posts: 10
Member Since: 12/18/03
posted December 23, 2003 2:15 PM

That worked fine.
Thanks. Still trying to get my arms around this stuff.

Did notice that the reply email didn't contain any header 'From' info. It was contained down in the text section. Do I have to specify from? It would be nice to show up in the recipients list.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted December 23, 2003 2:21 PM


I didn't try it. I don't have PowerBuilder available right now.

You are correct, the from must be set by you. I forgot why it was done that way.
Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX