Welcome to Sign in | Join | Help
in
Home Forums Photos Downloads

Send Mail from .Net

Last post 02-27-2008, 2:07 AM by mobula. 2 replies.
Sort Posts: Previous Next
  •  02-06-2008, 12:33 AM 1331

    Send Mail from .Net

    I've a problem sending mail from Umbraco CMS. I get the attached error when I send the email. In the web config I tried to use these values for my smtp connection

     <add key="umbracoSmtpServer" value="mail.ultimahosts.com" />

     

    I don't know how to set this to work with login and password. Any help is greatly appreciated

     

    The requested name is valid, but no data of the requested type was found

    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.Sockets.SocketException: The requested name is valid, but no data of the requested type was found

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [SocketException (0x2afc): The requested name is valid, but no data of the requested type was found]
    System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) +362
    System.Net.Dns.Resolve(String hostName) +162
    DotNetOpenMail.SmtpServer.GetIPEndPoint() +31
    DotNetOpenMail.SmtpProxy.Open() +39
    DotNetOpenMail.SmtpServer.Send(ISendableMessage emailMessage, EmailAddressCollection rcpttocollection, EmailAddress mailfrom) +101
     

  •  02-06-2008, 8:21 PM 1334 in reply to 1331

    Re: Send Mail from .Net

    Try using "mail.yourdomain.com" instead of mail.ultimahosts.com.

    Also, you will need to use SMTP Authentication to send email through Ultima's mail servers.  I'm not familiar with Umbraco CMS, but if there are settings to enter an SMTP username and password use your domain email/password.


    William Eaton, MCSE
    iTech Computer Solutions, LLC
    www.itechcs.com
  •  02-27-2008, 2:07 AM 1405 in reply to 1331

    Re: Send Mail from .Net

    Did you solve this? I am having the same problem, sending mails through Umbraco.
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems