Re: Email Attachments
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 17265
interpreted = N
texte = >I remember reading some time ago about using various things to con>Webcatalog and Emailer to add an attachment to an outgoing message. What>was the result of this? I have a situation where an online site wants>shoppers to be able to request a print catalog, but my customer doesn't want>50 or 100 catalog requests a day in email, so no problem, just append the>info to a database. The problem with this is I want the computer to>automatically send this database via email once a week to the customer, and>then clear it out for the next weeks requests. (we don't allow FTP access to>the commerce servers, so that path is out...) Any suggestions would be>appreciated!1- Create a Date file.2- Create a SendMailToClient file.3- Put a properly formatted and addresses [sendmail] context inside your SendMailToClient file. Make sure to Cc: a copy to yourself, so you'll have a copy in case your client doesn't receive his copy.4- Put a search/founditems context inside your sendmail context, and make it retrieve ALL the records in the CatalogRequests.db -- that's the db you are storing your client's catalog requests in.5- On your home page, put some code like this that checks to see what day of the week it is:[showif [date]![include Date]][showif [date %a]=Mon][include SendMailToClient][delete db=CatalogRequests.db&neSomeFielddatarq=[blank]][/showif][writefile Date][date][/writefile][/showif]If you write your [sendmail] properly, you won't have to attach a db file to the message, because the client can simply cut and paste the db data directly from the message area to a blank text file.Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
>I remember reading some time ago about using various things to con>Webcatalog and Emailer to add an attachment to an outgoing message. What>was the result of this? I have a situation where an online site wants>shoppers to be able to request a print catalog, but my customer doesn't want>50 or 100 catalog requests a day in email, so no problem, just append the>info to a database. The problem with this is I want the computer to>automatically send this database via email once a week to the customer, and>then clear it out for the next weeks requests. (we don't allow FTP access to>the commerce servers, so that path is out...) Any suggestions would be>appreciated!1- Create a Date file.2- Create a SendMailToClient file.3- Put a properly formatted and addresses
[sendmail] context inside your SendMailToClient file. Make sure to Cc: a copy to yourself, so you'll have a copy in case your client doesn't receive his copy.4- Put a search/founditems context inside your sendmail context, and make it retrieve ALL the records in the CatalogRequests.db -- that's the db you are storing your client's catalog requests in.5- On your home page, put some code like this that checks to see what day of the week it is:[showif
[date]![include Date]][showif [date %a]=Mon][include SendMailToClient][delete db=CatalogRequests.db&neSomeFielddatarq=[blank]][/showif][writefile Date]
[date][/writefile][/showif]If you write your
[sendmail] properly, you won't have to attach a db file to the message, because the client can simply cut and paste the db data directly from the message area to a blank text file.Sincerely,Ken Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Kenneth Grome
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
WebMerchant when CC network is down (1998)
Stats (2004)
SPAM attempts through WebDNA (Was Serious WebDNA Issue) (2006)
[writefile] (1997)
Webcat Memory use??? (2004)
Fun with Dates - any progress? (1997)
form crasehes server (1997)
WebDNA permissions? (2002)
Roundup function? (1997)
Banners (1997)
Multiple Newcarts (1996)
Proper file locations (1997)
Sort Order on a page search (1997)
problems with 2 tags shakur (1997)
[cart] not being interpreted inside [founditems] (1997)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
bug ? causes NT event log to fill (1997)
[sendmail] on NT? (1997)
Where's Cart Created ? (1997)
WebMerchant 1.6 and SHTML (1997)