Solved

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

Posted on 2004-03-26
4
472 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now