docs

Home All functions Legacy functions Categories

vuSmtpSetServer()

Description

Sets the outbound SMTP server name and port. (legacy name: vuSetMailServer()).

Previously exported as (legacy name, still supported):

Parameters

Returns

A LONG value indicating the result.

Notes

This sets the values stored in the current vuMailKit session. Use vuGlobalsSave() if you want to persist them to the registry.

Example (Clarion)

ROUTINE:Test_vuSmtpSetServer   ROUTINE
  DATA
cServer   CSTRING(256)
ThePort   LONG
RC        LONG

  CODE
  cServer = 'smtp.example.com'
  ThePort = 587
  RC = vuSmtpSetServer(cServer, ThePort)
  STOP('RC=' & RC)
Home All functions Legacy functions Categories