• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

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: 11
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