Click to See Complete Forum and Search --> : Send email by .asp page


abhayatweb
01-30-2007, 04:04 AM
:confused:

Hi friends,
I want to know, is there any way to send an email to a specific email address or addresses. Currently i m using following script :
Dim myMail
Set myMail=CreateObject("CDO.Message")
myMail.Subject="You have received an enquiry about Travelling"
myMail.From="maymail@test.com"
myMail.To="others@test.com"
myMail.TextBody="You have received an enquiry about Travelling."
myMail.Send
set myMail=nothing
But its not working sometimes. So, is there any powerfull and simplest way for this.

Terrorke
01-30-2007, 06:16 AM
does it send email at all?
Or does it fail in some cases?

abhayatweb
01-30-2007, 06:29 AM
Hi Terrorke, thanks for taking interest.
It fails in maximum cases e.g.- It cann't send mails on : (yahoo, rediffmail, gmail) as they are the most used email servers.
It has worked only one time to yahoo.(first time when i have found this script) But now, it is not working at all.
Please help...

Terrorke
01-30-2007, 06:34 AM
have you changed anything on the configuration of your SMTP server?
Is this setup correctly?

abhayatweb
01-30-2007, 06:42 AM
Actually I have created a website. And there is a feedback form on that. When anyone submits the form, the next page simply sends the form information via email.

Terrorke
01-30-2007, 06:45 AM
You can set it up in IIS

Here is some information about it :http://support.microsoft.com/kb/308161

Once set up try looking at the queue or badmail folder in the inetpub directorie, to see if the mail is send or rejected by your server

itHighway2007
02-05-2007, 05:41 PM
Along with the tips given by Terrorke, also make sure that MYMAIL.FROM or MYMAIL.TO contain email address valid for that domain.

Zeeshan Ahmed
itHighway (http://www.ithighway.co.uk)