J
joebloom
New Member
Hi,
I have tried this with Piotnet and Elementor Pro forms, to no avail.
I have a custom post type, properties, set up on jeffreysbay.com.
I want to include a form on a single property template that sends to the author of the page. In other words, a real estate agent posts a listing on the site and the form automatically sets up that real estate agent's registered email address as the recipient of the query of a form.
I created a custom user called agent, then I created a shortcode using the following code:
Then I placed the shortcode, [agent_email], into the (To) email field.
Sticking the shortcode onto a page displays the email address, which proves that the shortcode is correct.
But when I try to send the Elementor form, I get the following message:
Server error. Form not sent.
Is there anyone who can tell me what the problem is?
I asked Elementor support, but they've not gotten back to me yet.
Piotnet support simply tells me there's no problem with their form.
I have tried this with Piotnet and Elementor Pro forms, to no avail.
I have a custom post type, properties, set up on jeffreysbay.com.
I want to include a form on a single property template that sends to the author of the page. In other words, a real estate agent posts a listing on the site and the form automatically sets up that real estate agent's registered email address as the recipient of the query of a form.
I created a custom user called agent, then I created a shortcode using the following code:
Code:
add_shortcode('agent_email', 'email_shortcode_handler', true);
function email_shortcode_handler ( $atts ){global $post;
//get author email:
$agent_mail = get_the_author_meta( 'user_email' , $post->post_author );
return $agent_mail;
}
Then I placed the shortcode, [agent_email], into the (To) email field.
Sticking the shortcode onto a page displays the email address, which proves that the shortcode is correct.
But when I try to send the Elementor form, I get the following message:
Server error. Form not sent.
Is there anyone who can tell me what the problem is?
I asked Elementor support, but they've not gotten back to me yet.
Piotnet support simply tells me there's no problem with their form.