发送电子邮件和短信 [英] Sending email and SMS

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

问题描述

我正在做一个使用vs2005在Windows 7中将电子邮件发送到电子邮件帐户并将短信发送到手机的项目.
我有免费的SMTP服务器可以发送它.程序已成功执行,但我没有将消息和短信发送到各自的帐户.

在Windows 7中是否可以通过其他方式发送此消息?

请通过[删除电子邮件和电话号码.]

I am doing a project for sending email to email account and sms to mobile in windows 7 using vs2005.
I have free SMTP server for sending it. Program is successfully executed but I do not get the message and sms to respective account.

Is there any possible way to send this in another way in windows 7?

Please reply me at [Email and phone number removed.]

推荐答案

同时发送电子邮件和电子邮件给我. SMS通过SMTP发送.

1.必须将MailMessage类的收件人"属性与提供者的子域一起分配给收件人电子邮件(用于发送电子邮件)或手机号码(用于发送SMS).例如,贝尔加拿大的手机号码应为"mobilenumber@txt.bell.ca",罗杰斯的手机号码应为"mobilenumber@pcs.rogers.com"等.您可以检查本地移动服务提供商的子域发送短信

2.执行电子邮件程序的计算机必须具有启用SMTP的IP地址才能发送电子邮件或SMS

希望这会有所帮助.
Both Email & SMS are sent via SMTP.

1. The ''To'' property of MailMessage class must be assigned to the recipient email (for sending email) or the mobile number (for sending SMS) along with the provider''s sub domain. For example, Bell Canada mobile numbers should be ''mobilenumber@txt.bell.ca'', Rogers mobile numbers should be ''mobilenumber@pcs.rogers.com'' etc. You can check your local mobile providers for their sub domain for sending SMS

2. The computer where you execute your email program must have a SMTP enabled IP address to send email or SMS

Hope this will help.


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

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