Issues wirh Mail Send

Hello,

I have a web application in which mail is sent to the user on button click(Agent runs on button click). Mail is being sent to the internal users from both web and client but mail is not being sent to the external internet users like xxx@yyy.com from web. However mail is being sent to external internet users from client. Please assist.

Thanks for help in advance.

Subject: Issues wirh Mail Send

Is it the same button click from both web and client? Or is it a different button click? Show the code from the button (or buttons)!

Als, is the server that is used for the web the the same as the server that internal users use for their email?

-rich

Subject: RE: Issues wirh Mail Send

Hello Rich,Thanks for the response. Yes same button click is being used in web and client on which agent is run.

Dim session as new notes session

Dim doc as notes document

doc = session.documentcontext

dim pre as variant

pre = doc.Getitemvalue(“Preference”)

if(pre = “1”) then

Call doc.send(True,doc.LotusNotesUser(0))

(lotusnotesuser field contains common name of internal user)

end if

if (pre = “2”) then

Call doc.send(True,"xxx@yy.com")

end if

Subject: RE: Issues wirh Mail Send

Okay… It’s the same button. But is it the same server for client and web users? Or is it a different server?

-rich

Subject: RE: Issues wirh Mail Send

I’m not sure about the server. Should SMTP be enabled to send mails to external internet addresses in the server conifguration documents?

Subject: Issues with Mail Send

In trouble shooting you need to narrow things down.

What we have here is 2 possible issues the server or the agent. I would suggest you out the agent by point a notes client to that server (change location doc) and sending a email from the client. If that has issues then you have a server configuration issue.

As far as smtp it can route to the other server to send out or can send from that server to your mail relay.