email problem new SMTP server

Discussion in 'ASP.NET / ASP.NET Core' started by lucy, Dec 8, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hello,

    I have a web application that sends an auto email when a user makes a change to a schedule. It use to work fine using the mail.website.com smtp server. I read the email news and followed the recommendation to change to smtp.website and I continue to be unable to send emails from within the web application. Any thoughts.

    Thank you,

    Lucy
     
  2. I am sorry, could you take a look at this code and tell meexactly how to solve the problem.


    Humbly





    Lucy





    for(int i=0;i<emailaddress.Count;i++)
    {
    // Response.Write("hello this is the message "+message);
    MailMessage msgMail=new MailMessage();

    // msgMail.To="[email protected]";
    msgMail.To=(string)emailaddress;

    msgMail.From="[email protected]";

    msgMail.Subject="schedule changes";

    string strBody=message;

    msgMail.Body=strBody;

    //SmtpMail.SmtpServer="smtp.napschedule.com";
    SmtpMail.SmtpServer="smtp.localhost";
    try
    {
    SmtpMail.Send(msgMail);
    }
     
  3. SmtpMail.SmtpServer="smtp.localhost";


    needs to change to ...

    SmtpMail.SmtpServer="localhost";



    Joel Thoms
    DiscountASP.NET
    http://www.DiscountASP.NET
     
  4. I have a similar problem, I am running a forum and the program requires a SMTP Server Loginname and SMTP Server Password in order for responses to be emailed to forum users. Can I use my adiscountASP.net account username and password as the SMTP username and password or does the SMTP server have a specific username and password? Thank you!
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page