Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Sending Mail in ASP

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  IIS Worker Process need to close problem  
Author Message
Chaplain Doug

External


Since: Apr 19, 2007
Posts: 3



(Msg. 1) Posted: Thu Apr 19, 2007 2:12 pm
Post subject: Sending Mail in ASP
Archived from groups: microsoft>public>inetserver>iis (more info?)

Windows Server 2003 R2 Standard.

We have rehosted our web site to our Windows Server under the IIS. Most of
the files are asp. I have code that submits the contents of a form via
email. The following line of code fails:

Set Mail = Server.CreateObject("Persits.MailSender")

What can I use in my environment that would accomplish the same thing as
"Persits.MailSender"?

The code that fails is in context below:

<p align="center"><font face="Arial" size="2"><strong> </strong></font></p>
<%if request.form("name") <> "" then%>

<%
strBody = "--------------------------------------------------------" &
vbCrLf & _
"Feedback" & vbCrLf & _
"--------------------------------------------------------" & vbCrLf & _
"Name: " & Request.Form("Name") & vbCrLf & _
"Email: " & Request.Form("email") & vbCrLf & _
"Phone: " & Request.Form("Phone") & vbCrLf & _
"Message: " & Request.Form("message") & vbCrLf & _
" " & vbCrLf & _
" "

Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = "mail.goodnewsjail.org"
Mail.From = "info@goodnewsjail.org"
Mail.FromName = "Website Feedback"
Mail.AddAddress "info@goodnewsjail.org"
Mail.Subject = "Feedback from Website"
Mail.Body = strBody
On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "Letter was not sent due to the following error: " &
Err.Description
End If
%>




--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org

 >> Stay informed about: Sending Mail in ASP 
Back to top
Login to vote
Chaplain Doug

External


Since: Apr 19, 2007
Posts: 3



