FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Sending emails from within FiveWin.
Posts: 117
Joined: Thu Mar 02, 2006 11:06 AM
Sending emails from within FiveWin.
Posted: Tue Sep 04, 2007 01:57 PM

I have to make a list with email addresses and a text to send.

The program has to send it automatically without further action of the user.

(It is not for sending spam of course)

Is this possible from within FiveWin.

I saw there is pop3 example in the samples map.

Is this only an early test with few possibilities or is it possible to send whole mailing without problems.

Thanks,

Willy

Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Emails
Posted: Wed Sep 05, 2007 04:09 PM

YOu can do a search for a recent thread on this subject. There are options and its probably fair to say that there is inconsistancy.

Your OS will make a difference. If you are using Vista, you may encounter issues with some formats while others seem to work fine.

Yes, it can be done, but you will have to try some of the methods proposed on this forum. Do a search on EMAIL and you will find the other threads with great detail.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 56
Joined: Wed May 23, 2007 02:01 PM
Sending emails from within FiveWin.
Posted: Wed Sep 05, 2007 05:18 PM
hi Willy,

if I understand what you looking for, try this example:

#include "FiveWin.ch" 

function Main()

local aList:={'mai1_1@yahoo.com',;
              'mail_2@hotmail.com',;
				  'mail_2@aol.com' }

local aFile:={'c:\doc_1.doc',;
              'c:\doc_2.xls',;                              
              'c:\doc_3.ppt'}

local oMail, cMail:='', cFile:=''

for i = 1 to len(aList)
   
	cMail = aList[ i ]   
	
	cFile = aFile[ i ]
	
	if .not.file(cFile)  // if file don't exist, don't attach
	   cFile=''            
	endif
	
	oMail = TMail():New('My Subject'  ,;   // subject
                       'My Body Text',;   // body text           
                       nil           ,;   // msg type
                       nil           ,;   // conversation ID
                       Date()        ,;   // Date                   
                       Time()        ,;   // Time
                       .T.           ,;   // Receipt
                       .T.           ,;   // From User
                       {}            ,;   // Origins                
                       {cMail}       ,;   // Destinatary
                       {cFile}        )   // Files Attach
	
	oMail:Activate()   
	
	oMail:End()

next

return


// set From User = .F. for automatic send, without further action of the user


regards
Yury Marcelino Al
yury030575@yahoo.com.br
vimansca@vimansca.com.br
Leme / SP - Brasil
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Sending emails from within FiveWin.
Posted: Wed Sep 05, 2007 08:29 PM

That works good when it is set with From User = .T.
If you use Outlook and try From User = .F. then you get security warnings that stop the email processing.

It is very frustrating to get Fivewin to email by itself under all conditions. That is why I ended up using an external SMTP email program.

Good luck,
Gale

Posts: 97
Joined: Sun Nov 20, 2005 04:32 PM
Sending emails from within FiveWin.
Posted: Thu Sep 06, 2007 11:38 AM
Gale FORd wrote:That works good when it is set with From User = .T.
If you use Outlook and try From User = .F. then you get security warnings that stop the email processing.

It is very frustrating to get Fivewin to email by itself under all conditions. That is why I ended up using an external SMTP email program.

Good luck,
Gale


here an little tool for your outlook-problem.

http://www.contextmagic.com/express-cli ... lopers.htm

regards, Norbert
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Sending emails from within FiveWin.
Posted: Thu Sep 06, 2007 09:27 PM
Norbert,

I experienced that ClickYes is generating often problems. It is also not that easy to install it.

I found a much easier tool at http://www.mapilab.com/outlook/security/.

It is free for commercial and non-commercial use.

Just install it and launch Outlook and everything is ready.

Good luck

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 840
Joined: Thu Oct 13, 2005 07:05 PM
Sending emails from within FiveWin.
Posted: Thu Sep 06, 2007 11:08 PM
I do use Funcky por emailing (and for a thousands of things more):
Function SendMail()
   LOCAL cText := Memoread("w:\cgi-win\cdfw\message.txt")
   LOCAL oMail := TOLEAUTO():NEW("funckysmtp")
   LOCAL aFail := {}

   WITH OBJECT oMail
      :Server ="smtp.server.com"
      :FromName := "google user information"
      :FromAddress := "info@google.com"
      :Subject := "Comming soon training in your locality"
      :Message := cText
   END

   fw->(DBGOTOP())
   DO WHILE ! fw->(EOF())
      WITH OBJECT oMail
         :ToName := ALLTRIM(fw->nombre)
         :ToAddress := ALLTRIM(fw->mail)
         IF ! :Send()
            AADD(aFail,{fw->nombre,fw->mail})
         ENDIF
      END
      fw->(DBSKIP())
      oDbfBrowse1:Refresh()
   ENDDO
   MsgInfo ("Finished")
RETURN Nil
Saludos

R.F.
Posts: 2
Joined: Sat Sep 08, 2007 01:47 PM
Sending emails from within FiveWin.
Posted: Sat Sep 08, 2007 08:28 PM

Willy,
Ik heb gezien dat je werkt met Sql en Fivewin .Ik will graag inlichtigen daarover .
Can je uw email geven .
Mijn email is ph.jacquet@skynet.be
Thanks .

Posts: 840
Joined: Thu Oct 13, 2005 07:05 PM
Sending emails from within FiveWin.
Posted: Sun Sep 09, 2007 04:58 PM
Nop wrote:Rene, where i down funcky? this is free? thanks


www.funcky.com

you can downlad a demo with limited functionality, the full product is a little pricy but worth the price
Saludos

R.F.

Continue the discussion