Home > Domino Tips > Administrator > Web > Customizabel "From Address" When Sending Mail From Serveragent
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WEB

Customizabel "From Address" When Sending Mail From Serveragent


Thomas Adrian
08.19.1999
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Here is a tip for you !

Sending mail from a server database using Lotus Script will make the server
the Sender of the message and if someone tries to make a reply, the server will
get the mail which is not a successfull solution.

Instead of sending the message this script saves the document in the servers
MAIL.BOX and
makes sure there is a valid Sender.


Code

Copy this into an agent and use it in the WebQuerySave or WebQueryOpen open
event

Sub Initialize
Dim session As New notessession
Dim db As notesdatabase
Dim maildb As New Notesdatabase("","MAIL.BOX")
Dim maildoc As notesdocument
Dim webdoc As notesdocument

Set db = session.Currentdatabase
Set webdoc = session.Documentcontext

Set maildoc = maildb.Createdocument
maildoc.PostedDate = Now
maildoc.Subject = "The Subject values goes here"
maildoc.Body = "The body field values goes here"

maildoc.Recipients = "enter here the recipient(s) of the message"
maildoc.From = "enter here who should be the sender of the message"
Call maildoc.Save(True,True)
Exit Sub
End Sub


---------



Regards
_____________________________

Thomas Adrian, CLP
Lotus Domino Infrastructure
Volvo Information Technology AB
Tel: +46 31 7657673
Email : thomas.adrian@notes.volvo.se

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Web
Display SharePoint data in a Lotus Notes Web application with Ajax
Top 10 Lotus Notes/Domino administration tips of 2008
How to create a dynamic SVG graph using a Lotus Notes agent
Hosting multiple Lotus Domino servers at one IP address without a VPN
Upgrading and patching Firefox: Security considerations for administrators
Admin2005 Learning Guides
Making old, new flavors of Domino SSO work
A fun site, with serious code
Creating corporate welcome pages with Lotus Notes
Domino Web traffic analyzers

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts