The title says it all. I have checked everything. I have AT&T DSL, i know my user name and password. At&t does require SSL, so I enabled that, I have the correct port # for outgoing messages. Everything seems to be find, the only concern I have is the host name. On the at&t site I linked below, it says the outgoing smtp is outbound.att.net . The book always reverences it as smtp.yourprovider.net and not that there could be a outgoing. in front of the provider. Regardless I get errors either way.
I changed my password and e-mail address for privacy reasons, but I checked both the incoming and outcoming several times, they re correct valid.
Link to At&t site :
http://www.att.com/esupport/article....id=3KDdTsPEBp2
my web.config file:
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<pages theme="Monochrome">
<controls>
<add tagPrefix="Wrox" tagName="Banner" src="~/Controls/Banner.ascx" />
</controls>
</pages>
<compilation debug="true" targetFramework="4.0"/>
</system.web>
<system.net>
<mailSettings>
<smtp deliveryMethod="Network"
from="Brandon Grunwell <
[email protected]>">
<network enableSsl="true" userName="
[email protected]" password="correctpassword" port="465" host="smpt.outbound.att.net"/>
</smtp>
</mailSettings>
</system.net>
</configuration>
Email.aspx file:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net.Mail;
public partial class Demos_Email : BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
MailMessage myMessage = new MailMessage();
myMessage.Subject = "Test Message";
myMessage.Body = "Hello world, from Planet Wrox";
myMessage.From = new MailAddress("
[email protected]", "Brandon Grunwell");
myMessage.To.Add(new MailAddress("
[email protected]", "Clem"));
SmtpClient mySmtpClient = new SmtpClient();
mySmtpClient.Send(myMessage);
}
}
error message in browser:
Server Error in '/' Application.
The remote name could not be resolved: 'smpt.outgoing.att.net'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The remote name could not be resolved: 'smpt.outgoing.att.net'
Source Error:
Line 18:
Line 19: SmtpClient mySmtpClient = new SmtpClient();
Line 20: mySmtpClient.Send(myMessage);
Line 21: }
Line 22: }
Source File: c:\BegASPNET\Site\Demos\Email.aspx.cs Line: 20
Stack Trace:
[WebException: The remote name could not be resolved: 'smpt.outgoing.att.net']
System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) +6127328
System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) +314
System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) +21
System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) +322
System.Net.Mail.SmtpConnection.GetConnection(Servi cePoint servicePoint) +146
System.Net.Mail.SmtpTransport.GetConnection(Servic ePoint servicePoint) +222
System.Net.Mail.SmtpClient.GetConnection() +50
System.Net.Mail.SmtpClient.Send(MailMessage message) +1496
[SmtpException: Failure sending mail.]
System.Net.Mail.SmtpClient.Send(MailMessage message) +1829
Demos_Email.Page_Load(Object sender, EventArgs e) in c:\BegASPNET\Site\Demos\Email.aspx.cs:20
System.Web.Util.CalliHelper.EventArgFunctionCaller (IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Cal lback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225
The error message in the browser leads me to believe that the smpt.outgoing.att.net is not correct. I have tried several variations,m including just using smpt.att.net or just outgoing.att.net with no .smpt in from of it, smpt.outgoing.yahoo.att.net and smpt.yahoo.att.net since the att tech guy initially had me log in to my att email via att.yahoo.com.
...help, please