no replys eh?
well anyway, here is the command list:
Quote: "GSMTP Start
GSMTP GetError
GSMTP SetHost
GSMTP SetPort
GSMTP SetUsername
GSMTP SetPassword
GSMTP SetFrom
GSMTP SetTo
GSMPT SetSubject
GSMTP AddBodyText
GSMTP GetBodyLines
GSMTP GetBodyText
GSMTP Connect
GSMTP Send
GSMTP ClearBody
GSMTP ClearAll
GSMTP Disconnect
"
and here is the example:
`Start the SMTP Plugin
GSMTP Start
`you CAN check for errors after EACH command with the "GSMTP GetError()" command.
`but i wont include the command afer each command here :)
`Host Set
GSMTP SetHost "Your_SMTP.Host.com"
`Port Set
GSMTP SetPort 25
`UserName Set
GSMTP SetUsername "UserName"
`Password Set
GSMTP SetPassword "Password"
`From Message
GSMTP SetFrom "From@Me.com"
`To Message
GSMTP SetTo "sergy100@netvision.net.il"
`Set Subject of the message
GSMTP SetSubject "My Subject"
`Add Line to the message
GSMTP AddBodyText "Hello All"
GSMTP AddBodyText "How is it going??"
GSMTP AddBodyText " "
GSMTP AddBodyText "im Fine, thank you!!!"
`Check if any error found
if GSMTP GetError() <> 0 then ErrorMessage "Error: "+str$(GSMTP GetError())
GSMTP Connect 5000
`Check if any error found
if GSMTP GetError() <> 0 then ErrorMessage "Error: "+str$(GSMTP GetError())
if GSMTP Connected() = 0 then ErrorMessage "not connected." : end
GSMTP Send
``Check if any error found
if GSMTP GetError() <> 0 then ErrorMessage "Error: "+str$(GSMTP GetError())
GSMTP Disconnect
`Check if any error found
if GSMTP GetError() <> 0 then ErrorMessage "Error: "+str$(GSMTP GetError())
print "Done."
wait key
(check the code sniped also at the source button)