PHP - SMTP

I am new to UiPath and have used the SMTP activity to send an email with an attachment. I manually attached the PDF report, and it worked fine.

Now, I have a PHP dashboard, and one of its pages contains this PDF report. I want this report to be automatically sent via SMTP on the first day of every month.

Can you help me with the steps? Please note that I am using UiPath 2025.

Hi @halhaddabi

→ Use UI Automation to Login to PHP dashboard
→ Use UI Activities to download the PDF report.
→ Store the path of the downloaded PDF report in a String variable.
→ Then use the Send SMTP Mail Message activity to send the Attachment to the target audience.

Note: For using both UI Activities and mail activities, install the UiPath.UIAutomation.Activities and UiPath.Mail.Activities package from Manage Packages in Studio.

Hope it helps!!

Hi @halhaddabi , Welcome to UiPath.

– Use HTTP Request activity if the PDF has a direct URL.
–Alternatively, use Browser automation (Open Browser, Click, Download File) if the PDF is dynamically generated or behind login.

and then Use Send SMTP Mail Message activity to send the email. Attach the downloaded PDF using the file path (DownlededPdfPath).

Thank you, thats works fine

1 Like

Great.! Make the post Mark as solution to close the loop… @halhaddabi

Happy Automation!!