Link to home
Start Free TrialLog in
Avatar of ChanderMadhavi
ChanderMadhavi

asked on

Sending email from an VB.net web application and Lotus notes

Hi

I need to send an email from my web application. I am using vb.net  to develop my web application. The corportae uses Lotus notes to send email. I will be have lotus notes client installed on the web server.
Could you please show me some examples how to send email.
Also any input on setting the environment will be a help. (example does the lotus notes server need to support SMTP).

Thanks
Madhavi
SOLUTION
Avatar of p_partha
p_partha

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of p_partha
p_partha

any updates on this ?

Partha
Ah! My seniors here missed something subtle.

(1) I need to send an email from my web application.
(2) I will be have lotus notes client installed on the web server.

Please address these issues in order to be eligible for points. Or should I do it :)


>> Also any input on setting the environment will be a help. (example does the lotus notes server need to support SMTP).

Madhavi, that's two questions for the price of one. Remember, to get better quality, spend more money :)
Avatar of ChanderMadhavi

ASKER

Could you please address the above  issues. I have no problems increasing the points to 750 as far as I get my answers.

Thanks
Madhavi
Well, the limit is 500pts/question, but who cares?

Point (2) -- I thought you eant there already IS a client installed.  If not, you will need to install either server or client.  SPeak to the Domino administrator about what can be done.  You probably want to have a Notes ID unique to the web server.

Domino can natively support SMTP.  If you are already working in a Domino mail environment, then whatever client or server you set up for your web server, it will be able to take advatage of the DOmino SMTP infrastructure that is already there.

If you are not already in a Domino environemnt, of course, I wonder why you would set all this up just to send messages.
Ranjeet
am not sure what we didn't answer here. We answered to whatever was asked

Partha
Even I feel all the questions have been answered by the experts in parts.

> I need to send an email from my web application. I am using vb.net  to develop my web application. The corportae uses Lotus notes to send email.  I will be have lotus notes client installed on the web server.

So, you already have Lotus Domino environment. So, you need not install any special servers to send messages from your custom applications. Just ask your Mail administrator to create a mail-id for your application (though it is not a requirement - it is a good practice to have a separate ID for applications). Install a Lotus Client and connect to *any* Domino mail server (At the time of ID file creation itself, your mail server would have been defined by the administrator).

Could you please show me some examples how to send email.

Refer the code above and also good suggestions from qwaletee.

Also any input on setting the environment will be a help. (example does the lotus notes server need to support SMTP).

This also has been answered. Domino natively supports not only SMTP, but almost any known mail standards and protocols. Being the industry leader in mail, you need never worry about support for any standards as far as mail is concerned. Otherwise, your organization would not have gone with Lotus Domino ;-)

You can also format your mails using all rich text formatting, and send your mails as HTML mail with links to specific documents.

Just a sample --

Dim richText As New NotesRichTextItem(doc, "Body")
Dim richStyle As NotesRichTextStyle
Set richStyle = session.CreateRichTextStyle
richStyle.NotesFont = FONT_COURIER
richStyle.FontSize = 12
richStyle.Bold = True

-- whatever formatting you want, make it
-- Then, append the style object to the body of E-Mail like this

Call richText.AppendStyle(richStyle)

I do not know what else you expect to be answered, unless you make the questions clear.