Resources for IT Professionals > Dynamics Forums > CRM > How to send email as soon as send button is clicked
Ask a questionAsk a question
 

AnswerHow to send email as soon as send button is clicked

  • Wednesday, November 04, 2009 5:45 AMAFCC Inc - Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Which one of the configurations below will send the outgoing mail as soon as i click the Send Mail Button?

      <ProviderConfiguration deploymentId="5040f6af-5966-4b24-bd8c-e4698afdeef6">
        <ProviderAssembly>Microsoft.Crm.Tools.EmailProviders.dll</ProviderAssembly>
        <ProviderClass>Microsoft.Crm.Tools.Email.Providers.SmtpPollingSendEmailProvider</ProviderClass>
        <CrmServerUrl>http://crm.afccinc.com:5555/AFCCInc</CrmServerUrl>
        <CrmAuthMode>WindowsAuthentication</CrmAuthMode>
        <EmailServer>smtp.afccinc.com</EmailServer>
        <EmailAuthMode>Anonymous</EmailAuthMode>
        <UserId>c081d625-14xe-de11-9db2-13412341234</UserId>
        <UserId>1fb03350-8baf-de11-673471</UserId>
        <Target>smtp.afccinc.com</Target>
        <Direction>Outbound</Direction>
        <CacheCapacity>1024</CacheCapacity>
        <ConnectionTimeout>300000</ConnectionTimeout>
        <PollingPeriod>60000</PollingPeriod>
        <MaxMessageCount>1000</MaxMessageCount>
        <EmailPort>25</EmailPort>
        <EmailUseSsl>false</EmailUseSsl>
        <DeliveryMethod>Network</DeliveryMethod>
        <PendingStatusDelay>18000000</PendingStatusDelay> <-----------Set this one to 0 but did not help
        <SendingStatusDelay>3000000</SendingStatusDelay>  <-----------Set this one to 0 but did not help
        <CodePage>Utf-8</CodePage>
        <MaximumDeliveryAttempts>10</MaximumDeliveryAttempts>
        <BatchSize>5</BatchSize>
        <RequestBatchSize>5</RequestBatchSize>
      </ProviderConfiguration>
    </Configuration>

    http://afccinc.com?siteref=msdn

Answers

  • Wednesday, November 04, 2009 4:36 PMdarrenliuMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I believed it's milliseconds.  Which this is the setting for the email router to pull emails from Email. 60000 which is every 1 minutes. 

    If you have a super beefy server, it will be good. Otherwise it's going to cause performance. 

    Darren Liu | 刘嘉鸿 | MS CRM MVP | English Blog: http://msdynamicscrm-e.blogspot.com | Chinese Blog: http://liudarren.spaces.live.com

All Replies

  • Wednesday, November 04, 2009 6:17 AMAFCC Inc - Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I set the polling periond to 25 and it goes right away.

     Before
     <PollingPeriod>60000</PollingPeriod>

    After
      <PollingPeriod>25</PollingPeriod>


    Is 25 not 25 seconds ? Or is 2500 25 seconds ?

    http://afccinc.com?siteref=msdn
  • Wednesday, November 04, 2009 4:36 PMdarrenliuMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I believed it's milliseconds.  Which this is the setting for the email router to pull emails from Email. 60000 which is every 1 minutes. 

    If you have a super beefy server, it will be good. Otherwise it's going to cause performance. 

    Darren Liu | 刘嘉鸿 | MS CRM MVP | English Blog: http://msdynamicscrm-e.blogspot.com | Chinese Blog: http://liudarren.spaces.live.com