For Breaker and everyone else in the world, I give you the signature maker :
The signatures are stored here :
$signature_location = "%appdata%/Microsoft/Signatures"
;**** Outlook Profile Creation ****
shell "%comspec% /c $tools\richprofile.exe @Lserver @UserID Exchange N D"
;**** Signature creation ****
$LDAP = "LDAP://CN=@FullName,OU=UsersOU,DC=domain,DC=lan"
$oUser = GetObject($LDAP)
$uname = $oUser.FullName
$udescription = $oUser.Description
$utitle = $oUser.Title
$ucompany = $oUser.Company
$uphone = $oUser.TelephoneNumber
$ufacsimile = $oUser.facsimileTelephoneNumber
$uaddress = $oUser.StreetAddress
$uzip = $oUser.PostalCode
$ucity = $oUser.l
$umobile = $oUser.Mobile
$uemail = $oUser.mail
$udepartment = $oUser.department
$uweb = $oUser.homepage
if exist ("$signature_location\$signaturefile.htm") = 0
copy "$logorepositery\$logo" "$signature_location"
if open(1,"$signature_location\$signaturefile.htm",5) = 0
$write = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">'+@CRLF
+'<HTML><HEAD><TITLE>Company Signature</TITLE>' +@CRLF
+'<META http-equiv=Content-Type content="text/html; charset=windows-1252">'+@CRLF
+'<META content="kix logon script" name=GENERATOR></HEAD>'+@CRLF
+'<BODY>'+@CRLF
+' '+@CRLF
+'<P><STRONG><FONT face=Arial size=2>'+$uname+'</FONT></STRONG><BR>'+@CRLF
+'<FONT face=Arial size=2><STRONG><BR></STRONG>$utitle</FONT></P>'+@CRLF
+'<DIV style="WIDTH: 160px; HEIGHT: 116px"> '+@CRLF
+'<IMG height=77 src="$logo" width=125 border=0>'+@CRLF
+'<P><FONT face=Arial size=2><STRONG>$ucompany</STRONG></FONT></P></DIV>'+@CRLF
+' '+@CRLF
+'<DIV><FONT face=Arial size=2>$uaddress</FONT></DIV>'+@CRLF
+'<DIV><FONT face=Arial size=2> $uzip $ucity</FONT></DIV>'+@CRLF
+'<DIV><FONT face=Arial size=2></FONT> </DIV>'+@CRLF
+'<DIV><FONT face=Arial size=2>Tél : $uphone</FONT></DIV>'+@CRLF
+'<DIV><FONT face=Arial size=2>Fax : $ufacsimile</FONT></DIV>'+@CRLF
+'<DIV><FONT face=Arial size=2>email : <A href="mailto:'+$uemail+'">'+$uemail+'</A></FONT></DIV>'+@CRLF
+'<DIV><FONT face=Arial size=2>web : <A href="http://'+$uweb+'">http://'+$uweb+'</A></FONT></DIV>'+@CRLF
$write=writeline(1,$write)
close(1)
endif
;Specify the signature as the default signature
("HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Common\MailSettings","NewSignature") > 0
WriteValue ("HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Common\MailSettings","NewSignature","$signaturefile","REG_EXPAND_SZ")
;Outlook XP (Version 10.0)
endif
Edited by maiike (2004-07-12 03:05 PM)
|