Community discussion forum

Sending email from ASP.NET

This is a comment thread discussing Sending email from ASP.NET
  • 9 years ago

    This thread is for discussions of Sending email from ASP.NET.

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 2 years ago

    I have a problem. The script only works when the SMTP server = localhost
    It wont work with my server name EIBERGEN01 or the IP adres = 192.168.3.5
    Could someone explain to me why.

  • 2 years ago

    when using the code in asp.net and while clikcing Send button :
    Err :The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for nshanmugaraj@gmail.com
    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.Runtime.InteropServices.COMException: The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for nshanmugaraj@gmail.com


    Source Error:



    Line 20:            mailObj.Body = MsgBody.Text
    Line 21:            SmtpMail.SmtpServer = "localhost"
    Line 22:            SmtpMail.Send(mailObj)
    Line 23:            End Sub
    Line 24:        </SCRIPT>



    Source File: D:\ASPdotNET\Email\WebForm1.aspx    Line: 22






    I am new to asp.net .. can u kindly rectify my doubt..


Post a reply

Enter your message below

Sign in or Join us (it's free).