Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • nelsenlim 70 posts 71 karma points
    Feb 25, 2011 @ 04:12
    nelsenlim
    0

    SmtpClient.SendAsync

    Hi, i am utilizing SmtpClient.SendAsync in umbraco to send "forgot-password" mails and have execute it without a problem.

    One fact that i just realize is that calling SendAsync is ASP.Net don't really do it async (meaning the page is not rendered back to the client until the mailing completes), example sending an email takes 4 seconds to complete.

    The page does not render until the SendCompletedEventHandler is complete
    Basically what i want is for the page to render instantly without having to wait whether the email sending is successful or not.

    Is that possible or do i need another solution.
    Ps: I want to do all this is the server if possible without using AJAX.

    Thank u

Please Sign in or register to post replies

Write your reply to:

Draft