73
Views
17
Comments
Solved
Sending email to others
Question

Hi everyone,  I am currently learning how to send emails in OutSystems. So far, I have learned how to send an email to my own email. How can I send an email to others?


Thank you.

2016-04-22 00-29-45
Nuno Reis
 
MVP
Solution

You are saving the email address at GetBookingForms.List.Current.BookingForm.UserEmail

But sending it to Email.UserEmail.

If you use the variable that has the address, it will work.

(that's why I said to use debug)

2023-05-25 06-24-18
Arif Baig

Can you first explain in detail how you sent the email to your personal email?




2021-11-12 04-59-31
Manikandan Sambasivam

Hi,

It seems you have already implemented this, but instead of using your email address, you should pass others' email addresses to send emails to them. Ensure the email address is received as an input parameter in the email block.

2020-07-21 19-28-50
Rajat Agrawal
Champion

Hi ,

try to put Email address in 'To' Field.

Rajat

UserImage.jpg
Chalvina Suja Rahayu

Hi, Thank you, but i want the email to send based on the user email who booked the training

2016-04-22 00-29-45
Nuno Reis
 
MVP

Hello.

The recipient of the email is the address you type into "To". It was explained in some of your previous questions on the same subject.

If the email is not reaching the destination and always going to you, maybe you activated Test List on Service Center and all emails are being redirected to you. (uncheck this box for it to go to the "To" address)

If that is not the problem, please explain better what is happening.


2019-01-07 16-04-16
Siya
 
MVP

When you send an email, it doesn’t matter whether it’s for you or someone else. As long as your email configuration is correct, the message should be delivered to the intended address.

2026-02-16 05-51-10
Sahana K

Hi Chalvina Suja Rahayu,

You have already asked a similar question. Please refer to this forum answer.https://www.outsystems.com/forums/discussion/101422/database-email/

UserImage.jpg
Chalvina Suja Rahayu

Hi, I dont get the answer yet

2019-01-07 16-04-16
Siya
 
MVP

Can you explain what you have done so far and what issue you are facing ? If it's just a matter of sending an email can you create a simple application with only the email functionality and test it ?  You can find all the steps on how to do this at https://success.outsystems.com/documentation/11/building_apps/sending_emails_from_apps/#prerequisites

Once you done with it do revert in case if you are facing any issues and we can take it from there.

UserImage.jpg
Chalvina Suja Rahayu

Hi, I already make a simple form with email, but the email is only sent to my personal email that a booking just creted. i cant send the oml because the file is too big.

Screenshot 2025-02-07 230507.png
2019-01-07 16-04-16
Siya
 
MVP

Attached is a sample application for sending the email. After deploying the application to your environment follow the below steps for Email Configuration in Service Center

  1. Signup for https://www.mailersend.com/ with a username / password or with Google Login
  2. Post activation of your mailersend account go to Email -> Domain -> from the listed Domain select 'Manage' -> SMTP -> Generate new user -> give a name ("demouser") 
  3. Copy Server, Port, UserName , Password to Service Center Email Configuration
  4. Open Service Center -> Administration -> Email
  5. Click Save and Apply Setting to the factory. Note : Default Sender Email is same as Username. Default Sender Name can be anything or simply put the first part of the username.
  6. Run your application and enter an email and click on test.
  7. Email will be delivered to the target address. 


Do follow these steps and let me know if this works for you.

EmailTest.oap
2016-04-22 00-29-45
Nuno Reis
 
MVP

Are you debugging? Can you see what address is in ToEmailAddress variable?

And have you checked Test List like I mentioned before?

UserImage.jpg
Chalvina Suja Rahayu

Hi, I already make my own form, but its still error, can you please check my oml?

pojectttttt.oml
Screenshot 2025-02-07 235530.png
UserImage.jpg
Chalvina Suja Rahayu
EmailsLibrary.oml
2016-04-22 00-29-45
Nuno Reis
 
MVP
Solution

You are saving the email address at GetBookingForms.List.Current.BookingForm.UserEmail

But sending it to Email.UserEmail.

If you use the variable that has the address, it will work.

(that's why I said to use debug)

UserImage.jpg
Chalvina Suja Rahayu

hey, its finally works. thank you so much

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