Print Page | Close Window

(re)send welcome email

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=18368
Printed Date: 29 March 2026 at 10:14am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: (re)send welcome email
Posted By: dj_nomercy
Subject: (re)send welcome email
Date Posted: 12 February 2006 at 2:18am
Hello,
We have a forum for our clients, so nobody can register him self
we do that with the admin but when we make a new account in the admin it isnt send to the email we filled in.
  1. How can i (re)send a welcome email with the username and password to a user we created in the admin

 



-------------
Regards
NoMercy



Replies:
Posted By: ub3rl337ch3ch
Date Posted: 13 February 2006 at 10:45pm
well one way would be to look at the database itself and send an email manually... easier if you only have to do it once... if you want an easily *repeatabe* solution: welcome to the wonderful world of cdo...
 
 
Set emailvar = CreateObject("CDO.Message")
Set configvar = CreateObject("CDO.Configuration")
configvar.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "123.123.123.123"
configvar.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
configvar.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
configvar.Fields.Update
 
Set emailvar.Configuration = configvar
 
sql = "SELECT username, password, email where id=" & theid
vrec.open sql, adoCon
 
emailvar.to = vrec("email")
emailvar.from = whatever email you want (prolly mailto:admin@yoursite.com - admin@yoursite.com )
emailvar.subject = "Your Login Details"
emailvar.textbody = "Login: " & vrec("username") & vbcrlf & vbcrlf & "Password: "  & vrec("password")
emailvar.send
 
 
then close all your stuff and you're done...
 
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net