+ Reply to Thread
Results 1 to 11 of 11

.sendmail code not sending mail

  1. #1
    Forum Contributor
    Join Date
    05-13-2013
    Location
    Swindon UK
    MS-Off Ver
    Excel 2010
    Posts
    277

    .sendmail code not sending mail

    Hi

    I have created a travel request form with a small macro to send mail from refrenced cells and a subject line.

    When i click on send it open up my emails and all is grat but when i click send mail i get errors, saying email address is wrong here is the code could someone have a look please.

    I have also attached the file.

    Please Login or Register  to view this content.

    New Travel Request in Excel.xlsx

  2. #2
    Forum Contributor
    Join Date
    05-13-2013
    Location
    Swindon UK
    MS-Off Ver
    Excel 2010
    Posts
    277

    Re: .sendmail code not sending mail

    Anyone help me on this please. Thanks you

  3. #3
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: .sendmail code not sending mail

    Using Outlook u want to send Mail ?
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  4. #4
    Forum Contributor
    Join Date
    05-13-2013
    Location
    Swindon UK
    MS-Off Ver
    Excel 2010
    Posts
    277

    Re: .sendmail code not sending mail

    Lotus notes and outlook

  5. #5
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: .sendmail code not sending mail

    Replace your code with below one
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    05-13-2013
    Location
    Swindon UK
    MS-Off Ver
    Excel 2010
    Posts
    277

    Re: .sendmail code not sending mail

    Quote Originally Posted by Naveed Raza View Post
    Replace your code with below one
    Please Login or Register  to view this content.
    Hi thank you .

    I have tryed this useing lotus nots all good, but when its used in outlook i get errors

    It wont send the email unless i manulay put a ; at then end of the last email address.

    I have tryed to put this in the code but wont work.

    Any ideas ?

    Thank you

  7. #7
    Forum Contributor
    Join Date
    05-13-2013
    Location
    Swindon UK
    MS-Off Ver
    Excel 2010
    Posts
    277

    Re: .sendmail code not sending mail

    If I only have 1 email addy in it will work . But I need 3. It's stage that it work on lotus notes but not outlook. Any ideas ?

  8. #8
    Forum Contributor
    Join Date
    05-13-2013
    Location
    Swindon UK
    MS-Off Ver
    Excel 2010
    Posts
    277

    Re: .sendmail code not sending mail

    Anyone one ?

  9. #9
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: .sendmail code not sending mail

    Hi,

    Replace your complete code with below one

    Note: Run Mail_Call macro only
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    05-13-2013
    Location
    Swindon UK
    MS-Off Ver
    Excel 2010
    Posts
    277

    Re: .sendmail code not sending mail

    Thank you so much that worked.

  11. #11
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: .sendmail code not sending mail

    Quote Originally Posted by donkey_uk View Post
    Thank you so much that worked.
    Glad to Help
    Please Mark the thread as SOLVED & Click on * Add Reputation to say thanks.

+ 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. VB Code for mail sending
    By sathishkm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-18-2013, 05:27 PM
  2. E-mail sending code issues
    By ghurhu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2012, 01:49 AM
  3. VBA code sending Outlook e-mail
    By dkub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2011, 06:30 PM
  4. [SOLVED] Sending E-Mail by code
    By ASU in forum Excel General
    Replies: 2
    Last Post: 06-13-2006, 08:20 AM

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