Display custom field details
Hi,
I would like to display custom field details in the email sent to admin/customer
can I just use the tag used to call the custom field
cp_get_ad_details($post->ID, $cat_id);
Is it a matter of putting this tag to the admin theme_emails script or do I need to follow certain procedures?
In addition to that, I would like to to upload a document file instead of an image file - I know its a matter of changing the settings for what kind of file to accept. Can I change that in step-functions.php?
What if I want to send the document file as an image file - can I just use the tag
<?php cp_get_image_url(); ?> used to call the image?
If possible can I use this procedure to call and upload the file?
$name_of_uploaded_file =
basename($_FILES['uploaded_file']['name']);
$path_of_uploaded_file = $upload_folder . $name_of_uploaded_file;
$tmp_path = $_FILES["uploaded_file"]["tmp_name"];
send email via
$message->addAttachment($path_of_uploaded_file);
The first part of my question is more relevant to this post whilst the second part is a bonus...does anyone have an idea of what I'm talking about at all?