|
 |
asp_cdo thread: Sending Sample Email
Message #1 by "A. Vijayakumar" <vijeyan@h...> on Wed, 20 Sep 2000 05:58:37 IST
|
|
Hi !
I am also facing the same problem. how can i solve this.
Hi. I'm trying to create a sample page to send email using the code below.
I didn't get any error messages running this but I can't receive the mail.
When I try to send to hotmail acct , it did go through. What do you think is
the cause of the problem? I will be very glad for any help you can give.
Thank you very much.
sub btnEmail_onclick()
set objSendMail = CreateObject("CDONTS.NewMail")
with objSendMail
.From = "catherine.s@t..."
.To = "catherine.s@t..."
.Subject = "Sample Mail from ASP"
.Body = " Sample Mail from ASP"
.Send
end with
set objSendMail = Nothing
end sub
Message #2 by "Ritu Kamal Aggarwal" <ritukamal@y...> on Wed, 20 Sep 2000 23:03:47 -0700
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0048_01C02357.08991170
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
just try this program i m sending u as attacthment it is ASP program.
ritukamal aggarwal
http://web.domaindlx.com/aggrk/book
----- Original Message -----
From: "A. Vijayakumar" <vijeyan@h...>
To: "ASP CDO" <asp_cdo@p...>
Sent: Tuesday, September 19, 2000 10:58 PM
Subject: [asp_cdo] Sending Sample Email
> Hi !
>
> I am also facing the same problem. how can i solve this.
> Hi. I'm trying to create a sample page to send email using the code below.
>
> I didn't get any error messages running this but I can't receive the mail.
> When I try to send to hotmail acct , it did go through. What do you think
is
> the cause of the problem? I will be very glad for any help you can give.
> Thank you very much.
>
>
> sub btnEmail_onclick()
> set objSendMail = CreateObject("CDONTS.NewMail")
> with objSendMail
> .From = "catherine.s@t..."
> .To = "catherine.s@t..."
> .Subject = "Sample Mail from ASP"
> .Body = " Sample Mail from ASP"
> .Send
> end with
> set objSendMail = Nothing
> end sub
>
>
------=_NextPart_000_0048_01C02357.08991170
Content-Type: text/asp;
name="feedback.asp"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="feedback.asp"
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<TITLE>Feedback</TITLE>
<META http-equiv=3D"Content-Type" content=3D"text/html;
charset=3Diso-8859-1">
</HEAD>
<BODY bgcolor=3D"#FFFFFF" topmargin=3D0 leftmargin=3D0>
<% If Request.QueryString("act") =3D "send" Then %>
<%
Set Mail =3D Server.CreateObject("Persits.MailSender")
Mail.Host =3D "smtp.domaindlx.com" ' Specify a valid SMTP server
Mail.From =3D Request.Form("frmEmail") ' Specify sender's address
Mail.FromName =3D Request.Form("frmName") ' Specify sender's name
Mail.AddAddress "ritukamal@y..."
Mail.Subject =3D "Site Feedback"
Mail.Body =3D Request.Form("frmComments")
On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "ASP EMAIL Error encountered: " & Err.Description
End If
%>
Thank you for your feedback. Your input helps this site grow.
<% Else %>
<form method=3D"post" action=3D"feedback.asp?act=3Dsend"
name=3D"feedback">
<table width=3D"75%" border=3D"0" align=3D"center">
<tr>
<td align=3D"right" valign=3D"middle"
bordercolor=3D"#C0C0C0">Name:</td>
<td align=3D"left" valign=3D"top">
<input type=3D"text" name=3D"frmName" size=3D"26"
maxlength=3D"40">
</td>
</tr>
<tr>
<td align=3D"right" valign=3D"middle"
bordercolor=3D"#C0C0C0">E-Mail Address:</td>
<td align=3D"left" valign=3D"top">
<input type=3D"text" name=3D"frmEmail" size=3D"30"
maxlength=3D"50">
</td>
</tr>
<tr>
<td align=3D"right" valign=3D"top"
bordercolor=3D"#C0C0C0">Comments:</td>
<td align=3D"left" valign=3D"top">
<textarea name=3D"frmComments" rows=3D"5" cols=3D"50"
wrap=3D"OFF"></textarea>
</td>
</tr>
<tr>
<td align=3D"center" valign=3D"top" bordercolor=3D"#C0C0C0"
colspan=3D"2">
<input type=3D"submit" name=3D"Submit" value=3D"Submit">
<input type=3D"reset" name=3D"Reset" value=3D"Reset">
</td>
</tr>
</table>
<% End If %>
</form>
</BODY>
</HTML>
------=_NextPart_000_0048_01C02357.08991170--
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Message #3 by Ian Barker <Ian.Barker@B...> on Thu, 21 Sep 2000 08:48:07 +0100
|
|
This isn't a CDO solution though - it uses Persits.MailSender
(I meant to put this on asp_components - Moderator!)
> just try this program i m sending u as attacthment it is ASP program.
>
> ritukamal aggarwal
> http://web.domaindlx.com/aggrk/book
>
> ----- Original Message -----
> From: "A. Vijayakumar" <vijeyan@h...>
> To: "ASP CDO" <asp_cdo@p...>
> Sent: Tuesday, September 19, 2000 10:58 PM
> Subject: [asp_cdo] Sending Sample Email
>
>
> > Hi !
> >
> > I am also facing the same problem. how can i solve this.
> > Hi. I'm trying to create a sample page to send email using the code
below.
> >
> > I didn't get any error messages running this but I can't receive the
mail.
> > When I try to send to hotmail acct , it did go through. What do you
think
> is
> > the cause of the problem? I will be very glad for any help you can
give.
> > Thank you very much.
> >
> >
> > sub btnEmail_onclick()
> > set objSendMail = CreateObject("CDONTS.NewMail")
> > with objSendMail
> > .From = "catherine.s@t..."
> > .To = "catherine.s@t..."
> > .Subject = "Sample Mail from ASP"
> > .Body = " Sample Mail from ASP"
> > .Send
> > end with
> > set objSendMail = Nothing
> > end sub
> >
> >
> << File: feedback.asp >>
Regards,
Ian Barker
Lynx Commercial Systems
Mailto: Ian.Barker@b...
Message #4 by <ritukamal@y...> on Fri, 22 Sep 2000 06:46:11 -0700
|
|
hey where is the attachment program in ASP
----- Original Message -----
From: "Ian Barker" <Ian.Barker@B...>
To: "ASP CDO" <asp_cdo@p...>
Sent: Thursday, September 21, 2000 12:48 AM
Subject: [asp_cdo] Re: Sending Sample Email
> This isn't a CDO solution though - it uses Persits.MailSender
>
> (I meant to put this on asp_components - Moderator!)
> > just try this program i m sending u as attacthment it is ASP program.
> >
> > ritukamal aggarwal
> > http://web.domaindlx.com/aggrk/book
> >
> > ----- Original Message -----
> > From: "A. Vijayakumar" <vijeyan@h...>
> > To: "ASP CDO" <asp_cdo@p...>
> > Sent: Tuesday, September 19, 2000 10:58 PM
> > Subject: [asp_cdo] Sending Sample Email
> >
> >
> > > Hi !
> > >
> > > I am also facing the same problem. how can i solve this.
> > > Hi. I'm trying to create a sample page to send email using the code
> below.
> > >
> > > I didn't get any error messages running this but I can't receive the
> mail.
> > > When I try to send to hotmail acct , it did go through. What do you
> think
> > is
> > > the cause of the problem? I will be very glad for any help you can
> give.
> > > Thank you very much.
> > >
> > >
> > > sub btnEmail_onclick()
> > > set objSendMail = CreateObject("CDONTS.NewMail")
> > > with objSendMail
> > > .From = "catherine.s@t..."
> > > .To = "catherine.s@t..."
> > > .Subject = "Sample Mail from ASP"
> > > .Body = " Sample Mail from ASP"
> > > .Send
> > > end with
> > > set objSendMail = Nothing
> > > end sub
> > >
> > >
> > << File: feedback.asp >>
>
>
> Regards,
> Ian Barker
>
> Lynx Commercial Systems
> Mailto: Ian.Barker@b...
>
|
|
 |