i want to send an email to a single record (customer) using a html page i built but also to include table fields.
i may be wrong, but using the send email, doesnt seemto allow html, but can include fields.
i have this code on a button on a form to send a netmailer job and filter to the current record. as far as filtering the current record and sending only one email, great, no problems.
the problem i have is that the filter is then set in to the netmailer job, so the next time i want to send an email to a different record, its not sending because a filter is sitting in the job.
does anyone know how i can clear the filter after the email has been sent or another way to send a html based email which will allow me to include fields from the record.
thanks
richard
i may be wrong, but using the send email, doesnt seemto allow html, but can include fields.
i have this code on a button on a form to send a netmailer job and filter to the current record. as far as filtering the current record and sending only one email, great, no problems.
Code:
dim flag_error as l flag_error = .f. if is_object(topparent.this) then p = topparent.this if eval_valid("P:Field322.value") then DELETE Parameter1 'Set the Parameter variable to the object's .value property Parameter1 = eval("P:Field322.value") else flag_error = .t. end if else flag_error = .t. end if if flag_error then ui_msg_box("Error","Field322 does not exist. This script cannot be run in this context.",UI_STOP_SYMBOL) end end if filter = "Cust_id = [varC->parameter1]" query.filter = replace_parameters(filter,local_variables()) query.order = "" a5_run_netmailer_job("[email protected]",query.filter,query.order)
does anyone know how i can clear the filter after the email has been sent or another way to send a html based email which will allow me to include fields from the record.
thanks
richard
Comment