Forums

ASP

This topic is locked

Send email

Posted 12 May 2003 08:49:47
1
has voted
12 May 2003 08:49:47 Chriz L. posted:
Hello people...,

I want to send an email to an email account which i retrieve from my database using ASP....

Any suggestions how to do that?

Tnx in advance! <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Replies

Replied 12 May 2003 11:42:46
12 May 2003 11:42:46 Lee Diggins replied:
Hi,

someting like this when using Windoze:

&lt;%
Dim attFile
attFile = 'set the path to a file to attach to the e-mail

Dim objNewMail

Set objNewMail = Server.CreateObject("CDONTS.NewMail"

objNewMail.To = " "
objNewMail.CC = " "
objNewMail.BCC = " "
objNewMail.From = " "
objNewMail.Value("Reply-To" = " "
objNewMail.Subject = "WhatEver"
objNewMail.Body = "myContent"
objNewMail.BodyFormat = 1 '1 = text, 2 = html
objNewMail.MailFormat = 1 '1 = text, 2 = MIME
objNewMail.Importance = 1 '1, 2 or 3
objNewMail.AttachFile attFile 'see above
objNewMail.Send
set objNewMail = Nothing 'destroy object
%&gt;

Digga

Sharing Knowledge Saves Valuable Time!!!

Edited by - Digga the Wolf on 12 May 2003 16:14:35
Replied 12 May 2003 20:50:40
12 May 2003 20:50:40 Jonathan Danylko replied:
Annnnd just to throw in my $.02, I found something that I think will benefit the ASP community immensely.

Sometimes, when talking to an ISP, you really don't know what an ISP is using for it's email. Hence the following URL:

www.pensaworks.com/prg_com.asp

Two EXCELLENT ASP Scripts that help you determine what ASP components AND e-mail components are installed and accessible from the script.

These were definitely added to my library.

Having fun...as always.


L8R,
Vitoman, M CIW D, MMCP
Replied 13 May 2003 10:41:47
13 May 2003 10:41:47 Lee Diggins replied:
Hi vitoman,

fantastic scripts, thanks for the link.

Digga

Sharing Knowledge Saves Valuable Time!!!
Replied 13 May 2003 17:34:51
13 May 2003 17:34:51 Chriz L. replied:
i used the code that Digga gave to me....i get no errors but the emails that i send don't deliver to the reveivers...
Do you know what might goes wrong?

@vitoman great scripts!!! <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> is there a page to download the components that i don't have?

Thank you for your help!

Edited by - dealwi8me on 13 May 2003 17:36:19
Replied 13 May 2003 17:41:12
13 May 2003 17:41:12 Jonathan Danylko replied:
The URL's should be on the page with the components (I think) <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Yeah, I know..those scripts are VERY valuable when dealing with ISPs.

Technical Administrator: "Oh yeah, I installed that component on the server"

(Yeah, right!) <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>


L8R,
Vitoman, M CIW D, MMCP
----------------------------------
He conquers who endures. - Persius

Reply to this topic