在ASP.NET C#webform中发送SMS。 [英] Sending SMS in ASP.NET C# webform.

查看:65
本文介绍了在ASP.NET C#webform中发送SMS。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是编程新手,我真的需要帮助...我创建了一个注册表,用户需要输入他/她的电话号码,OTP将被发送到用户电话和短信。请不要知道如何发送短信,请各位能帮助我解决问题的人给予帮助。提前谢谢



我尝试了什么:



Null。 .................................................. ..........................................

I am new to programming and I really need help please... I created a registration form and a user is expected to input his/her phone number and an OTP will be send to the user phone and SMS. Please I don't have any know on how to go about send the SMS, please I will appreciate help from any who can help me out on how to about. Thank you in advance

What I have tried:

Null.............................................................................................

推荐答案

开始使用

这里有一个快速点,可以帮助您开始尝试。

发送一个短信可以像发送电子邮件一样简单。

这是对的。您实际上可以通过电子邮件向手机发送短信。

但是,您必须知道电话服务的格式。

例如,Verizon无线是10位数后跟@ vtext.com(5551234567@vtext.com)这是官方的瘦身:使用PC上的电子邮件发送短信关于Verizon [ ^ ]



工作其他方式

你也可以转周围并发送来自大多数txt应用程序的电子邮件。您只需输入联系人作为电子邮件地址。



如何才能让您入门?

那里有几种方法可以帮助你。



1)首先,您可以开始发短信到您的电子邮件地址并打开电子邮件标题,然后您应该能够看到txt的返回地址。当您这样做时,您将学习可以从标题中提取的电子邮件地址,这样您就可以将txt返回给发短信的人。



2)在.NET中发送电子邮件非常容易(也可能是其他技术)。



我想.NET中的旧SmtpClient已经过时但你可以试试开源MailKit GitHub - jstedfast / MailKit:用于IMAP,POP3和SMTP的跨平台.NET库。 [ ^ ]



这个至少会让你开始。
To Get Started
Here's a quick point to get you started with something to try.
Sending an SMS can be as easy as sending an email.
That's right. You can actually send your phone a text message via email.
However, you have to know the format for the phone service.
For example, Verizon wireless is the 10 digit number followed by @vtext.com (5551234567@vtext.com) Here's the official skinny on that: Send text messages using email on a PC | About Verizon[^]

Works The Other Way Too
You can also turn that around and send an email from most txt apps. You just type in the contact as an email address.

How Can This Get You Started?
There are a couple of ways that can help you.

1) First of all, you can start texting to your email address and turn email headers on and then you should be able to see the return address for the txt. When you do then you'll learn the "email" address that you can pull out of the headers so you can return a txt to the person who texted you.

2) Sending an email message is extremely easy in .NET (and probably other technologies too).

I guess the old SmtpClient in .NET is obsolete but you can try the open source MailKit GitHub - jstedfast/MailKit: A cross-platform .NET library for IMAP, POP3, and SMTP.[^]

This will at least get you started.


这篇关于在ASP.NET C#webform中发送SMS。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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