• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Sitejet Builder contact form email settings

Salaupion

New Pleskian
Server operating system version
Debian 12
Plesk version and microupdate number
Plesk 18.0.60
Hi,

I am trying to configure a contact form in the sitejet builder. I am using the basic contact form, but when the site is published I get "Could not send e-mail" error (attached). I checked and allow_url_fopen is enabled.

Appart from the form field (Recipient & Sender) I could not find any info on how to setup the email account that should be used for sending. Is it automatically linked ? Should I set it up in Plesk ? If yes, I could not find where.

Many thanks.
 

Attachments

  • TP_couldnotsendemail_error.png
    TP_couldnotsendemail_error.png
    24.6 KB · Views: 14
Did you enable the "Send email" option in SiteJet and added a Recipient and Sender to the form settings?

Schermafbeelding 2024-05-09 155029.png
 
If I am not mistaken SiteJet uses the native PHP mail() function to sent email. Maybe the server isn't configured to send mail using PHP?

You cloud test this by creating a custom PHP script (for testing purposes) with the code below. Does that produce an error when you try to access the script? Or do you receive the test mail?

Code:
<?php
$message = "Hello World";
$subject = "Test email";
$to = "[email protected]"; // Replace with your own email adres

// Send
$response = mail($to, $subject , $message);

if($response === true){
    echo "Mail function accecpted mail";
}else{
    echo "Error sending email";
}
?>
 
Unfortunately, It returns "Error sending email". And logs show no errors.
That means that the required php mail() function has been disabled on the server. If you manage the server yourself you try to can enable the mail() function. If the server is managed by someone else contact them to ask if php's mail() function can be enabled.
 
Got it. I will look into it. It's a mutualised server, so I'm not sure I have control over it, and they might not even allow the use of the mail() function.
Thanks again.
 
By the way, since I can probably not use the contact form, do you have any suggestions on how to include an alternative contact form ? I tried to include a google form with no success for now (using an iframe block). But there might be easy solutions. Maybe I'll just add a simple mailto: link
Thanks.
 
By the way, since I can probably not use the contact form, do you have any suggestions on how to include an alternative contact form ? I tried to include a google form with no success for now (using an iframe block). But there might be easy solutions. Maybe I'll just add a simple mailto: link
Thanks.
I am not sure. That would be a question best asked in the SiteJet community forums.
 
Hello. I'm very new to build websites using Sitejet. Where can i find information on how to make the contact form send email to an external email ?

Out of the box when the website is published the contact form cannot send email. But I have configured the email in website settings.

I put checkbox "send email" and i'm using the default Sender and Recipient.
 
Hi,

I am trying to configure a contact form in the sitejet builder. I am using the basic contact form, but when the site is published I get "Could not send e-mail" error (attached). I checked and allow_url_fopen is enabled.

Appart from the form field (Recipient & Sender) I could not find any info on how to setup the email account that should be used for sending. Is it automatically linked ? Should I set it up in Plesk ? If yes, I could not find where.

Many thanks.
Have you managed to setup correctly the contact form ?
 
That means that the required php mail() function has been disabled on the server. If you manage the server yourself you try to can enable the mail() function. If the server is managed by someone else contact them to ask if php's mail() function can be enabled.
Where do I configure that ?
 
Where do I configure that ?
Have you actually tested if the PHP mail function is actually disabled?

You use the following code snipped to test is mail function available.
PHP:
<?php
if (function_exists('mail')) {
echo "mail() function is available.<br />\n";
} else {
echo "mail() function is not available.<br />\n";
}
?>
 
Back
Top