Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 16, 2012, 05:44:29 PM

Pages: [1]   Go Down
  Print  
Author Topic: Sending mail under .NET - Is blocking my own accounts  (Read 685 times)
next
Pong! (the videogame) Master
*****
Offline Offline

Posts: 21


« on: September 11, 2008, 04:09:30 AM »

Hi,

I can send mails using asp.net 2 to some account mails, but it is impossible to send mails to my own mail accounts of my domain.

Code:
     
Code:
            MiMensaje.To.Add("pepito@gmail.com")
            MiMensaje.Bcc.Add("user@mydomain.es"")
            MiMensaje.From = New System.Net.Mail.MailAddress("user@mydomain.es")
            MiMensaje.Subject = "My subject"
            MiMensaje.IsBodyHtml = False
           MiMensaje.Body = "bla bla bla bla"
            MiMensaje.Priority = System.Net.Mail.MailPriority.High
            Dim smtp As New System.Net.Mail.SmtpClient
            smtp.Host = "mail.myDomain.es"
            smtp.UseDefaultCredentials = False
            smtp.Credentials = New System.Net.NetworkCredential("user@mydomain.es", myPass)
            smtp.Send(MiMensaje)

The mails arrive ok to the addressee. But the copy never arrives to any of my accounts (account mail of my domain). If I put an account gmail, yahooo, etc. yes, they arrive ok....

Why does my domain block to his own accounts?

Any help?

regards
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: