Results 1 to 4 of 4

Thread: Link in email to reply to

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2014
    Posts
    367

    Link in email to reply to

    Hi...I have a code which I use to email out reports to users which is working fine. I now want to ask them to confirm they have read the reports by replying to an email address.
    I would like a code which will create a link on this text "I confirm I have read the report". So when the user clicks on the link an email is sent to an email address specified.
    I'd really appreciate some assistance with this please. Thanks

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Link in email to reply to

    you would need to put a mailto href link into the body html of the email you send, while you can automate to fill the recipient, subject and body, it will still require the user to click send on the email as well
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2014
    Posts
    367

    Re: Link in email to reply to

    Quote Originally Posted by westconn1 View Post
    you would need to put a mailto href link into the body html of the email you send, while you can automate to fill the recipient, subject and body, it will still require the user to click send on the email as well
    Thanks how can I automate the recipient, subject and text in body?
    Also is there an easy way when the user clicks on the link to reply for a box to come up for the user to type in their department name which then gets added to the subject?
    Thanks

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Link in email to reply to

    the html would be like this for an html anchor
    Code:
    <a href="mailto:test@example.com?subject=Testing out mailto!&body=This is only a test!">Second Example</a>
    you could possibly use a variable to fill the department

    a mailto link will only work with an email client, not a web based email service
    on clicking the link a prefilled email message will be displayed so additional information can be added, or existing info can be edited before pressing send
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width