Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
CSIDE and OScript
Creating an Email Message
Drane_Matthew
What is the best way to create and send an email message within Builder? I see features in $Kernel.SMTPClient.SendSimpleMessage(sender,recipient,message) that should do it, but does that automatically take care of opening a connection to the default mail server, etc.? Just calling that didn't seem to work as it didn't have an open socket. Any help would be greatly appreciated.Thanks.
Find more posts tagged with
Comments
Francisco_Alcala-Soler_(iaea_001user3_-_(deleted))
Message from via eLinkHi,> Creating an Email Message> Posted by Drane, Matthew on 04/03/2004 02:14 PM> > What is the best way to create and send an email message > within Builder? > > I see features in > $Kernel.SMTPClient.SendSimpleMessage(sender,recipient,message)> that should do it, but does that automatically take care of > opening a connection to the default mail server, etc.? Just > calling that didn't seem to work as it didn't have an open socket. > > Any help would be greatly appreciated.I am using a function as attached, which has always opened the necessaryports for me, considering that your mail server settings are properlydefined. I guess I dug it out from some of the scripts in$Kernel.SMTPCLient, but I don't remember exactly now.HTH, CurroThis email message is intended only for the use of the named recipient.Information contained in this email message and its attachments may beprivileged, confidential and protected from disclosure. If you are not theintended recipient, please do not read, copy, use or disclose thiscommunication to others. Also please notify the sender by replying to thismessage and then delete it from your system.
Drane_Matthew
Thanks...that seemed to work. I just wanted to make sure there wasn't an existing function that wrapped up the login, execute, and logout together.Thanks.