如何创建发送电子邮件的应用程序 [英] How to create an application that sends Email

查看:91
本文介绍了如何创建发送电子邮件的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请快速回复我:doh::doh::confused :: confused :: confused :: confused:

Please reply me fast :doh: :doh: :confused::confused::confused::confused:

How to create an application that sends Emails?

推荐答案

使用默认的SMTP从C#应用程序发送电子邮件 [ ^ ]
检查一下.我想这会为您提供帮助.
Sending Emails from C# Application using default SMTP[^]
check this. I think this will help you.


您还没有详细描述,但是从我所了解的主题来看,您想从应用程序发送电子邮件.
要发送电子邮件,您需要具有smtp服务器和smtp端口号.

以下是添加按钮单击事件的代码

声明变量[主题,mail_body,smtpserver,smtpport,接收者,邮件,发送者]

You have not describe in detail, but from the subject what i understand is you want to send email from application.
To Sent email you need to have smtp server and smtp port no.

below is the code to add on button click event

declare variables [subject, mail_body, smtpserver, smtpport, receiver, mail, sender]

mail_body="This is my first mail from application"
smtpserver="1.1.1.1"; //You server ip
smtpport=25;  //your server port
sender="sender@check.com" ;  //sender id
receiver="receive@a.com";    //receiver id
Subject="Test";

mail=Createobject("Jmail.smtpmail");
mail.ServerAddress=smtpserver + ":" + smtpport;
mail.sender=sender;
mail.subject=subject;
mail.AddRecepient(receiver);
mail.contentType="text/html";
mail.ISOEncodeHaders=False;
mail.contentTransferEncoding="8bit";
mail.body=mail_body;
mail.priority=3;
mail.execute();
mail=nothing;



您也可以参考
http://articles.techrepublic.com.com/5100-10878_11-5794511.html [ ^ ]有关smtp的更多信息



You can also refer
http://articles.techrepublic.com.com/5100-10878_11-5794511.html[^] for more information on smtp


我完全无法回答您的问题..
但一定要浏览此站点,您一定会找到解决方案的..
http://www.aspnetemail.com/Examples.aspx [
I couldnt get ur question fully ..
but go through this site surely u will get the solution..
http://www.aspnetemail.com/Examples.aspx[^]


这篇关于如何创建发送电子邮件的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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