How to send mails automatically every week using timer

So the below oml file is about recruitment application, which contains candidates and recruitment process as entity

As Candidate, I want to receive weekly, information by email, about the new recruitment processes creates in the past week (Timer).


recruitmentapp.oml

Solution

Hi shalini,

Firstly you should create a Mail Component in (Reactive Or Triditional web application).

After that Go to process section and create a timer & Call the email server action 



Set Some Prop:

Go To Schedule:


Thanks

Md Mansur

Hi Mansur,

I tried the this method, you see in file

How to I send this to all the candidates mail?




recruitmentapp.oml

Hey @shalini shivaram please made these correction in your send mail server action


Hi @Jitendra Kumar I'm not receiving the mail

Hello @shalini shivaram,

You are using your personal google account to sent mails that's why above error is throwing.

To overcome form this you have to enable less secure app access functionality in google account.

Less secure app option in google account allows external/third party apps to operate google account.

Path to activate less secure app:-

i. Google account setting

ii. Security

iii. Under security tab you will found Less secure app access.


Regards,

Narendra Bhangale.

Thank you, I received the mail with the help of this solution.

Hello @shalini shivaram,

Please mark the solution to posts which helps you to resolve your query.

This also helps to other community members who face similar issue.

Hello @shalini shivaram,

Please mark the solution to posts which helps you to resolve your query.

This also helps to other community members who face similar issue.

Solution

Hi shalini,

Firstly you should create a Mail Component in (Reactive Or Triditional web application).

After that Go to process section and create a timer & Call the email server action 



Set Some Prop:

Go To Schedule:


Thanks

Md Mansur

Hi Mansur,

I tried the this method, you see in file

How to I send this to all the candidates mail?




recruitmentapp.oml

Hey @shalini shivaram please made these correction in your send mail server action


Hi @Jitendra Kumar I'm not receiving the mail

May i see the whole configuration of your application ??

so i can provide you the solution 

Hi Shalini,


You must do the Email configuration is your service center as below. Apply the SMTP server & Port as per your account.

SMTP Details

For Gmail

  • Gmail! SMTP server address: smtp.gmail.com
  • Gmail! SMTP port: 465
  • Gmail! SMTP user name: your Gmail! Mail account
  • Gmail! SMTP password: your Gmail! Mail password

For Yahoo 

  • Yahoo! SMTP server address: smtp.mail.yahoo.com
  • Yahoo! SMTP port: 465
  • Yahoo! SMTP user name: your Yahoo! Mail account
  • Yahoo! SMTP password: your Yahoo! Mail password

Post applying the Email configuration, run the timer and check the Logs from service center->Monitoring to identify the success/failure.

Regards,

Vinod

Hi Vinod,

I reset my SMTP configuration to this

After running,  In the monitoring its failing


Regards,

Shalini

Hello @shalini shivaram,

You are using your personal google account to sent mails that's why above error is throwing.

To overcome form this you have to enable less secure app access functionality in google account.

Less secure app option in google account allows external/third party apps to operate google account.

Path to activate less secure app:-

i. Google account setting

ii. Security

iii. Under security tab you will found Less secure app access.


Regards,

Narendra Bhangale.

Hi @Narendra Bhangale 

I Have already enabled the less secure app settings in my google account, yet I'm facing the same issue

Hi @shalini shivaram,

I am using below email configurations and working fine for me.

Once try different SMTP port number.

Simply you smtp details are not valid. You should use some valid SMTP details to send the email. From where you got these SMTP details.


I got it from google


shalini 


have you tried 587 for TLS.

best regrards



Thank you, I finally got it!

But how to I send it to all the candidates mail?


Thank you, I received the mail with the help of this solution.

Hello @shalini shivaram,

Please mark the solution to posts which helps you to resolve your query.

This also helps to other community members who face similar issue.

I can  finally send the mails now, but I'm unable to send it to all the candidates mail. 

I added the dependency between these two app 

recruitmentapp.oml

traditional web app

Emailtemplate.oml

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