+ Reply to Thread
Results 1 to 9 of 9

Mailto link in excel with subject and body

  1. #1
    Registered User
    Join Date
    08-04-2009
    Location
    Morgantown, wv
    MS-Off Ver
    Excel 2007
    Posts
    6

    Mailto link in excel with subject and body

    I am trying to send out an e-mail from excel with all kinds of combined info. Here is what I have so far, which works to send out an e-mail to a certain address with a compiled subject. No luck with inserting the BODY of the e-mail yet from a certain cell.

    =HYPERLINK(CONCATENATE("mailto:",E32,"?subject=",F32))


    Also, How do I make the text in each of these cells read "send e-mail" rather than the whole jumbled mess that is currently in there from the combination of the cells?

    Thank you!
    Whinston

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Mailto link in excel with subject and body

    You can't set the body of an email in a hyperlink. For the display text, you would use:
    =HYPERLINK(CONCATENATE("mailto:",E32,"?subject=",F32),"Send e-mail")
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Mailto link in excel with subject and body

    For once I would disagree R

    =HYPERLINK(CONCATENATE("mailto:",E32,"?subject=",F32,"&body=",F33),"Send e-mail")

    where F33 contains body

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Mailto link in excel with subject and body

    Oh dear. That settles it - I'm not answering anything else today as my mind is clearly not working!
    Thanks for the correction, DO.

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Mailto link in excel with subject and body

    never a good sign is it R... as I understand it you can pass subject, body, cc, bcc - the syntax is per any other url ie ? for first variable and & delimiter thereafter (and use HEX codes to format)

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Mailto link in excel with subject and body

    That was about the third piece of misinformation I've posted today in various forums! I blame lack of sleep...

    I think I got confused with SendMail.

  7. #7
    Registered User
    Join Date
    11-22-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Mailto link in excel with subject and body

    Quote Originally Posted by whinston View Post
    I am trying to send out an e-mail from excel with all kinds of combined info. Here is what I have so far, which works to send out an e-mail to a certain address with a compiled subject. No luck with inserting the BODY of the e-mail yet from a certain cell.

    =HYPERLINK(CONCATENATE("mailto:",E32,"?subject=",F32))


    Also, How do I make the text in each of these cells read "send e-mail" rather than the whole jumbled mess that is currently in there from the combination of the cells?

    Thank you!
    Whinston
    This code includes all the parts of an email..

    Please Login or Register  to view this content.
    Don't forget to add your signature

  8. #8
    Registered User
    Join Date
    08-08-2019
    Location
    Ireland
    MS-Off Ver
    2016
    Posts
    7

    Re: Mailto link in excel with subject and body

    Is there a way to automatically add an email signature?

  9. #9
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Mailto link in excel with subject and body

    Good morning sarav99

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Please familiarise yourself with the rules before posting. You can find them here.

+ 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