Send mail from contact form

Hello,

I am creating a contact form and I'm not getting logic:-

-How to get the admin's email ID in "to" in the contact form automatically.

-after clicking on send button, the admin will get mail on his Gmail or outlook or any id he has given.

Hello Tapas


Here's an example, I have a Contact Form with 2 fields (Name and Email)

Upon saving, I want it to send an email to the email provided on the form.

Upon saving, I want it to send an email to the email provided on the form.

On the Email Action, there's several properties you can configure such as to whom to send the email to, include someone as CC or BCC.

In addition to performing all of that, you must also ensure that your SMTP Configuration has been configured for it to be able to send emails.
You can configure it in Service Center

Below are links regarding such activities in Outsystems.

Sending an Email with Outsystems:

https://success.outsystems.com/Documentation/11/Developing_an_Application/Implement_Application_Logic/Send_an_Email_From_a_Web_Application

Outsystems Email Documentation:

https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Processes/Process_Tools/Send_Email

Configuration of SMTP:

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/Configure_OutSystems_to_Send_Emails


Hope that answers your question.

could you send your oml file for this. I have tried but i am not getting exactly how to do it.

Hello Tapas,

If you're not aware yet, Emails should be created in Traditional Web Apps.

Attached is a copy of my oml for this scenario.

I've also added a parameter to the email so you would have an idea on how to pass values from one page to the email screen.


Let me know if you have further questions.

SampleEmail.oml

mvp_badge
MVP

Hi Tapas,

First of all you have to configure the email setup in the service center under Admin tab and in this setup you can mention the default senders email and name. After setup this you can use the email widget/actions to send the email.

https://success.outsystems.com/Documentation/11/Developing_an_Application/Implement_Application_Logic/Send_an_Email_From_a_Web_Application



Regards,

-PJ-

mvp_badge
MVP

Hi Tapas,

to send email to admin emails, you can create a site propertie variable (this variable can be configured in the service center later), and set emails in this variable, example:


then use this variable in the send email component:

Regards.

could you please send the oml file for the above

mvp_badge
MVP

Of course. 

in attachment.

if you do not receive an email, see this service center tab for the reason for the error:

Regards.

SendEmailExample.oml

Champion

Hi

It only means your Mail Configuration is wrong. Please check your SMTP user and password.

Kind regards,

mvp_badge
MVP

Hi,

have you already activated this setting?

Regards.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.