+ Reply to Thread
Results 1 to 10 of 10

Macro to send email without outlook

  1. #1
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Macro to send email without outlook

    Is it possible to send an email thru excel macro without outlook?

    I just want to create a Vacation Leave tracker, and when the user hit the submit button, it will send a notification from the approver.
    Last edited by puuts; 03-27-2013 at 02:55 PM.

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Macro to send email without outlook

    you have fill in a few blanks for this to work....you can also pass in parameters to make it more dynamic....HTH

    Please Login or Register  to view this content.
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Macro to send email without outlook

    Hi judgeh! thanks for reply, what is the exchange server address for yahoo? i'm just want to try the code that you've provided but i don't know the exchange server address of yahoo.

  4. #4
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Macro to send email without outlook

    I don't know....I have never tried using this through yahoo....you would need a valid yahoo username and the SMTP server address...it's possible that yahoo block this also....I use this working through my work exchange server....you don't need outlook, but need exchange....or a valid email server....I just don't know....sorry

  5. #5
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Macro to send email without outlook

    ah i see, i will try it in my office later. by the way it gives me an error "Object doesn't support this property or method", it highlighted in
    Please Login or Register  to view this content.

  6. #6
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Macro to send email without outlook

    that's because it should objmessage.TextBody = "Sample" - thanks for catching that...

  7. #7
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Macro to send email without outlook

    Now it seems working. I've got an error "The transport failed to connect to server" maybe because my smtp server is wrong. Thanks Judgeh!. BTW do you have any idea for a Vacation Leave Tracker?

  8. #8
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Macro to send email without outlook

    sweeeeet....yes, I believe that is the error you get with the wrong connection....if you are familiar with telnet you can use telnet to verify username/password and server address...

  9. #9
    Forum Contributor
    Join Date
    02-26-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    367

    Re: Macro to send email without outlook

    I'm not familiar with telnet. Thanks judgeh!

  10. #10
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Macro to send email without outlook

    you can do a search for "using telnet to test SMTP connection" and it should give you a few options....you do need to be connected and authenticated to you network....

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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