Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

why server name is displayed in place of sender name when a mail is sent ?

Posted on 2004-03-26
4
477 Views
Last Modified: 2013-12-18
hi
My prob. is that when i send a mail through web using any id  @mailsend("....")by formula lang. in lotus notes i get server name in places of sender name, although using samething in client is working perfectly. what could be the cause of getting server name in place of sender name while processing document in web.
0
Comment
Question by:h_tiwari
4 Comments
 
LVL 19

Expert Comment

by:madheeswar
ID: 10686451
Ur running the web agent through server. So, u r getting it.

While in note client, ur triggering the code through an action button and it takes ur name as sender.

And also, u r having mail file location document.

For web we don't have any locatoin document. So, u will see server name as sender.
0
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 70 total points
ID: 10687240
Is this @Mailsend code in an agent ? If not put it in agent and call it.. Also enable the property of the agent to run as web user.

Also you have to force the user to login so that server knows which name has to be stamped in principal section of the mail..


~Hemanth
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 10687542
@MailSend works on the web, but is not SUPPORTED on the web, partially because of this issues.  The help for @MaiSend says, "You cannot use this function in Web applications."

Even if you enable the "run as web user" property, it will still put in the server name.  You need to use LotusScript to acieve the same effect.


Sub AtMailSend(doc as notesDocument, sendTo, cc, bcc, Subject as String, bodyText as string, bodyFields, includeDocLink )

    'sendTo, cc, bcc, bodyFields can all either be strings or arrays of strings; includeDocLink must be TRUE or FALSE

    Dim db as notesDatabase
    Set db = doc.parentDatabase
    Dim msg as notesDocument
    Set msg = db.createDocument

    msg.replaceItemValue "Form", "Memo"
    msg.replaceItemValue "SendTo", SendTo
    msg.replaceItemValue "CopyTo", CopyTo
    msg.replaceItemValue "BlindCopyTo", BlindCopyTo
    msg.replaceItemValue "Subject", Subject

    Dim body as New notesRichTextItem msg , "Body"
    Dim bodyPartItem as notesItem, bodyPartRTItem as notesRichTextItem
    body.appendText bodyText
    if isArray(bodyFields) Then
        forall bodyField in bodyFields
            if doc.hasItem(bodyField) Then
                set bodyPartItem = doc.getFirstItem(bodyField)
                if bodyPartItem.Type = RICHTEXT then
                    set bodyPartRTItem = bodyPartItem
                    body.appendRTItem bodyPartRTItem
                else
                    body.appendText bodyPartItem.Text
                end if
            end if
        end forall
    else
            if doc.hasItem(bodyFields) Then
                set bodyPartItem = doc.getFirstItem(bodyFields)
                if bodyPartItem.Type = RICHTEXT then
                    set bodyPartRTItem = bodyPartItem
                    body.appendRTItem bodyPartRTItem
                else
                    body.appendText bodyPartItem.Text
                end if
            end if
    end if

    if includeDocLink Then
        body.appendDocLink doc , doc.Subject(0)
    end if

End Sub
0
 

Author Comment

by:h_tiwari
ID: 12044122
dear all
prob solved long back but i was not able to respond sorry :(

after lots & load r/d answer came out to be simple one
see i have written a agent ( hidden)with choosing option simple action
in that i have written formula for "to field" and "subject " as text and check the "inclued document link in message" thats it and call the agent on submit button as usual @Command([ToolsRunMacro];"(mailonsubmit)"); it works fine with web i tell u  no longer i see server name in in place of sender. i was alway forcing user to login from the very start and for client it was as usual @mailsend
agent runs as web user & runtime is agentlists selection on selected document.
for point i think Hemanth can share atleat he has shown the way of using agent in that manner, see lotus script was the answer but my limitation for that particular thing was not possible i was wanted to use @formula

I don't know how to close this Question. From myside its over
have u guy seen my question " How to extract mail attachment in linux enviorment from a sheduled agent"
any answer???
Thanx for all ur support Keep the good work going
cheers
Harsh Tiwari
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question