Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Biz.EmailPools
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陶然
Kivii.Biz.EmailPools
Commits
faedfeab
Commit
faedfeab
authored
Apr 10, 2024
by
陶然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加代码注释
parent
88c8fe0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
Extensions.cs
Src/Extensions.cs
+18
-0
No files found.
Src/Extensions.cs
View file @
faedfeab
...
...
@@ -16,6 +16,11 @@ namespace Kivii.EmailPools
{
private
static
Dictionary
<
string
,
SmtpConfig
>
_smtpConfigs
=
new
Dictionary
<
string
,
SmtpConfig
>();
/// <summary>
/// 获取Smtp配置
/// </summary>
/// <param name="FromAddress"></param>
/// <returns></returns>
public
static
SmtpConfig
GetSmtpConfig
(
this
string
FromAddress
)
{
//默认key
...
...
@@ -54,6 +59,11 @@ namespace Kivii.EmailPools
return
null
;
}
/// <summary>
/// 通过emialPool找到对应的附件
/// </summary>
/// <param name="pool"></param>
/// <returns></returns>
public
static
List
<
Attachment
>
GetAttachments
(
this
EmailPool
pool
)
{
var
conn
=
KiviiContext
.
GetOpenedDbConnection
<
EmailPool
>();
...
...
@@ -74,6 +84,14 @@ namespace Kivii.EmailPools
}
return
rtns
;
}
/// <summary>
/// 发送email
/// </summary>
/// <param name="pool"></param>
/// <returns></returns>
/// <exception cref="Exception"></exception>
public
static
EmailPool
Sending
(
this
EmailPool
pool
)
{
var
config
=
pool
.
FromAddress
.
GetSmtpConfig
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment