Solved

FUNCKY SMTP

Posted on 2009-05-07
1
703 Views
Last Modified: 2013-12-26
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.
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

Open in new window

0
Comment
Question by:Lordain
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
Lordain earned 0 total points
ID: 24331141
Ok turns out our company antivirus needs and exception added to allow the application to complete.  The above code works fine.  I will leave this here in case someone else has a problem or just wants to know how to use FUNCKY with SMTP.
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question