Message: Failure sending mail. Source: System HelpLink:

3 visualizaciones (últimos 30 días)
khouloud daboussi
khouloud daboussi el 2 de Jun. de 2019
NET.addAssembly('System.Net')
import System.Net.Mail.*;
mySmtpClient = SmtpClient('mail.google.com');
mySmtpClient.UseDefaultCredentials = false;
mySmtpClient.Credentials = System.Net.NetworkCredential('...@gmail.com', '****');
from = MailAddress('.....com');
to = MailAddress('.....com');
myMail = MailMessage(from, to);
myMail.Subject = ['Test message: ' datestr(now)];
myMail.SubjectEncoding = System.Text.Encoding.UTF8;
myMail.Body = '<b>Test Mail</b><br>using <b>HTML</b>';
myMail.BodyEncoding = System.Text.Encoding.UTF8;
myMail.IsBodyHtml = true;
mySmtpClient.Send(myMail)

Respuestas (0)

Categorías

Más información sobre Call Web Services from MATLAB Using HTTP en Help Center y File Exchange.

Productos


Versión

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by