Web Hosting Talk







View Full Version : ASP Mail problem


fishkin
01-02-2008, 12:57 AM
I just moved my website from a shared hosting plan to a Windows server VPS over the last few days. Only one problem so far - I have a form that visitors fill out, and this form updates my Access database and at the same time sends me an email notification using ASP Mail. The database is getting updated, but I'm not receiving the emails, and no error messages are appearing.

I believe I've succesfully set up SMTP on the server. ASP is working fine.

I don't know if the problem lies in the code I'm using, or if something in the server settings needs to be updated.

Here's a snippet of the code:

Set Mail = Server.CreateObject("SMTPsvg.Mailer") 'create an Asp mail component.
Mail.FromName = "Minyan Database"
Mail.FromAddress= "minyan@godaven.com"
Mail.RemoteHost = "godaven.com"
Mail.AddRecipient "Joseph Fishkin","myemailaddress@fishkinmd.com"
Mail.Subject = "New minyan added to GoDaven.com."
Mail.BodyText = "New minyan has just been added."
Mail.BodyText = Request.Form("Name")
Mail.BodyText = Request.Form("Address")
Mail.BodyText = Request.Form("Address2")
...
Mail.SendMail
Response.Redirect "confirm.asp"

One possibility is the mail.remotehost line - this was what was recommended in my shared server plan (with 1&1), but I'm not sure what to put here, now that I'm on a VPS. Do I put in my domain name? Do I put in the name of the server (which is 's' with a bunch of numbers after it, but no .com suffix after it)? Do I need this line at all, now that I'm running on my own VPS?

Any help would be greatly appreciated!

activelobby4u
01-06-2008, 01:16 AM
May be u should use the default mail component CDOSYS :agree:

shakir
01-06-2008, 03:10 AM
check yours mail companoent. Use cdonts , cdosys