+ Reply to Thread
Results 1 to 4 of 4

Email subject line in VBA using Sendmail

  1. #1
    Registered User
    Join Date
    09-03-2007
    Posts
    5

    Email subject line in VBA using Sendmail

    I am using the activeworkbook:sendmail command, i have a list of addresses and can send to these addresses using:

    ActiveWorkbook.SendMail (Recipients:=Range("I1:I3"), _

    i now want to get the email to have a subject line of "free text" then D10 and D12 in that order.

    can anyone help?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Arnoldn5,

    This should do it...
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    09-03-2007
    Posts
    5

    Thanks

    Thanks Leith

    That works but i have changed the code slightly to:

    Please Login or Register  to view this content.
    Its causing some problems with sending from other machines with the error "Genreal Mail Failure"

    can this be solved?

    Nic

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Nic,

    If the code is running on your machine, but not on some others then problem is with those machines. SendMail uses the default email client installed on the machine. If the email client has not been setup, the attempt fails.

    Sincerely,
    Leith Ross

+ 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