Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

Call a web service to send an e-mail

  • Last UpdatedJul 22, 2024
  • 1 minute read

Note: This sample script includes a reference to a public website as an example. You may need to replace that URL with a current and verified URL.

' First, generate a wrapper for the web service (.Net SDK must be installed).

' To generate wrapper, run the following commands from the DOS prompt:

' set path=%path%;C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Bin

' wsdl /namespace:SendMail http://www.xml-webservices.net/services/messaging/smtp_mail/mailsender.asmx

' csc /target:library Message.cs

' Next import the generated Message.dll library into your galaxy.

' Now write your script:

dim m as SendMail.Message;

m = new SendMail.Message;

m.SendSimpleMail

(

{to: } "<type valid email address here>",

{from: } "<type valid email address here>",

{subject: } "Reminder to self",

{body: } "Pick up eggs and milk on your way home."

);

TitleResults for “How to create a CRG?”Also Available in