Page view counter

The email was not sent. Contact the system administrator for further details.

Last post 08-29-2008 10:58 AM by nooblit89. 22 replies.

Sort Posts:

  • The email was not sent. Contact the system administrator for further details.

    02-09-2008, 5:33 AM
    • Loading...
    • Zisis
    • Joined on 02-05-2008, 11:56 AM
    • Posts 16

    This is the message when I try to send a respond to my ad.

     

    which is the solution???

     

    My host is 1&1

     

    Thanks in advance 

  • Re: The email was not sent. Contact the system administrator for further details.

    02-09-2008, 9:46 AM
    • Loading...
    • ashmetry
    • Joined on 09-26-2007, 7:30 PM
    • Houston, TX
    • Posts 274

    Check the smtp mail settings in the web.config.

    Search for MAIL and you'll find it. You will then need to contact 1&1 to know whats the ip user/pass for the smtp server

    -Ash
    Web:   www.love2trade.com
    Blog:   blog.love2trade.com

    Please remember to click "Mark as Answer" on this post if it helped you.
  • Re: The email was not sent. Contact the system administrator for further details.

    02-10-2008, 12:25 PM
    • Loading...
    • Zisis
    • Joined on 02-05-2008, 11:56 AM
    • Posts 16

     Is someone knows an free smtp server to do my job?

     The 1&1 told me that they have some problems with their smtp server, they give me some other server, but the don't give me user name and password.

     

    My nerves.............
     

  • Re: The email was not sent. Contact the system administrator for further details.

    02-10-2008, 6:39 PM
    • Loading...
    • Zisis
    • Joined on 02-05-2008, 11:56 AM
    • Posts 16

     Because my smtp has SSL I must put in some file this code:

    client.EnableSsl = true;

     

     

    Do you know where? 

  • Re: The email was not sent. Contact the system administrator for further details.

    02-11-2008, 10:25 AM
    • Loading...
    • ashmetry
    • Joined on 09-26-2007, 7:30 PM
    • Houston, TX
    • Posts 274

    Add it in the the code in  App_code\BLL\Ads.cs & App_code\BLL\Maintenance.cs for

    SmtpClient client = new SmtpClient();
    client.EnableSsl = true;
    client.Send(mMailMessage);
                   

    -Ash
    Web:   www.love2trade.com
    Blog:   blog.love2trade.com

    Please remember to click "Mark as Answer" on this post if it helped you.
  • Re: The email was not sent. Contact the system administrator for further details.

    02-11-2008, 5:49 PM
    • Loading...
    • Zisis
    • Joined on 02-05-2008, 11:56 AM
    • Posts 16

     1&1 game me the smtp server and the port and they told to me that there is no need for pass or for username. Also they told me that the smtp server that they gave me has not SSL.

     

    I put in web.config code the smtp server and the port.....but I have the same massage....

     

    Because, I am newbie, is there any code that I must add in other files? or a right modification of web.config is enough for mail system of site to work?

     

    Thanks in advance 

  • Re: The email was not sent. Contact the system administrator for further details.

    02-11-2008, 5:59 PM
    • Loading...
    • ashmetry
    • Joined on 09-26-2007, 7:30 PM
    • Houston, TX
    • Posts 274

    Disable Custom Errors from the web.config and see the exception being thrown

    -Ash
    Web:   www.love2trade.com
    Blog:   blog.love2trade.com

    Please remember to click "Mark as Answer" on this post if it helped you.
  • Re: The email was not sent. Contact the system administrator for further details.

    02-11-2008, 6:00 PM
    • Loading...
    • darkknight187
    • Joined on 09-14-2006, 4:35 AM
    • Bothell, Washington
    • Posts 793

    Mine works by only making the modification to the web.config

    I am with godaddy, so you are going to need to change the port and smtp server, but give this a try.

    <system.net>

    <mailSettings>

    <smtp>

    <network host="relay-hosting.secureserver.net" port="25" defaultCredentials="true"/>

    </smtp>

    </mailSettings>

    </system.net>

    Good Luck

    Daniel

    Please remember to click “Mark as Answer” on the post that helps you.
    This can be beneficial to other community members reading the thread.
  • Re: The email was not sent. Contact the system administrator for further details.

    02-12-2008, 12:48 PM
    • Loading...
    • Zisis
    • Joined on 02-05-2008, 11:56 AM
    • Posts 16

    I set custom error to off but i don't take any error code because automatically the page says that:

    A problem occurred sending the email. Please contact the system administrator.

    My web.config code is:

     

    <system.net>

    <mailSettings>

    <smtp>

    <network host="mrelay.perfora.net" port="443" defaultCredentials="true"/>

    </smtp>

    </mailSettings>

    </system.net>

     

    but nothing works......I try to put defaultCredentials to false.......nothing happened....

    I delete defaultCredentials from web.config code..........nothing happened again......I have the same error....

     

    1&1 told me that mrelay.perfora.net hasn't got SSL, so there is no need for extra SSL code, and told that there is no need for user name or pass.....

     
    I really don;t know what to do.......



     

     

     


     

  • Re: The email was not sent. Contact the system administrator for further details.

    02-12-2008, 1:00 PM
    • Loading...
    • ashmetry
    • Joined on 09-26-2007, 7:30 PM
    • Houston, TX
    • Posts 274

    port 443 is the SSL port..

    So you either use 443 and enable SSL or use port 25 and do NOT use SSL.

    To see the error exception (Remove the try{} catch{} around the send mail method call) and leave customError to off

    -Ash
    Web:   www.love2trade.com
    Blog:   blog.love2trade.com

    Please remember to click "Mark as Answer" on this post if it helped you.
  • Re: The email was not sent. Contact the system administrator for further details.

    02-12-2008, 4:47 PM
    • Loading...
    • hulsw
    • Joined on 02-06-2008, 4:48 PM
    • Posts 2

    Darkknight,

    are you using "standard" godaddy or "deluxe" or what hosting?
    I have been fighting this same problem for weeks with GoDaddy standard hosting.
    Been reading all over the net and have not made any progress either.
    Some places in some forums some people say that we cannot ever get it to work with standard hosting. 

    I certainly don't know.


    Thanks in advance.

  • Re: The email was not sent. Contact the system administrator for further details.

    02-13-2008, 4:48 AM
    • Loading...
    • Zisis
    • Joined on 02-05-2008, 11:56 AM
    • Posts 16

     sorry, for asking again.......

     

    this is an example of my ads.cs code

     

            {
                bool sent = false;
                string from = String.Format("{0} <{1}>", senderName, senderAddress);
                try
                {
                    MailMessage m = new MailMessage(from, recipientEmail);
                    m.Subject = subject;
                    m.Body = message;
                    SmtpClient client = new SmtpClient();
                    client.Send(m);
                    sent = true;
                }
                catch
                {
                    // Consider customizing the message for the EmailNotSentPanel in the ShowAds page.
                    sent = false;
                }
                return sent;
            }

     

     

    What is must change (on try and catch) to see the error message  

     

    I try it with and without SSL true

  • Re: The email was not sent. Contact the system administrator for further details.

    02-13-2008, 10:07 AM
    • Loading...
    • ashmetry
    • Joined on 09-26-2007, 7:30 PM
    • Houston, TX
    • Posts 274

    Seriously !

    Remove the try and catch block. 

    MailMessage m = new MailMessage(from, recipientEmail);
    m.Subject = subject;
    m.Body = message;
    SmtpClient client = new SmtpClient();
    client.Send(m);
    sent = true;
     return false

    I would recommend reading more about try/catch if you are not sure what they do

    -Ash
    Web:   www.love2trade.com
    Blog:   blog.love2trade.com

    Please remember to click "Mark as Answer" on this post if it helped you.
  • Re: The email was not sent. Contact the system administrator for further details.

    02-13-2008, 11:32 PM
    • Loading...
    • darkknight187
    • Joined on 09-14-2006, 4:35 AM
    • Bothell, Washington
    • Posts 793

    Hulsw,

    I am using the deluxe account on godaddy, with 2 sql databases.

    Respond to ads works perfectly with that modification in web.config

    Please remember to click “Mark as Answer” on the post that helps you.
    This can be beneficial to other community members reading the thread.
  • Re: The email was not sent. Contact the system administrator for further details.

    02-13-2008, 11:38 PM
    • Loading...
    • darkknight187
    • Joined on 09-14-2006, 4:35 AM
    • Bothell, Washington
    • Posts 793

    Just for anyone still stuck this is also my code for the responce on bll/ads.vb

    Public Shared Function SendResponse(ByVal adId As Integer, ByVal senderName As String, ByVal senderAddress As String, ByVal comments As String) As Boolean

    Dim sent As Boolean = False

    Dim s As SiteSettings = SiteSettings.GetSharedSettings()

    Dim ad As AdsDataComponent.AdsRow = GetAdById(adId)

    If Not (ad Is Nothing) Then

    Dim adUser As MembershipUser = Membership.GetUser(ad.MemberName)

    If Not (adUser Is Nothing) Then

    Dim sb As New StringBuilder()sb.AppendFormat("A user has sent a response to your Listing '{0}' at {1}", ad.Title, s.SiteName)

    sb.AppendLine()

    sb.AppendLine()

    sb.AppendLine(
    "Property Link: " + ClassifiedsHttpApplication.SiteUrl + "ShowAd.aspx?id=" + ad.Id.ToString())

    sb.AppendLine()

    sb.AppendLine(
    "The contact information of the user is below:")

    sb.AppendLine()

    sb.AppendLine((
    "Name: " + senderName))sb.AppendLine(("Email: " + senderAddress))

    sb.AppendLine()

    sb.AppendLine(
    "User comments/questions:")

    sb.AppendLine(comments)

    sb.AppendLine()

    sb.AppendLine(
    "You can respond to the user by using the Reply feature of your email client.")

    sb.AppendLine()

    sb.AppendLine(s.SiteName)

    sb.AppendLine(ClassifiedsHttpApplication.SiteUrl)

     

    Dim from As String = String.Format("{0} <{1}>", senderName, senderAddress)

    </