Jmail sends an email in C #

zhaozj2021-02-16  80

First reference Jmail

[Code]

Private void sendmail () {jmail.MessageClass myjmail = new jmail.Mejmail = new jmail.MessageClass (); myjmail.from = "sender mailbox"; myjmail.fromname = "sender"; myjmail.subject = "Mail Topic"; Myjmail. MailServerUsername = "sender mail user name"; myjmail.mailserverpassword = "sender mail password"; Myjmail.AddRecipient ("Recipient Mailbox", "Sender", NULL); Myjmail.Body = "mail content "; Myjmail.send (" Sender Mail Server ", FALSE);

[Code]

转载请注明原文地址:https://www.9cbs.com/read-15245.html

New Post(0)