Now, before I start, I have looked on the Forums at other threads and not being fluent in Java I am struggling a bit. I'm looking for some advice to send an email when the user doesn't upload an attachment. I have got it working, so that when the user does upload an attachment I get a document link through, however when an attachment isn't present in the form (as it isn't required) no email comes through.
The front end works fine. A user is able to upload all appropriate details and it is successfully saved to the database.
The details are as follows:
Dataset ID: #dataset1
Datasbase name: "Enquiries"
Database columns, left to right: Title - Name - Email Address - Telephone Number - Your message to us - Company - Attachment
I will include an image of the code below, due to company privacy I've had to blank out the const recipient email address, but let's call it firstname.lastname@example.org if it makes a difference.
Like I have previously stated, I have looked at the other threads on the forum and been through the wix code resources to try find a solution, but unless I'm missing it (not being amazingly code savy) I cannot find a solution.