Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 25th, 2004, 06:32 AM
Authorized User
 
Join Date: Mar 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default No Mail send to external domains

Hello

Having gathered various contact details in a form and sent these off to a database, I want to sent a confirmation of booking to the customer who has filled in the form.

----------------------
dim objCMail
Set objCMail = Server.CreateObject("CDONTS.NewMail")
objCMail.From = "name@domain.uk"
objCMail.To = strEmail
objCMail.Subject = "Your CPD Booking " & strName
objCMail.BCC = "name@hotmail.com"
objCMail.Body = "Thank you for booking a place on " & strCourse & VBcrlf & VBcrlf & "This course costs £" & strFee & "." & VBcrlf & "Invoice Address:" & VBcrlf & strIaddress & VBcrlf & VBcrlf & "If you are paying by cheque, please make cheques payable to... etcetc."
objCMail.Send
Set objCMail = nothing
--------------------------------
This works fine as long as strEmail is my own address, or any address within our domain, but it wont send to any external addresses, and nothing is bcc'd to hotmail.

I suspect I have to do some tweaks serverside (2000 server), but I don't know which and where... Any tips?

Also, is it possible to set up and send another mail object after setting this one to nothing? I'd like to send some slightly different information to another party.

Thanks in advance for your input.


 
Old August 25th, 2004, 08:19 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

This seems to be a typical relay problem at mail server. The configuration of SMTP service needs to be changed. The following link will help you if you are using IIS 5.0.

http://support.microsoft.com/default...b;en-us;310356

If you are not using windows 2000 and IIS 5.0, please search microsoft site with some keyword like "SMTP configuration IIS6.0" etc. You should get answer.

Best wishes
Madhu
 
Old August 26th, 2004, 10:51 AM
Authorized User
 
Join Date: Mar 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Cheers! I'll have a look at that :)

H

 
Old August 31st, 2004, 05:28 AM
Authorized User
 
Join Date: Mar 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for the article.
I have configured the smtp server accordingly to allow absolutely everything (anonymous access is ticked as only option under authentication and I have unticked allow all computer which successfully authenticate, leaving the all except the list below ticked under relay) but I still can't send to other domains :(

Any other suggestions or other things server side that I might not know about?

Cheers.










Similar Threads
Thread Thread Starter Forum Replies Last Post
Send mail and attachments with PHP mail function Lofa Beginning PHP 1 June 2nd, 2008 03:24 PM
send mail chavakoti BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 1 September 4th, 2007 05:03 AM
How to send mail Jolley_tolson PHP How-To 0 August 13th, 2007 03:38 AM
Not able to send a mail hums .NET Framework 2.0 5 November 16th, 2004 03:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.