forked from webgrid/WebGrid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GridFormMail.cs
89 lines (70 loc) · 2.21 KB
/
GridFormMail.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
Copyright © Olav Christian Botterli.
Dual licensed under the MIT or GPL Version 2 licenses.
Date: 30.08.2011, Norway.
http://www.webgrid.com
*/
#region Header
/*
Copyright © Olav Christian Botterli.
Dual licensed under the MIT or GPL Version 2 licenses.
Date: 30.08.2011, Norway.
http://www.webgrid.com
*/
#endregion Header
namespace WebGrid
{
using System.ComponentModel;
using System.Web.UI;
/// <summary>
/// Settings class for sending webgrid forms as an e-mail.
/// </summary>
[PersistenceMode(PersistenceMode.InnerProperty)]
[Description("Settings class for sending webgrid forms as an e-mail.")]
[MergableProperty(false)]
[Browsable(false)]
public class GridFormMail
{
#region Properties
/// <summary>
/// Sets or gets the emailaddresses (e-mail addresses Separated by semicomman ";") should receive this grid form on successfully insert.
/// </summary>
/// <remarks>
/// To add an email address used in your grid form use '[ColumnID]'. Example is EmailFormOnUpdate = "olav@webgrid.com;[EmailAddress]"
/// </remarks>
public string EmailAdresses
{
get; set;
}
/// <summary>
/// Sets or gets SmtpServer use this settings to override the smtpserver set in 'WGSMTPSERVER'
/// </summary>
public string SmtpServer
{
get; set;
}
/// <summary>
/// Sets or gets the subjects for the e-mail, if no subject is set the title of the grid is used.
/// </summary>
/// <remarks>
/// </remarks>
public string Subject
{
get; set;
}
#endregion Properties
#region Methods
/// <summary>
/// Returns a <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>.
/// </summary>
/// <returns>
/// A <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>.
/// </returns>
/// <filterpriority>2</filterpriority>
public override string ToString()
{
return "No design support";
}
#endregion Methods
}
}