Product Logo

SMTPit Pro

A Feature-rich Email plug-in

Functions

SMTPit_SetFrom

NameSMTPit_SetFrom
Description

Use the SMTPit_SetFrom function to assign the “From” email address. If you assign a from email address using this function, SMTPit Pro will ignore the Default From field in the Configuration Dialog. SMTPit Pro will validate the email address you give it to see if it “looks” like an email address. If SMTPit Pro cannot find a valid email address, it will return an error. For examples of what SMTPit Pro considers to be a “valid” email address, see the SMTPit_SetTo function.

Return TypeText
FormatSMTPit_SetFrom ( From )
Required Parameters
From

The From Email Address.

Examples
Example 1

Sets the from address to "smtpit@nowhere.com".

SMTPit_SetFrom( "smtpit@nowhere.com" )
Example 2

Sets the from address to "SMTPit Support <smtpit@nowhere.com>".

SMTPit_SetFrom( "SMTPit Support <smtpit@nowhere.com>" )
Example 3

Sets the from address to the text in the "Company Name" field and the email address in the "Company Email" field.

SMTPit_SetFrom( Company Name & "Support <" & Company Email & ">" )
Example 4

Resets the from field so that it will use the default from address.

SMTPit_SetFrom( "" )