I am considering adding the netmailer function to an application that I will ultimately sell to an end user. Will my license allow the end user to use netmailer?
Thanks,
Gene
Addendum -
A5_mailmerge() works well up to and including preview. However, the variables all show up on the email. Anyone know why? Is there a function that replaced A5_mailmerge?
Thanks again.
Gene
The answer to my own question; what's wrong with my use of A5_mailmerge?
I was caught by yet another obsolete way of doing something provided to me by way of Action Scripting. The code that worked for me follows. My variable EMALE contains the recipients email address. Choice contains the template name that the user chose.
'Send an e- mail message using the Alpha Five e-mail clilent.
if is_object(topparent.this) then
form_name = topparent.name()+".this"
else
form_name = ""
end if
template_text = a5_get_saved_email(var->Choice) 'a5_get_saved_email("Herbal_Hour")
dim em as p
dim param_to as c
dim param_subject as c
dim param_cc as c
dim param_bcc as c
dim message_type as c
'A5_email_parser() parses out the different sections of the e-mail template
em = a5_email_parser(template_text)
'The template may have stored expressions rather than constant values for the address components.
'Expressions will be prefixed with '='.
'a5_eval_expression() will evaluate any expressions that are prefixed with '=' in the context of the current form.
param_to = a5_eval_expression(var->EMALE,local_variables())
param_subject = alltrim(a5_eval_expression(em.subject_temp,local_variables()) )
param_cc = alltrim(a5_eval_expression(em.cc_temp,local_variables()))
param_bcc = "" 'alltrim(a5_eval_expression(em.bcc_temp,local_variables()) )
message_type = em.style
'Template message may have mail merge commands. a5_mailmerge() evaluates the mail merge commands.
param_message = a5_mailmerge(em.message_body_temp,form_name)
param_attachments = "" 'zipfile
'Send the e-mail using the Alpha Five e-mail client
email_client(param_to,param_subject,param_message,param_attachments,param_cc,param_bcc,.t.,message_type)
I hope this helps.
Thanks,
Gene
Addendum -
A5_mailmerge() works well up to and including preview. However, the variables all show up on the email. Anyone know why? Is there a function that replaced A5_mailmerge?
Thanks again.
Gene
The answer to my own question; what's wrong with my use of A5_mailmerge?
I was caught by yet another obsolete way of doing something provided to me by way of Action Scripting. The code that worked for me follows. My variable EMALE contains the recipients email address. Choice contains the template name that the user chose.
'Send an e- mail message using the Alpha Five e-mail clilent.
if is_object(topparent.this) then
form_name = topparent.name()+".this"
else
form_name = ""
end if
template_text = a5_get_saved_email(var->Choice) 'a5_get_saved_email("Herbal_Hour")
dim em as p
dim param_to as c
dim param_subject as c
dim param_cc as c
dim param_bcc as c
dim message_type as c
'A5_email_parser() parses out the different sections of the e-mail template
em = a5_email_parser(template_text)
'The template may have stored expressions rather than constant values for the address components.
'Expressions will be prefixed with '='.
'a5_eval_expression() will evaluate any expressions that are prefixed with '=' in the context of the current form.
param_to = a5_eval_expression(var->EMALE,local_variables())
param_subject = alltrim(a5_eval_expression(em.subject_temp,local_variables()) )
param_cc = alltrim(a5_eval_expression(em.cc_temp,local_variables()))
param_bcc = "" 'alltrim(a5_eval_expression(em.bcc_temp,local_variables()) )
message_type = em.style
'Template message may have mail merge commands. a5_mailmerge() evaluates the mail merge commands.
param_message = a5_mailmerge(em.message_body_temp,form_name)
param_attachments = "" 'zipfile
'Send the e-mail using the Alpha Five e-mail client
email_client(param_to,param_subject,param_message,param_attachments,param_cc,param_bcc,.t.,message_type)
I hope this helps.