如何使用Gmail的smtp服务器发送视频 [英] how to send videos using smtp server of Gmail

查看:464
本文介绍了如何使用Gmail的smtp服务器发送视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,

我是asp.net的初学者我需要帮助...

使用gmail smtp服务器我waz尝试发送图像和视频..

i可以发送图像静态方式即(新附件(MapPath(a.jpg)))不是动态的方式使用 fileupload 我试图发送不同的图像,但它不工作......

其他问题是我甚至想用smtp服务器发送视频

所以请帮助我解决这个问题..

谢谢

解决方案

查看 MSDN [ ^ ] 。您需要使用StreamReader为附件媒体创建流(无论是视频,图像等)。


hey,
i'm beginner to asp.net i need a help ...
using gmail smtp server i waz trying to send images nd videos..
i can send the image static way i.e (new Attachment(MapPath("a.jpg"))) not in dynamic way using fileupload i was trying to send different images but its not working...
other issue is i even want to send video using smtp server
so plz help me abt thiz issues..
thank you

解决方案

Look at the documentation on MSDN[^]. You need to use the StreamReader to create a stream for the attachment media (be it video, image etc.)


这篇关于如何使用Gmail的smtp服务器发送视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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