1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Sending mail with ASP.NET

Discussion in 'Plesk 10.x for Windows Issues, Fixes, How-To' started by Zoltan, Sep 11, 2011.

  1. Zoltan

    Zoltan Guest

    0
     
    Hello,

    I want to send a confirmation mail to my users. I'm using ASP.NET MVC 2 and this is my code:

    But I receive this exception when executing the above code:
    Thanks in advance
     
  2. SvetlanaS

    SvetlanaS Regular Pleskian

    16
    30%
    Joined:
    Sep 5, 2011
    Messages:
    110
    Likes Received:
    0
  3. Zoltan

    Zoltan Guest

    0
     
    I have authenticated as you can see in my code:

     
  4. SvetlanaS

    SvetlanaS Regular Pleskian

    16
    30%
    Joined:
    Sep 5, 2011
    Messages:
    110
    Likes Received:
    0
    What kind of mail Server used by SmtpClient class?
    You are able to switch to this mail server: Home>Tools & Settings>Server Components>Select default Webmail component
     
    Last edited: Sep 22, 2011
  5. Zoltan

    Zoltan Guest

    0
     
    Thank you for your help. The problem was in the settings of the SMTP server. It was configured to deny relay from any incoming IP!
    I've found the solution here
     
Loading...