Solved

FUNCKY SMTP

Posted on 2009-05-07
1
698 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

930 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now