SendEmail
Function to Send an email to one or more recipients.
Syntax:
bool SendEmail(string senderEmail, string senderPassword, string senderName, string recipientEmails, string emailSubject, string emailBody, string smtpClientHost, int smtpClientPort);
Send an email to one or more recipients.
Params:
string senderEmail: A String parameter that containing the Email of the sender.
string senderPassword: A String parameter that containing the Sender Email's password.
string senderName: A String parameter that containing the name of the sender.
string recipientEmails: A String parameter that containing one or more recipient Emails.
string emailSubject: A String parameter that containing the Subject of the Email.
string emailBody: A String parameter that containing the Body of the Email.
string smtpClientHost: A String parameter that containing the smtp Client Host of the Sender Email.
int smtpClientPort: An Integer parameter that containing the smtp Client Port of the Sender Email.
Example:
Sending an email:
SVApplications.SendEmail("john@gmail.com", "Password1", "John", "receinver@gmail.com", "Email Subject", "Body of the email", "smtp.gmail.com", 587);
|
Here is a list of the most common hosts and ports: