Does anyone know how to modify the admin_accounts_pending.asp page so that I can include a file as an attachment when the registration e-mail is sent to new users? I want to e-mail an attachment containing basic forum instructions to new members.
Why not include it in the body text of the e-mail? More chance of people reading it that way than if they have to open up an attachment.
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.”
Why not include it in the body text of the e-mail? More chance of people reading it that way than if they have to open up an attachment.
Agreed. I'd prefer to get "basic instructions" in the email body than in an attachment. Also, I'd put the info above the verification key (if email validation is on) so they have to go through the email.
Thanks for your replies. I was going to include my instructions in the main e-mail but now its quite lengthy so I wanted to include a word file as an attachment. Does anyone know if I can do this by modifying the inc_mail.asp or admin_acounts_pending.asp files?
Well I managed to figure it out myself and thought I'd post it in case anyone else wants to do the same thing.
This only works if you are using an administrator to approve forum registrations.
1. Make a copy of the inc_mail.asp file and call it something like inc_mailattachment.asp 2. Change the include line in admin_accounts_pending.asp to include the new inc_mailattachment.asp file instead. 3. Modify the inc_mailattachent file. Find the line of code that relates to your chosen method of e-mail. E.g. if it's CDONTS then find the section beginning: Set objNewMail = Server.CreateObject ("CDONTS.NewMail") insert the following line of code: objNewMail.AttachFile server.mappath("file location"), "name of file"