docs

Home All functions Legacy functions Categories

vuSetFromReplyTo()

Clarion prototype

Prototype: vuSetFromReplyTo(*CSTRING InFromEmail, *CSTRING InReplyToEmail), SIGNED, PROC, PASCAL, RAW, NAME(‘vuSetFromReplyTo’)

Description

This is the legacy vuMail function name.

Preferred function name:

This function is exported for backward compatibility and behaves identically to vuSmtpSetFromReplyTo().

From value rules

vuSetFromReplyTo() now accepts any of these forms for the From value:

Behavior:

If a display name is supplied without an email address and there is no existing saved/default sender address available, the call fails.

Example (Clarion)

rc      LONG
fromAdr CSTRING(256)
replyTo CSTRING(256)

fromAdr = 'sales@example.com'
replyTo = 'support@example.com'

rc = vuSetFromReplyTo(fromAdr, replyTo)
IF rc = 0
  MESSAGE('From/Reply-To was not accepted: ' & vuMailLastError())
END
Home All functions Legacy functions Categories