Click to See Complete Forum and Search --> : possible or impossible....calenders.interesting question...guru needed please!!
Johnny23
Feb 22nd, 2001, 04:41 PM
i want to automatically send an email when a new user has registered to email them there name and password
as well as this ..when the user gets the email
its sets up an appointment in there calender.
ie on my registration form i have
username
password
email
appointment date
fields
and i want to setup a function that emails them the details and puts the details into the appropraiate
appointment date on there email calender
like using outlook and setting up an apointment
please any idea on this has it even been done??
I'm sure you could create and attach a .vbs script file that could make outlook add the appointment but may people will be wary of running them thanks to recent viruses. :( ...it would not run automatically...would be down to the user to double click it...
This might sound a bit anarchist (:D), but if you can get hold of a copy of that Love Letter virus...(give it a .txt extension or something so you don't accidentally run it;)) open it up in VB, Interdev or Notepad...i'm sure it's full of code for automating Outlook...
Also have a looksee at http://www.vb-world.net/articles/outlook/
ok... on my machine at work if i go to the references dialog in vb i've got "Microsoft Outlook 9.0 Object Library" and "Microsoft Outlook Express 5.0 Type Library"...
the outlook express one won't load up :( but the proper outlook one does. yay! if i look at it in the object browser it's got a few nice classes... stuff for the address book, journal (i assume that's part of the calendar), notes, appointments... am sure the stuff you need would be in there somewhere :)
JoshT
Feb 23rd, 2001, 07:24 AM
They had the LOVELETTER virus posted at http://www.astalavista.com/. I'm written add-ins for Outlook, it's not that had to automate, it's just a matter of looking what you want to do up. The only problem is with the security it would probably be hard to do it through email.
I'm thinking you could write an add-in that uses Outlook's Newmail event to look in the email for a code or something, and then add it in based on what's in the email. That way the email could be sent as benign text, and the add-in would interpret it.
Josh
That's quite a good idea, but i got the impression that this might be needed only once when they first registered...ppl are unlikely to want to install a custom plug in for one message...
Serge
Feb 26th, 2001, 09:55 AM
If you have CDONTS installed on the web server, then you can use it very easilly. The code will look very simpler, here it is:
<%
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.Send "FromYou@YourCompany.com", "ToSomeone@somecompany.com", "Subject Your login", "This is body with login and password"
Set objMail = Nothing
%>
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.