PDA

View Full Version : e-Mail Generation from within Web App Server



Rich Miller
1-May-2005, 03:18 PM
We have the need to generate and send emails from within web app server.
Has anyone done this with the current version? Is the Mapi integration up
to snuff from within this platform? Are there any MS security roadblocks?

Marco
1-May-2005, 05:11 PM
Rich,

How are you going? Planning to go to the Sonesta?

Email from html is a no-brainer. Just look at one of the many examples
on the web, where there is a 'contact me' form.

If you want from asp, you have the chice of the Microsoft Asp mailer
(don't know the exact name, but again use google), or a puchased
component like www.aspemail.com

The advantage of a component is, that you could purchase one that you
can use for use in VDF as well as WebApp ASP.

Cheers,
Marco


On Sun, 1 May 2005 13:18:24 -0700, "Rich Miller"
<rmiller@streamlinebiz.com> wrote:

>We have the need to generate and send emails from within web app server.
>Has anyone done this with the current version? Is the Mapi integration up
>to snuff from within this platform? Are there any MS security roadblocks?
>

Knut Sparhell
2-May-2005, 12:54 AM
Rich Miller wrote:
> We have the need to generate and send emails from within web app server.
> Has anyone done this with the current version? Is the Mapi integration up
> to snuff from within this platform? Are there any MS security roadblocks?

I send my e-mails using ASP objects. No need for MAPI, and the VDF web
application doesn't know about it. The CDO.Message class is included on
the platform (Win2000/Win2003) or the old CDONTS.NewMail on WinNT.
Other third party objects may be installed as you wish, and perhaps you
will want to install the ISS SMTP server.

If using CDO.Message be aware of the different and very simpe
inititialization when using the internal SMTP-server, compared to when
using an external. There is a lot of documentation and examples on the www.

Some simple ASP/VBScript programming and understanding is necessary.

--
Knut Sparhell, Norway

Rich Miller
2-May-2005, 01:35 PM
Thanks Marco and Knut. We'll start looking into these.

Marco, good to hear from you. Yes, we will most likely be at Sonesta.
Working on a scheduling conflict.


"Rich Miller" <rmiller@streamlinebiz.com> wrote in message
news:AOGZoroTFHA.2052@dacmail.dataaccess.com...
> We have the need to generate and send emails from within web app server.
> Has anyone done this with the current version? Is the Mapi integration up
> to snuff from within this platform? Are there any MS security roadblocks?
>
>

Hanna Philippi
2-May-2005, 03:04 PM
Rich Miller wrote:

> We have the need to generate and send emails from within web app server.
> Has anyone done this with the current version? Is the Mapi integration up
> to snuff from within this platform? Are there any MS security roadblocks?
>
>

Hi Richy,

in my asp :

Set myMail=CreateObject("CDO.Message")
myMail.Subject="Po#:"+iorder+"
Shipper/Vendor:"+ishipper+"Customer:"+scustomer
myMail.From=blablabla
myMail.To=blablabla
myMail.HTMLBody=inotes+"<h3 align='left'><font color='red'
face='Verdana, Arial, Helvetica, sans-serif' size='2'><b><i>This message
is generated automatically by ICECORP....Please do not reply to this
email address!!!!</i></b></font></h3>"
myMail.TextBody="This message is generated automatically by
ICECORP....Please do not reply!!!! "+inotes
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
=""
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
=25
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") _
=1
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusername") _
=""
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendpassword") _
=""
myMail.Configuration.Fields.Update
myMail.Send

rgds