|Dart Home | PowerTCP Mail for ActiveX | Custom Development||Reply | PowerTCP Mail for ActiveX Topics | Forums|
|Author||Forum: PowerTCP Mail for ActiveX|
Topic: smtp object.message.to.add
From: Kerrville, TX USA
Member Since: 01/29/09
|posted March 30, 2016 9:56 AM
Adds an email address ok and sends. I can't figure out how to clear the "message.to". So that I can enter a new "single" address.
Every time I run it, and enter a new address, the old addresses are still there. So after 3 runs. the 3rd email has the first and second address in it as well as new address.
EX to = firstname.lastname@example.org, email@example.com, firstname.lastname@example.org
test code snippet:
.to = ""
&& (NEEDS TO CLEAR OUT CURRENT EMAIL ADDRESS BEFORE ADDING NEW ADDRESS)
.from = ALLTRIM(THISFORM.fcFrom)
*.subject = "Test Message"
.subject = ALLTRIM(THISFORM.fcSubject)
*.text = "all text in message goes here"
.text = ALLTRIM(THISFORM.fcText)
|Jamie Powell (Admin)
From: Rome, NY USA
Member Since: 03/13/07
Extra Support Options
Custom Application Development
|posted March 31, 2016 1:17 PM
The To property is a DartStrings object; use .Clear() to clear out the collection.
|Reply | PowerTCP Mail for ActiveX Topics | Forums|
|This site is powered by PowerTCP WebServer for ActiveX|