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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending dinamic pages as email attachment

Status
Not open for further replies.

Edimator

IS-IT--Management
Mar 13, 2001
49
0
0
VE
Hi, i need to send a group of invoices as html-type attachment to a specific email address in a batch proccess through a cfm page.

the invoice index table looks like this :
Invoice No Email
Code:
   10000000     hgdsh@mailserver.com 
   10000001     asdff@mailserver.com
   10000002     hhytre@mailserver.com
   10000003     vxcbcvxb@mailserver.com
and the URL for the invoice form is

Code:
   [URL unfurl="true"]http://cfserver/invoice.cfm?Invoice=10000000[/URL]

i use CFMAIL, but the option MIMEattach can't execute the URL with params

Code:
   <cfquery name=&quot;EmailList&quot; datasource=&quot;something&quot;>
      select invoice, client_email from Invoices
   </cfquery>

    <cfmail 
      query=&quot;EmailList&quot;
      from=&quot;noreplay@email.com&quot; 
      to=&quot;#client_email#&quot; 
      subject=&quot;Your Invoice&quot;>
MIMEAttach=
Code:
&quot;[URL unfurl="true"]http://cfserver/invoice.cfm?Invoice=#Invoice#[/URL]
[/code]&quot;
</cfmail>
[/code]

I really apreciate any kind of help
 
Here's what you do:
....this could be big loop
<cfmail
from = &quot;you@whatever.com&quot;
to = &quot;#trim(GetEmailAddress.Email)#&quot;
subject = &quot;Subject #Whatever#&quot;
server = &quot;pop3.whatever.com&quot;
type = &quot;HTML&quot;>
...this could be small loop
<cfmailparam
file = &quot;#expandpath('./myFile/#myFile#')#&quot;>
...end of small loop
</cfmail>
...end of big loop
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top