Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flex code to trigger email?

Status
Not open for further replies.

dgillz

Instructor
Mar 2, 2001
10,043
US
Has anyone ever done this? I have an event in mind that works, but I have no idea how to fire off an email in Flex.

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
 
I would think you can do this using Flex. My eMail system is GroupWise. I program in Delphi and I've written a multitude of applications that execute eMail, many of which revolve around Macola activities. You need to get the type library for your eMail program. I found the GroupWare type library for Delphi on Novell. This file contains all the class definitions, functions, etc. Think of it as a ".h" file for C, or for whatever VB uses. You would "include" this file when you compile. There's probably a way to import the type library into Flex....that is, as long as Exact was "Flex"ible in utilizing Flex to the maximum.

Sample Delphi Code:

procedure TForm1.sendMail(Sender: TObject);
var
GWObj, RAobj: variant;
user,password : String;
mail : variant;

begin

CoInitialize(nil);
GWobj := CreateOleObject('NovellGroupWareSession');
RAobj := GWobj.Login(User, '', Password);
mail := RAobj.MailBox.Messages.Add('GW.MESSAGE.MAIL') ;
mail.Recipients.Add('JohnDoe@comdot.com');
mail.BodyText := eTxt;
mail.Subject := 'Orders Completed in Shipping';
mail.Send;

end;


Getting answers before I'm asked
is why I go to Tek-Tips.
 
I beleive there is a sample project on the Flex CD or use to be on Exacts web site, emailed a customer a thank you based on a new order being entered. Page 25 of the Flex programers users guide.
 
Using Flex may do the trick, but you should invest in Event Manager as the email alerting capabilities work great and are much easier to administer and manage. Besides, the Event Manager can notify in many ways, email, fax, PDF, Crystal, HTML...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top