Skip to Content
author's profile photo Former Member
Former Member

Unable to send mails

Dear All,

This forum has always helped a lot to me, so today also I have come up with the hope.

I have created code to send mails to my employees say 150 employees. The code runs perfectly however sometimes it sends 10 mails, sometimes 70 sometimes 26, thus I am getting random count. At a time I cannot send mails to 150 employees in a day. Neither I get any error message nor any exception in code. Whenever I set count on status bar to cross check how many records have been processed then it shows me count of 150 but not able to send mails to all of them.

I am not able to guess why such thing is happening. I applied breakpoints to each line but no use.

Can anybody tell me what could be the cause???


Vinod Memane.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jul 26, 2014 at 03:12 PM

    Hello Vinod,

    Check send email status in transaction SOST.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Dear Eric and Mithun,

      Thank you so much for your valuable time and quick response.

      I got the cause and solution to this problem is also simple.

      Casue : The issue was caused due to the SMTP server of gmail. As per google's policy we cannot send mails in bulk if we are a normal account holder on gmail and we use same constant subject line for bulk mails. If we use, then after certain mails (Don't know exactly how many 😔), google will treat it as spam and block the mails you send.That information I got from my ISP.

      Solution : I changed the subject line for each mail and kept it variable so that on each mail I will get the different subject lines for different mails and it worked. Now I am able to get the whole mails.


      Vinod Memane

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.