• Editable sender of email

    By Michael Baehr 2 decades ago

    I don't know if there are others that have a similar environment, but I have several (internet) email addresses that all go into one mailbox (e.g., I use different email addresses when registering at web sites, for getting newsletters etc.).



    But when I send an email, my standard (mail file) email address is used, which reveals my "real" email address which makes the efforts with different email addresses useless.



    Could you make the sender editable? I'm not a Notes expert, but I was able to modify some code in the openntf mail form to do that:


    • make DisplayFrom editable (in Form Memo, Reply, Reply with history)
    • modify mail fields in Querysend event:



      Sub Querysend(Source As Notesuidocument, Continue As Variant)

      Dim doc As NotesDocument

      Dim mysender As String

      Set doc = source.document

      mysender = source.FieldGetText("DisplayFrom")

      doc.ReplyTo = mysender

      doc.Principal = mysender+"@NotesDomain"

      doc.InetFrom = mysender

      doc.InetSender = mysender

      doc.From = mysender

      End Sub



      I guess that fragment shows that I'm not an expert - actually, that were the first lines I ever did in Notes …



      Though from some fields in the so sent email you can still see the "real" sender of the email, that does what I need.



      If others like this idea, it could be improved by:


    • when replying, set the sender address to the address the original mail has been sent
    • provide an editable list of sender addresses in the DisplayFrom field



      Michael (who really likes what you have accomplished so far!)
    • It ain't that easy --- unfortunatly

      By Stephan H. Wissel 2 decades ago

      Hi there,



      it ain't that easy. The sender's name is very entrenched in the overall structure Notes:

      Szenarios:

      • You send your internet email through the Domino server: the senders address is determined by the internet address field in the Domino Directory (please anybody correct me if my knowledge is outdated)
      • You send directly to the internet: the sender address is determined by the setting in your location document
      • You write to your mail.box file (using lotus script or java): you can do what you want, however the MIME encoding is all yours… And on a server you need to figure out if you can use mail.box or mail1.box



        I created a couple of locations, that all send directly to the internet for the accounts I send from, that are not my main account. So switching locations does the trick for me (however doesn't work off-line). Maybee switching locations could be the key?

        What do u think?

        :-) stw

        P.S.: The request with multiple senders has been turned down before.
      • Works ok for me

        By Michael Baehr 2 decades ago

        Well, as I said, it is not perfect, but it does what I need.



        When I change the sender in the way I described, the receiver of the email sees the changed email address as the sender, and replies are send to that address as well.



        However, looking at all the headers of the mail, the real sender can still be determined, as it is stored in "Return-path" and "Sender". But for the average receiver that does not show (at least not with the email clients I checked).



        You wrote that this request has been turned down before, but I can't find it. Do you have a link to it?



        Thanks



        Michael



        PS: Thanks for the advice with using several location documents. I have sent out hundreds of different email addresses, so that's a little bit hard to do. Actually, I was using one location document that I edited accordingly when needed. The lack of support for multiple sender addresses is the only reason for me why I look at other email clients from time to time (but obviously I haven't found anything to my liking as yet).

        • May i suggest a different approach?

          By Vince Schuurman/NotesOSS 2 decades ago

          How about a smarticon to set your address in your location document?

          you could make it selectable from a list of free text.

          If you need help implementing this you can always request help, but i don't think this will be implemented in the template.

          • By Michael Baehr 2 decades ago

            Vince,

            thank you for your advice. This is an interesting approach!

            Still, for my purposes I would prefer the template based solution, as some automatism could be implemented (e.g., when replying, the automatic setting of the sender depending on the original receiver ) and as it is less error-prone (I see me forgetting "resetting" my address in the location document).

            I realize that this seems to be a very uncommon usage scenario in the Domino-World. I'm using a Domino server with multiple domains just for myself …

            I guess I will have to apply my modifications from time to time to the newest incarnation of the template.

            Thanks again for your help!

            Michael

          • Like outlook?

            By Stephan H. Wissel 2 decades ago

            Hi there,

            ideally the UI to switch the sender could/should/would look like outlook's approach: Have a dropdownlist instead of a text field for the sender, where you can pick the sender. Could be an option….



            What do you think?

            :-) stw





            make your pick

      • Works ok for me

        By Michael Baehr 2 decades ago

        Well, as I said, it is not perfect, but it does what I need.



        When I change the sender in the way I described, the receiver of the email sees the changed email address as the sender, and replies are send to that address as well.



        However, looking at all the headers of the mail, the real sender can still be determined, as it is stored in "Return-path" and "Sender". But for the average receiver that does not show (at least not with the email clients I checked).



        You wrote that this request has been turned down before, but I can't find it. Do you have a link to it?



        Thanks



        Michael



        PS: Thanks for the advice with using several location documents. I have sent out hundreds of different email addresses, so that's a little bit hard to do. Actually, I was using one location document that I edited accordingly when needed. The lack of support for multiple sender addresses is the only reason for me why I look at other email clients from time to time (but obviously I haven't found anything to my liking as yet).