Sending mails in diferent ways

hello to all

I would like to share with you my test that I’ve made regarding sending mails in uipath.

i have try 3 way:

  1. using the gmail activity:
  2. using the smtp activity;
  3. using the send mail activity in api google gmail

so for the first one i have found that it’s very easy to use. I had to connect to a gmail account ( action that is done when designing in studio and just for the first time) and then had to indicate the data that is always needed ( to, body, etc). It looked very easy to me. However, when I ran it I had not got any mail in the destination account. however i found that in my draft area in my gmail account i had the mail that i thought that i had sent. why? Because along with the data that’s needed to send the mail there is also a check box that is checked and it means that when the activity runs the mail will be sent to the draft area of the sending account!! When I had unchecked it I had the mail sent to the destination account.

for the second way, it was a little more difficult. the smtp activity for itself is not complicated to fill however what you must do before can be ( at least for me it was…). if you are not very concerned with security issues then probably in your google account you had not activated the 2 way identification. In that case, before you run such activity you must activate in google account the option of accepting least security applications. it runs but ( i think) security issues are a little forgotten then. if however i’ve got the 2 way identification that activity will not run, ending with error messages such as bad credentials… I have used the application keys ( always in the google account). After that I had a 16 key that was used beside your sending account. ( properties panel). working!

for the last one you must prepare very well what you must do before running the activity in uipath.

( i must say that i saw a very well done video of Mr. Kaqesh where he explain what to do before

API | UiPath Gmail API | UiPath Email Automation - YouTube)

so

  1. you must go to console.cloud.google.com
  2. get the gmail library
  3. activate that library
  4. activate the oauth process ( authorization authentication) for that gmail api ( which will be asked only one time when you run the activity)
  5. create credentials to be used in your activity ( when you are designing it in studio) and copy it ( client id and secret key)
  6. and finally use those credentials at design time in the properties panel.

it worked also.

now, I am wondering which of these ways is better then the others or can I use whatever I want?

thank you|

1 Like

Hello @Antonio_Campos1!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff

thank you… however my mail was not properly a question (it also has) but rather to tell others what i’ve tested in sending mails.

system via UiPath Community Forum <notifications@uipath.discoursemail.com> escreveu no dia domingo, 2/10/2022 à(s) 17:12:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.