Forums
This topic is locked
sending mail using CDO
31 Oct 2002 06:34:52 A Sharma posted:
Actually What I am trying to do here is something likeas follows :
I have a local machine and use an ISP connection (
cabel modem / dial up ) to connect to 0internet. I have
configured a local domain in my IIS server and thus
can run the ASP in there but in order to send emails
out I need to use the SMTP server of my current ISP.
Is there any way to explicitly set the SMTP value
while using this object or any differnet workaround
that probably you can suggest.
FYI...I tried changing the default SMTP value to this
ISP SMTP value but after changing that the service
does not start.
Your help in this matter will be greatly appreciated.
Thanks
AS
Replies
Replied 07 Nov 2002 03:15:08
07 Nov 2002 03:15:08 Dave Blohm replied:
This should help you...
Set objCDO = Server.CreateObject("CDO.Message"
With objCDO
.To = strTo
.From = strFrom
.Subject = strSubject
.TextBody = strBody
.Host = URL/IP OF THE TARGET SMTP SERVER GOES HERE
.Send
End With
Set objCDO = Nothing
Doc
Rangewalk Digital Studios
Set objCDO = Server.CreateObject("CDO.Message"
With objCDO
.To = strTo
.From = strFrom
.Subject = strSubject
.TextBody = strBody
.Host = URL/IP OF THE TARGET SMTP SERVER GOES HERE
.Send
End With
Set objCDO = Nothing
Doc
Rangewalk Digital Studios
Replied 07 Nov 2002 19:30:36
07 Nov 2002 19:30:36 A Sharma replied:
<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> 3 cheers for U.....
It was a great help.......I highly appreciate it....
Thnaks
AS
Edited by - join_amit on 08 Nov 2002 08:26:42
It was a great help.......I highly appreciate it....
Thnaks
AS
Edited by - join_amit on 08 Nov 2002 08:26:42
Replied 08 Nov 2002 08:25:32
08 Nov 2002 08:25:32 A Sharma replied:
There is an issue i am facing here.......
Actually, parallel to that i am also working on an application of sending email in VB using SMTP, the code picks up recepients email from a database, now when i am sending emails 1-by-1 after sending a few mails, a window popedup saying
"The number of mails sent exceeds for a perticular time period"
IS THERE ANY WAY THAT THE ISP/smtp CAN BE BY-PASSED TO DETECT MULTIPLE EMAILS SENT...?
looking forward to ur help in this matter
Your help is highly appreciated........
Thanks
AS
Edited by - join_amit on 08 Nov 2002 08:27:40
Actually, parallel to that i am also working on an application of sending email in VB using SMTP, the code picks up recepients email from a database, now when i am sending emails 1-by-1 after sending a few mails, a window popedup saying
"The number of mails sent exceeds for a perticular time period"
IS THERE ANY WAY THAT THE ISP/smtp CAN BE BY-PASSED TO DETECT MULTIPLE EMAILS SENT...?
looking forward to ur help in this matter
Your help is highly appreciated........
Thanks
AS
Edited by - join_amit on 08 Nov 2002 08:27:40
Replied 08 Nov 2002 13:27:38
08 Nov 2002 13:27:38 Dave Blohm replied:
I see only two solutions to this:
1) get in touch with the ISP in question and see if this can be changed.
2) (and I don't condone this) the vast majority of mail enabled web servers allow anonymous usage of their SMTP services...this means that you can use virtually any public web server to bounce your mail off of.
Doc
Rangewalk Digital Studios
Edited by - on 08 Nov 2002 13:28:22
1) get in touch with the ISP in question and see if this can be changed.
2) (and I don't condone this) the vast majority of mail enabled web servers allow anonymous usage of their SMTP services...this means that you can use virtually any public web server to bounce your mail off of.
Doc
Rangewalk Digital Studios
Edited by - on 08 Nov 2002 13:28:22