Send Mail Module : Automation Modules

Send Mail Module

Download and share automation modules.

Send Mail Module

Postby Support Team » Thu Jun 30, 2011 1:42 pm

Use this module at any position within your test suite to get informed about test runs by email. This is especially useful for overnight test executions on runtime machines.

Usage:
  1. Download the "SendMail.cs" file to your computer and import it into your project by right-clicking your project in Ranorex Studio and choose "Add" -> "Existing Item..."
  2. Drag & Drop the module to your test case and define the variables by binding them to a parameter in your test case

    Variables:
    To (required)
    The email address of the message recipient.

    From (required)
    The email address of the message sender.

    ServerHostname (required)
    The hostname of the mail server.

    ServerPort
    The port of the mail server. Default is 25.

    Subject
    The subject of the message.

    Message
    The description of the message.
Attachments
SendMail.cs
Send Mail Module
(3.03 KiB) Downloaded 190 times
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Send Mail Module

Postby omayer » Fri Aug 26, 2011 2:59 pm

How to send .rxlog file as attachement.
Thanks,
Beginner
Tipu
omayer
 
Posts: 240
Joined: Thu Oct 28, 2010 7:14 pm

Re: Send Mail Module

Postby Support Team » Mon Aug 29, 2011 9:38 am

Hi,

Therefore please take a look to this link
http://csharp.net-informations.com/comm ... chment.htm
I justed used Google to find this info.

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Send Mail Module

Postby omayer » Mon Aug 29, 2011 2:31 pm

Thank you Peter, It's worked
Beginner
omayer
 
Posts: 240
Joined: Thu Oct 28, 2010 7:14 pm

Re: Send Mail Module

Postby Support Team » Thu Dec 22, 2011 12:44 pm

If your server requires basic authentication (instead of using the standard Windows authentication), i.e. a user name and password, just edit following part in the the SendMail method of the module:
SmtpClient smtp = new SmtpClient(ServerHostname, int.Parse(ServerPort));
smtp.Credentials = new System.Net.NetworkCredential("userName", "password");
smtp.Send(mail);

Regards,
Alex
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation Modules

Who is online

Users browsing this forum: No registered users and 0 guests

cron