By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,588 Members | 1,920 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,588 IT Pros & Developers. It's quick & easy.

Email with attach file please

P: n/a
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 = "an*******@123.com"
objMailer.To = "an**********@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

May 2 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"beny" <be**@discussions.microsoft.comwrote in message
news:58**********************************@microsof t.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 = "an*******@123.com"
objMailer.To = "an**********@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
May 3 '07 #2

P: n/a
thanks Mike,

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

thanks

beny

"Mike Brind" wrote:
>
"beny" <be**@discussions.microsoft.comwrote in message
news:58**********************************@microsof t.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 = "an*******@123.com"
objMailer.To = "an**********@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
May 3 '07 #3

P: n/a
Thanks Mike,

You were right. It does perfectly work

Have a good day

Beny

"Mike Brind" wrote:
>
"beny" <be**@discussions.microsoft.comwrote in message
news:58**********************************@microsof t.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 = "an*******@123.com"
objMailer.To = "an**********@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
May 3 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.