(Msg. 2) Posted: Thu Apr 19, 2007 2:20 pm
Post subject: RE: Sending Mail in ASP [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

My server has Exchange Server 2003 running on it. It also has Outlook 2003
installed.
--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org


"Chaplain Doug" wrote:

> Windows Server 2003 R2 Standard.
>
> We have rehosted our web site to our Windows Server under the IIS. Most of
> the files are asp. I have code that submits the contents of a form via
> email. The following line of code fails:
>
> Set Mail = Server.CreateObject("Persits.MailSender")
>
> What can I use in my environment that would accomplish the same thing as
> "Persits.MailSender"?
>
> The code that fails is in context below:
>
> <p align="center"><font face="Arial" size="2"><strong> </strong></font></p>
> <%if request.form("name") <> "" then%>
>
> <%
> strBody = "--------------------------------------------------------" &
> vbCrLf & _
> "Feedback" & vbCrLf & _
> "--------------------------------------------------------" & vbCrLf & _
> "Name: " & Request.Form("Name") & vbCrLf & _
> "Email: " & Request.Form("email") & vbCrLf & _
> "Phone: " & Request.Form("Phone") & vbCrLf & _
> "Message: " & Request.Form("message") & vbCrLf & _
> " " & vbCrLf & _
> " "
>
> Set Mail = Server.CreateObject("Persits.MailSender")
> Mail.Host = "mail.goodnewsjail.org"
> Mail.From = "info@goodnewsjail.org"
> Mail.FromName = "Website Feedback"
> Mail.AddAddress "info@goodnewsjail.org"
> Mail.Subject = "Feedback from Website"
> Mail.Body = strBody
> On Error Resume Next
> Mail.Send
> If Err <> 0 Then
> Response.Write "Letter was not sent due to the following error: " &
> Err.Description
> End If
> %>
>
>
>
>
> --
> Dr. Doug Pruiett
> Good News Jail & Prison Ministry
> www.goodnewsjail.org

 >> Stay informed about: Sending Mail in ASP 
Back to top
Login to vote
Will Platnick

External


Since: Apr 22, 2007
Posts: 7



(Msg. 3) Posted: Thu Apr 19, 2007 5:27 pm
Post subject: Re: Sending Mail in ASP [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Apr 19, 5:12 pm, Chaplain Doug
<ChaplainD....RemoveThis@discussions.microsoft.com> wrote:
> Windows Server 2003 R2 Standard.
>
> We have rehosted our web site to our Windows Server under the IIS. Most of
> the files are asp. I have code that submits the contents of a form via
> email. The following line of code fails:
>
> Set Mail = Server.CreateObject("Persits.MailSender")
>
> What can I use in my environment that would accomplish the same thing as
> "Persits.MailSender"?
>
> The code that fails is in context below:
>
> <p align="center"><font face="Arial" size="2"><strong> </strong></font></p>
> <%if request.form("name") <> "" then%>
>
> <%
> strBody = "--------------------------------------------------------" &
> vbCrLf & _
> "Feedback" & vbCrLf & _
> "--------------------------------------------------------" & vbCrLf & _
> "Name: " & Request.Form("Name") & vbCrLf & _
> "Email: " & Request.Form("email") & vbCrLf & _
> "Phone: " & Request.Form("Phone") & vbCrLf & _
> "Message: " & Request.Form("message") & vbCrLf & _
> " " & vbCrLf & _
> " "
>
> Set Mail = Server.CreateObject("Persits.MailSender")
> Mail.Host = "mail.goodnewsjail.org"
> Mail.From = "i...@goodnewsjail.org"
> Mail.FromName = "Website Feedback"
> Mail.AddAddress "i...@goodnewsjail.org"
> Mail.Subject = "Feedback from Website"
> Mail.Body = strBody
> On Error Resume Next
> Mail.Send
> If Err <> 0 Then
> Response.Write "Letter was not sent due to the following error: " &
> Err.Description
> End If
> %>
>
> --
> Dr. Doug Pruiett
> Good News Jail & Prison Ministrywww.goodnewsjail.org

As far as paid ASP components, ASP Mail is a popular one.

Microsoft provides a free component that is already installed in Win
2003 called CDOSYS

http://www.powerasp.com/content/new/sending_email_cdosys.asp
 >> Stay informed about: Sending Mail in ASP 
Back to top
Login to vote
Chaplain Doug

External


Since: Apr 19, 2007
Posts: 3



(Msg. 4) Posted: Thu Apr 19, 2007 6:32 pm
Post subject: Re: Sending Mail in ASP [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

THANKS Will. I am glad Microsoft provided something I could call. God bless
for taking the time to answer.
--
Dr. Doug Pruiett
Good News Jail & Prison Ministry
www.goodnewsjail.org


"Will Platnick" wrote:

> On Apr 19, 5:12 pm, Chaplain Doug
> <ChaplainD... RemoveThis @discussions.microsoft.com> wrote:
> > Windows Server 2003 R2 Standard.
> >
> > We have rehosted our web site to our Windows Server under the IIS. Most of
> > the files are asp. I have code that submits the contents of a form via
> > email. The following line of code fails:
> >
> > Set Mail = Server.CreateObject("Persits.MailSender")
> >
> > What can I use in my environment that would accomplish the same thing as
> > "Persits.MailSender"?
> >
> > The code that fails is in context below:
> >
> > <p align="center"><font face="Arial" size="2"><strong> </strong></font></p>
> > <%if request.form("name") <> "" then%>
> >
> > <%
> > strBody = "--------------------------------------------------------" &
> > vbCrLf & _
> > "Feedback" & vbCrLf & _
> > "--------------------------------------------------------" & vbCrLf & _
> > "Name: " & Request.Form("Name") & vbCrLf & _
> > "Email: " & Request.Form("email") & vbCrLf & _
> > "Phone: " & Request.Form("Phone") & vbCrLf & _
> > "Message: " & Request.Form("message") & vbCrLf & _
> > " " & vbCrLf & _
> > " "
> >
> > Set Mail = Server.CreateObject("Persits.MailSender")
> > Mail.Host = "mail.goodnewsjail.org"
> > Mail.From = "i...@goodnewsjail.org"
> > Mail.FromName = "Website Feedback"
> > Mail.AddAddress "i...@goodnewsjail.org"
> > Mail.Subject = "Feedback from Website"
> > Mail.Body = strBody
> > On Error Resume Next
> > Mail.Send
> > If Err <> 0 Then
> > Response.Write "Letter was not sent due to the following error: " &
> > Err.Description
> > End If
> > %>
> >
> > --
> > Dr. Doug Pruiett
> > Good News Jail & Prison Ministrywww.goodnewsjail.org
>
> As far as paid ASP components, ASP Mail is a popular one.
>
> Microsoft provides a free component that is already installed in Win
> 2003 called CDOSYS
>
> http://www.powerasp.com/content/new/sending_email_cdosys.asp
>
>
 >> Stay informed about: Sending Mail in ASP 
Back to top
Login to vote
Pablo A. Allois

External


Since: Apr 20, 2007
Posts: 13



(Msg. 5) Posted: Fri Apr 20, 2007 8:18 am
Post subject: Re: Sending Mail in ASP [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Here you have some examples.
http://www.shipex.com.ar/ejemplos/
Click "fuente" to see the source code

"Chaplain Doug" <ChaplainDoug DeleteThis @discussions.microsoft.com> wrote in message
news:9E2F16B2-D223-4DAE-A915-C2D1833D6658@microsoft.com...
> THANKS Will. I am glad Microsoft provided something I could call. God
> bless
> for taking the time to answer.
> --
> Dr. Doug Pruiett
> Good News Jail & Prison Ministry
> www.goodnewsjail.org
>
>
> "Will Platnick" wrote:
>
>> On Apr 19, 5:12 pm, Chaplain Doug
>> <ChaplainD... DeleteThis @discussions.microsoft.com> wrote:
>> > Windows Server 2003 R2 Standard.
>> >
>> > We have rehosted our web site to our Windows Server under the IIS.
>> > Most of
>> > the files are asp. I have code that submits the contents of a form via
>> > email. The following line of code fails:
>> >
>> > Set Mail = Server.CreateObject("Persits.MailSender")
>> >
>> > What can I use in my environment that would accomplish the same thing
>> > as
>> > "Persits.MailSender"?
>> >
>> > The code that fails is in context below:
>> >
>> > <p align="center"><font face="Arial" size="2"><strong>
>> > </strong></font></p>
>> > <%if request.form("name") <> "" then%>
>> >
>> > <%
>> > strBody =
>> > "--------------------------------------------------------" &
>> > vbCrLf & _
>> > "Feedback" &
>> > vbCrLf & _
>> >
>> > "--------------------------------------------------------" & vbCrLf & _
>> > "Name: " &
>> > Request.Form("Name") & vbCrLf & _
>> > "Email: " &
>> > Request.Form("email") & vbCrLf & _
>> > "Phone: " &
>> > Request.Form("Phone") & vbCrLf & _
>> > "Message: " &
>> > Request.Form("message") & vbCrLf & _
>> > " " & vbCrLf &
>> > _
>> > " "
>> >
>> > Set Mail = Server.CreateObject("Persits.MailSender")
>> > Mail.Host = "mail.goodnewsjail.org"
>> > Mail.From = "i...@goodnewsjail.org"
>> > Mail.FromName = "Website Feedback"
>> > Mail.AddAddress "i...@goodnewsjail.org"
>> > Mail.Subject = "Feedback from Website"
>> > Mail.Body = strBody
>> > On Error Resume Next
>> > Mail.Send
>> > If Err <> 0 Then
>> > Response.Write "Letter was not sent due to the following error:
>> > " &
>> > Err.Description
>> > End If
>> > %>
>> >
>> > --
>> > Dr. Doug Pruiett
>> > Good News Jail & Prison Ministrywww.goodnewsjail.org
>>
>> As far as paid ASP components, ASP Mail is a popular one.
>>
>> Microsoft provides a free component that is already installed in Win
>> 2003 called CDOSYS
>>
>> http://www.powerasp.com/content/new/sending_email_cdosys.asp
>>
>>
 >> Stay informed about: Sending Mail in ASP 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]