发送电子邮件失败.使用Google Apps帐户发送电子邮件 [英] Send Email Failed. Sending email with google apps account

查看:128
本文介绍了发送电子邮件失败.使用Google Apps帐户发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Godaddy Windows托管和Google应用程序接收电子邮件.
以下代码用于通过与我们联系"表单发送邮件.

http://www.codeproject.com/Tips/291669/Send-mail-using-Google-Apps

当我在本地运行此应用程序时,它可以正常工作,并且邮件可以传递到目的地,
但是当我将此应用程序上载到实时服务器时,会出现以下错误.

I am using godaddy windows hosting and google apps for email.
following code is for sending mail from contact us form.

http://www.codeproject.com/Tips/291669/Send-mail-using-Google-Apps

When I run this application in local, it works fine and mail delivers to destination,
but when i upload this application to live server, it gives following error.

Send Email Failed.Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

推荐答案



Godaddy不允许Gmail帐户发送邮件

我遇到了同样的问题....

更好的方式配置您的域电子邮件ID
Hi,

Godaddy Don''t Allow Gmail Account to Send Mail

I Have Faced Same Problem....

Better Way Configure your Domains Email Id


I have got solution by setting hostname as
relay-hosting.secureserver.net


这篇关于发送电子邮件失败.使用Google Apps帐户发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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