问题描述
您好
我在通过SMTP发送CC邮件时遇到了一些麻烦。网站管理员从在线表单中获取他的邮件,在他的邮件中我可以看到谁应该被复制的电子邮件地址,但该人本人实际上并没有收到
网站管理员的消息的副本。
我尝试了各种各样的结合:
Hello
I am having some trouble with sending CC mail via SMTP. The Webmaster gets his mail from an online form and in his message I can see the email address of who is supposed to be copied in, but the person himself does not actually receive a copy of the
Webmaster's message.
I have tried various conjugations of this:
myMessage.CC.Add(New MailAddress("admin@mysite.com")) 'Webmaster's assistant
但它们不起作用。
Visual Studio中没有错误或我的Web托管服务出现服务器错误。
谢谢任何建议。
我尝试过:
我是尝试使用这样的东西:
but they don't work.
There are no errors either in Visual Studio or server errors from my Web hosting service.
Thanks for any advice.
What I have tried:
I was trying to use something like this:
Dim CC As MailAddress = New MailAddress()
但是我得到了新邮件地址的过载错误以蓝色下划线标出。
but I get an 'overload' error with New MailAddress underlined in blue.
推荐答案
Dim CC As MailAddress = New MailAddress("me@myemail.com")
再次感谢!
Thanks again!
这篇关于SMTP中的CC无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!