Vier D HomeArchivSeminareNachrichten - Twitter4D Expertise
Antworten auf Ihre Fragen •
Datenbank-Pflege •
4D Coaching •
OpenDDDD •
Termine •
4D Expert
V11/V12-Service • Konzepte •
Alternativen •
Meine Apps
Gebrauchtes Mac + iPhone: zu verkaufenFinden Geo-Themen + Projekte GoogleMap-Integration • GeoDDDD • Database Publishing • Database PhotographyVerschiedenes |
3 June 2010 Example-DatabaseSandbox to test how it works. Don't forget to install the appropriate 4D Internet commands! Example-Result
Send a 4D Write-area as HTML-eMailozWR_eMailMngr expects up to 4 Parameters
ExampleFor a single eMail just one line:
$error_L:=ozWR_eMailMngr ("eMail_Send";wr_Area;->a_ParametersContent_T;->a_AttachPaths_T) a_ParametersContent_T is equal to the array Content and a_AttachPaths_T to the array Attachments Mailmerge:
`Prepare the mailsend parameters first
You can ask ozWR_eMailMngr for the parameters like this The resulting list is shown on the picture of the example database. First 3 Parameters are mandatory, others are optional. If you fill up, SMTP_User, SMTP_Password must be passed too.
`Now for every record in selection Attachments in Temporary folder will automatically be deleted after sending. Other attachments are untouched. Im not sure, if I like that: optional parameters in between parameters. But it saves a lot of coding for a single mail and for mailmerge too. Handling errorsIf ($error_L#0) Taking care ofIf you know about HTML, it should be easier to estimate which formatting options of 4D Write will work in HTML. To name a few that don't work or don't look nice:
Some things really look better in HTML than in 4D Write, like
Technicalities
Its only HMTL 3.2, nothing about CSS and other fancy stuff common these days of HTML5. But it works and Outlook is oldfashioned anyway :-) We can live with that. You want to have the source-code? No problem! Send a descend amount of $ or € to my PayPal-account: info@mettre.de. Finding out how much? |