Lordain
asked on
FUNCKY SMTP
Getting a connection refused error. Has anyone been able to get Funcky working using SMTP?
Environement:
PB 11.2 on a Vista client.
I have been using Funcky for quite sometime and I have successfully instantiated the object and can make valid calls.
I have a need to use SMTP and as I understand it Funcky comes with this built in but I can't find a complete example.
Environement:
PB 11.2 on a Vista client.
I have been using Funcky for quite sometime and I have successfully instantiated the object and can make valid calls.
I have a need to use SMTP and as I understand it Funcky comes with this built in but I can't find a complete example.
Global Variables:
OLEOBJECT FUNCky
OLEOBJECT SMTP
CODE:
FUNCky = CreateObject("FUNCky")
SMTP = CreateObject("FUNCkySMTP")
SMTP.Server = "mail.xxx.com"
SMTP.FromName = "My Name"
SMTP.FromAddress = "something@test.com"
SMTP.ToName = "myemail@xxx.com"
SMTP.ToAddress = "My Name@xxx.com"
SMTP.Subject = "SMTP Test from PB"
SMTP.Message = "Did it work?"
SMTP.Timeout = 10000
If( SMTP.Send()) Then
messagebox("Mail Sent Result","True")
Else
messagebox("Mail Sent Result","Error: # " + string(SMTP.Error) + " - " + stringSMTP.ErrorMessage) )
End If
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.