+ Reply to Thread
Results 1 to 9 of 9

Auto Mail Using outlook is Going through..

  1. #1
    Registered User
    Join Date
    09-26-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    31

    Auto Mail Using outlook is Going through..

    Dear All,

    I am in the urgent need of advise. I am trying a automate a mail to send a data in the Mailbody. Everything is working perfectly fine except the one step that is a sendkey command to send the mail. Please check below my code.

    Please Login or Register  to view this content.
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you this time but future violations could result in an infraction. --6StringJazzer


    Requesting Available experts to advise the best alternative for the problem.

    Thanks
    vineet
    Last edited by 6StringJazzer; 02-13-2017 at 03:51 PM. Reason: code tags

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Auto Mail Using outlook is Going through..

    Why don't you use .Send rather than messing about with the very unreliable SendKeys?
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    09-26-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    31

    Re: Auto Mail Using outlook is Going through..

    Hi,

    Thanks for your revert.

    Actually I tried using that as well. But using that it throws a Outlook popup that "Another programme is trying a send a mail on behalf of you". So each time I would have to allow this manually to surpass the warning. So i am looking for a way to automate this. So that each time we would not have to allow the mail manually.
    Thanks

  4. #4
    Registered User
    Join Date
    09-26-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    31

    Re: Auto Mail Using outlook is Going through..

    Hi Everyone,

    Any Suggestions. Urgently Need your help.

    Thanks

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,434

    Re: Auto Mail Using outlook is Going through..

    Actually I tried using that as well. But using that it throws a Outlook popup that "Another programme is trying a send a mail on behalf of you". So each time I would have to allow this manually to surpass the warning. So i am looking for a way to automate this. So that each time we would not have to allow the mail manually.
    Then that's the issue you should be researching, not how to create a messy workaround using SendKeys.

    In Outlook 2007 (might be a slightly different route in 2013):

    File | Options | Trust Center | Trust Center Settings | Programmatic Access | The default setting is: Warn me about suspicious activity when my antivirus software is inactive or out-of-date (recommended) ... tick that if it is not set.

    https://www.msoutlook.info/question/883

    And, obviously, make sure your AntiVirus software is up to date for this to be effective.

    Last note: please don't "bump" your thread after only 18 minutes from your last post (and 22 minutes after a response from someone else).

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Auto Mail Using outlook is Going through..

    Your post does not comply with Rule 3 of our Forum Rules: Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  7. #7
    Registered User
    Join Date
    09-26-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    31

    Re: Auto Mail Using outlook is Going through..

    Hi,

    Really Appreciate your revert.

    There was network issue going on or slowness in the Server because of which My post was not going through. So i accidentally submit the post multiple times. As i am not a frequent user of the forum, I tried to Unsubscribe or delete the One of the posts but could not do that. So I apologize for the multiple post of the same thread.
    Thanks for the help.

  8. #8
    Registered User
    Join Date
    09-26-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    31

    Re: Auto Mail Using outlook is Going through..

    Hi 6StringJazzer,

    I highly regretted for the inconvenience caused. I was not aware of the format for posting any query. Will be adhere to policies and rules next time.
    Thanks

  9. #9
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Auto Mail Using outlook is Going through..

    Quote Originally Posted by vineetmadaan View Post
    Hi 6StringJazzer,

    I highly regretted for the inconvenience caused. I was not aware of the format for posting any query. Will be adhere to policies and rules next time.
    Thanks
    Thanks. But please go back and edit your original post to add the CODE tags as described above. At the bottom of your post is a link for "Edit Post."

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA auto outlook 2016 to send e-mail based off criteria
    By broman5000 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-30-2017, 04:15 PM
  2. [SOLVED] Auto Mail reminder from Outlook
    By Parth007 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-21-2016, 03:04 AM
  3. Blocker and auto mail thru "MS outlook"
    By visshukaka in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-22-2014, 02:04 AM
  4. Cant get the auto mail from excel via outlook to work
    By JimmyQ in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-22-2014, 02:37 AM
  5. vba to print active sheet to pdf, auto save in specific folder then mail using outlook
    By lathamashly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2014, 04:57 AM
  6. Replies: 0
    Last Post: 07-08-2013, 04:45 AM
  7. Excel Macro for auto e-mail via outlook
    By Tgteer1619 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-14-2012, 10:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1