> Know a real example?

If you are looking for someone to write the code for you, you are asking a lot, 
it is a big project. However all of the pieces are documented with the 4D api.

Work through the process and break it in to small chunks, for example in part 
of your process you will want to be able to send an email from 4D. So look at 
the api.

The api has a lot of examples:

http://doc.4d.com/4Dv15R5/index.en.html 
<http://doc.4d.com/4Dv15R5/index.en.html>

For example here are several examples on sending an email

http://doc.4d.com/4Dv15R5/4D-Internet-Commands/15-R5.1550/SMTP-QuickSend.301-3013199.en.html
 
<http://doc.4d.com/4Dv15R5/4D-Internet-Commands/15-R5.1550/SMTP-QuickSend.301-3013199.en.html>

From this link:
$Host:="www.4d.com"
 $ToAddress:="[email protected]"
 $FromAddress:="[email protected]"
 $Subject:="Sales Report"
 $Message:="Can you send me the sales report for January 2009? Thanks."
 $Error:=SMTP_QuickSend($Host;$FromAddress;$ToAddress;$Subject;$Message;1)
 If($Error#0)
    ALERT("Error: SMTP_QuickSend"+Char(13)+IT_ErrorText($Error))
 End If

For reading emails look at the IMAP or POP3 commands depending on the mail 
protocol you want

http://doc.4d.com/4Dv15R5/4D-Internet-Commands/15-R5.1550/IC-IMAP-Review-Mail.201-3013097.en.html
 
<http://doc.4d.com/4Dv15R5/4D-Internet-Commands/15-R5.1550/IC-IMAP-Review-Mail.201-3013097.en.html>

All of the parts to what you want to do are there. You just need to put the 
pieces together to solve your particular problem.

--
Neil Dennis
4D Developer since 1990

GreaText - Designing Software for the Way You Work
716 East 1850 N
North Ogden, UT 84414

mailto:[email protected]
http://www.greatext.com/

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to