Email with attach file please

Email with attach file please

am 03.05.2007 00:39:00 von Beny

See the ASP code below in order to send an email. How can I attach
a file to this email please?

set objMailer = Server.CreateObject("CDONTS.Newmail")
objMailer.From = "anySender@123.com"
objMailer.To = "anyRecipient@456.com"
objMailer.Subject = "a Subject"
objMailer.Body = “I need to know ASP”

on error resume next
objMailer.Send
if err then
response.Write err.Description
else
'do nothing it went okay
end if

Thanks a lot

Beny

Re: Email with attach file please

am 03.05.2007 14:59:36 von Mike Brind

"beny" wrote in message
news:584B5E23-0E9C-46B7-8CA5-082AD5AF2D6D@microsoft.com...
> See the ASP code below in order to send an email. How can I attach
> a file to this email please?
>
> set objMailer = Server.CreateObject("CDONTS.Newmail")
> objMailer.From = "anySender@123.com"
> objMailer.To = "anyRecipient@456.com"
> objMailer.Subject = "a Subject"
> objMailer.Body = "I need to know ASP"
>
> on error resume next
> objMailer.Send
> if err then
> response.Write err.Description
> else
> 'do nothing it went okay
> end if
>
> Thanks a lot
>
> Beny
>

Get rid of it if you are on Windows 2000 or better and use CDO

http://www.w3schools.com/asp/asp_send_email.asp

--
Mike Brind

Re: Email with attach file please

am 03.05.2007 15:45:01 von Beny

thanks Mike,

i will try it, but please what should i do now?

thanks

beny

"Mike Brind" wrote:

>
> "beny" wrote in message
> news:584B5E23-0E9C-46B7-8CA5-082AD5AF2D6D@microsoft.com...
> > See the ASP code below in order to send an email. How can I attach
> > a file to this email please?
> >
> > set objMailer = Server.CreateObject("CDONTS.Newmail")
> > objMailer.From = "anySender@123.com"
> > objMailer.To = "anyRecipient@456.com"
> > objMailer.Subject = "a Subject"
> > objMailer.Body = "I need to know ASP"
> >
> > on error resume next
> > objMailer.Send
> > if err then
> > response.Write err.Description
> > else
> > 'do nothing it went okay
> > end if
> >
> > Thanks a lot
> >
> > Beny
> >
>
> Get rid of it if you are on Windows 2000 or better and use CDO
>
> http://www.w3schools.com/asp/asp_send_email.asp
>
> --
> Mike Brind
>
>
>

Thanks Mike

am 03.05.2007 16:34:00 von Beny

Thanks Mike,

You were right. It does perfectly work

Have a good day

Beny

"Mike Brind" wrote:

>
> "beny" wrote in message
> news:584B5E23-0E9C-46B7-8CA5-082AD5AF2D6D@microsoft.com...
> > See the ASP code below in order to send an email. How can I attach
> > a file to this email please?
> >
> > set objMailer = Server.CreateObject("CDONTS.Newmail")
> > objMailer.From = "anySender@123.com"
> > objMailer.To = "anyRecipient@456.com"
> > objMailer.Subject = "a Subject"
> > objMailer.Body = "I need to know ASP"
> >
> > on error resume next
> > objMailer.Send
> > if err then
> > response.Write err.Description
> > else
> > 'do nothing it went okay
> > end if
> >
> > Thanks a lot
> >
> > Beny
> >
>
> Get rid of it if you are on Windows 2000 or better and use CDO
>
> http://www.w3schools.com/asp/asp_send_email.asp
>
> --
> Mike Brind
>
>
>