Hello,
I am updating file in "C:\Users\testuser\Documents\test.txt" local machine with time taken to complete module group in Ranorex.
In TEARDOWN I am converting report file to pdf and sending through email. I would like to attach and send updated "test.txt" file along with that pdf.
I am using the attached Csharp file to send reports in form of pdf through email.
Can someone guide me, in attaching external file along with PDF report?
Thanks,
How to attach and send external file through email
How to attach and send external file through email
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to attach and send external file through email
Hello gowthamp,
You simply can add the file as an attachment, as you already did with the PDF:
Hope this information helps.
Sincerely,
Robert
You simply can add the file as an attachment, as you already did with the PDF:
Code: Select all
attachment = new System.Net.Mail.Attachment("LOCAL FILE PATH");
mail.Attachments.Add(attachment);
Sincerely,
Robert
Re: How to attach and send external file through email
Thanks Robert,
Now I came to know how to attach external files.
Now I came to know how to attach external files.