VB.Net使用Outlook发送电子邮件 [英] VB.Net Sending an Email Using Outlook

查看:180
本文介绍了VB.Net使用Outlook发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

后端:Ms Access

前端:Vb.Net或Asp.Net或Powershell

邮件:Outlook或服务器端(gmail或yahoo)



我需要从数据库中检索数据并向用户发送电子邮件。



场景示例:



数据库如下所示,



Product_ID Product_Name Date_Of_Purchase Email_ID

p00001 Mouse 02/14/2013 thajuthemoon@gmail.com

p00002 KeyBoard 01/11/2013 thajudeentaj@gmail.com

p00003 Cleaner 01/29/2013 thajuthemoon@gmail.com

p00004 Monitor 10/10/2012 thajudeen301190@gmail.com





输出:

--------

我需要如下,

在Outlook中查看。

示例1:

来自:thajuthemoon@gmail.com

致:thajuthemoon@gmail.com





产品编号产品名称购买日期

p00001鼠标02/14/2013

p00003清洁剂01 / 29/2013





例2:



来自:thajuthemoon @ gmail.com

To:thajudeentaj@gmail.com





产品编号产品名称购买日期

p00002 KeyBoard 01/11/2013



在一封邮件中,特定用户购买的所有商品都应该如上所述。

它应该是循环播放,下一个邮件应该转到下一个用户,下一个用户是下一个用户。



任何人都可以帮我解决这个问题。

我可以通过提供输入来检索和发送邮件。

我需要它,不提供输入,它应该是自动的。



如果有人知道这个程序该怎么做,请告诉我。或者任何人都可以建议我怎么做。

你可以联系我@

[发送电子邮件已删除]





问候,

Thajudeen

Back End : Ms Access
Front End : Vb.Net or Asp.Net or Powershell
Mailing : Outlook or server side(gmail or yahoo)

I need to retrieve the data from database and send an email to the user.

Scenario for Example:

Database looks like below,

Product_ID Product_Name Date_Of_Purchase Email_ID
p00001 Mouse 02/14/2013 thajuthemoon@gmail.com
p00002 KeyBoard 01/11/2013 thajudeentaj@gmail.com
p00003 Cleaner 01/29/2013 thajuthemoon@gmail.com
p00004 Monitor 10/10/2012 thajudeen301190@gmail.com


Output:
--------
I need like below,
View in Outlook.
Example 1:
From : thajuthemoon@gmail.com
To : thajuthemoon@gmail.com


Product ID Product Name Date of Purchase
p00001 Mouse 02/14/2013
p00003 Cleaner 01/29/2013


Example 2:

From : thajuthemoon@gmail.com
To : thajudeentaj@gmail.com


Product ID Product Name Date of Purchase
p00002 KeyBoard 01/11/2013

In one mail what are all the items the particular user purchased, it should go like above.
It should be in loop, next mail should go to the next user, next user next user.

Can anyone help me in this issue.
I am able to retrieve and send the mail by giving input.
I need it, without giving in input, it should be automated.

Please let me know if anyone know this program how to do, or any can suggest me how to do.
You can reach me @
[Email Deleted]


Regards,
Thajudeen

推荐答案

您可以使用Exchange Web服务从Outlook发送邮件。以下链接将为您提供帮助。

http://code.msdn .microsoft.com / Send-Email-with-Exchange-50189e57 [ ^ ]



MSDN上的示例

http://msdn.microsoft.com/en-us/library/ms878​​112 [ ^ ]

希望这有助于
You can send mail from Outlook by using Exchange web Services. The below link will help you.
http://code.msdn.microsoft.com/Send-Email-with-Exchange-50189e57[^]

Examples on MSDN
http://msdn.microsoft.com/en-us/library/ms878112[^]
Hope this helps


这篇关于VB.Net使用Outlook发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