Hi,<BR><BR>In one of my projects I want to send an automated mail response to the user who submits the registration form that the user has been registered. <BR><BR>Can anyone help me with this ??<BR><BR>
RE: How to give an automated mail response after u
I use CDONTS. If you have MSDN, run a search on CDONTS.newmail for more options. Here is the basic structure:<BR><BR>dim objMail<BR>Set objMail = Server.CreateObject("CDONTS.NewMail")<BR>objMail.F rom = "e-mail address"<BR>objMail.To = "e-mail address"<BR>objMail.Subject = "Order form"<BR>objMail.Body = msgStr 'message string <BR>objMail.importance = 1 'Normal importance<BR>objMail.BodyFormat = 1<BR>objMail.MailFormat = 0<BR>objMail.Send <BR>Set objMail = nothing<BR><BR>Run this after the user has been registered.<BR><BR>Rob.
Thanks for that reply as I am very interested in doing this to but unfortunatley am having a slight problem getting it to work.<BR>I took the text that you printed and pasted in a file I saved as 'email.asp' I then made a seperate page with a basic form and linked this to email.asp (think this is where I went wrong) and nothing happened it just printed the text from 'email.asp' but I recieved no email unfortunatly, please could you explain what I have done wrong and how I can get this working.<BR>Basically I am tryign to get a users password emailed to them if they forget it.<BR><BR>Thanks very much for your help.<BR><BR>Caroline
It could be that you do not have an SMTP server installed on your machine. Either that, or it is not configured properly.<BR><BR>You will need to set one up if you do not have it already. It is part of the NT Option Pack.<BR><BR>If you wish to see if the rest of the code was working properly, then go to your "mailroot\" folder and see what's in there. If you have a lot of files in the queue, then it is obviously not sending them. Just open one up in a text editor and you'll see that they are the emails that you've been trying to send unsucessfully.<BR><BR>Hope that sheds a bit of light,<BR>firstname.lastname@example.org
Hi Paul<BR><BR>Thanks very much for that, you are quiet correct, I have got mails waiting to be sent out but unfortunatly the STMP server isn't sending them on..our technical guy is looking at it now..thanks very much again.<BR><BR>Caroline