+ Reply to Thread
Results 1 to 2 of 2

Outlook MailItem.Send fails when email address domain contains a hyphen

  1. #1
    Registered User
    Join Date
    05-12-2021
    Location
    Canada
    MS-Off Ver
    16.0
    Posts
    4

    Outlook MailItem.Send fails when email address domain contains a hyphen

    I have a routine in Excel VBA which sends emails through Outlook. It works beautifully except if the email address domain contains a hyphen. This generates an unrecognized name error at olMailItem.Send.

    If I change .Send to .Display, it functions correctly to create the email in Outlook and leave it open for the user.

    I am hoping to figure out a workaround to get this to function automatically. Any ideas?

  2. #2
    Registered User
    Join Date
    05-12-2021
    Location
    Canada
    MS-Off Ver
    16.0
    Posts
    4

    Re: Outlook MailItem.Send fails when email address domain contains a hyphen

    Please Login or Register  to view this content.

+ 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. [SOLVED] VBA send email, use the other FROM address. both accounts in OutLook
    By countryfan_nt in forum Outlook Formatting & Functions
    Replies: 2
    Last Post: 06-19-2017, 04:48 AM
  2. Send email from shared Outlook email address
    By rousseauassociates in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-27-2016, 07:33 AM
  3. Send an email via outlook from and address other than your default email.
    By sungen99 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-28-2015, 06:15 PM
  4. [SOLVED] Send an Excel with Outlook using VBA and Select an email address from a cell
    By TNT Innight in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-09-2015, 10:58 AM
  5. Replies: 1
    Last Post: 07-15-2013, 05:20 AM
  6. Replies: 2
    Last Post: 02-25-2013, 10:40 AM
  7. [SOLVED] one pdf file send to 20,000 email address use vbs coding & through outlook 2003
    By sonu_kumar444 in forum Outlook Formatting & Functions
    Replies: 2
    Last Post: 07-03-2012, 04:22 AM

Tags for this Thread

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