douqiao5543 2018-08-17 07:45
浏览 78

通过特定的电子邮件提供商/ Infusionsoft通过C#SDK发送电子邮件

I would like to understand better process of sending emails via Infusionsoft email service provide.

For example I've found this piece of code on internet that shows example of sending the email via PHP:

 <?php
 echo "Hello World! <br/>";
 include_once('iSDK/src/isdk.php');
 //require_once"iSDK/src/isdk.php";
 $myApp = new iSDK();
 // Test Connnection
 if ($myApp->cfgCon("connectionName"))
 {
  echo "Connected...";
 }
 else
 {
  echo "Not Connected...";
 }

  $myApp->sendEmail('conList','marif252@gmail.com','arif.liaqat@yahoo.com', 'ccAddresses', 'bccAddresses', 'contentType', 'subject', 'htmlBody', 'txtBody');

 ?>

However, I wasn't able to find anything on C# matter... Has anyone else worked with this before that could show me an example on how it's done?

  • 写回答

1条回答 默认 最新

  • dsjojts9734 2018-08-17 07:55
    关注

    I am constantly using the following code

            MailMessage Msg = new MailMessage();
    
            Msg.From = new MailAddress("youremail", "your title", System.Text.Encoding.UTF8);
    
            Msg.To.Add("sendingemailadres");
            Msg.Subject = "Your Password Details";
            Msg.Body = "your message";
            Msg.IsBodyHtml = true;
    
            SmtpClient smtp = new SmtpClient();
            smtp.Host = "smtp.gmail.com";
            smtp.EnableSsl = true;
            smtp.Port = 587;
            smtp.EnableSsl = true;
            smtp.Credentials = new NetworkCredential("youremail(it can be gmail)", "your email's password");
            smtp.Send(Msg);
    
    评论

报告相同问题?

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测