below is the smtp code i am using, i got the exceptions
'System.Web.HttpException' occurred in system.web.dll
Additional information: Could not access 'CDO.Message' object.
so in smtp virtual server properties->Access->relay selected 'all except the list below' and both above exceptions went away
but still no email was sent by the code when i checked my hotmail account
i tried using both the strings for SmtpServer = "127.0.0.1"; //"localhost"
MailMessage mail = new MailMessage();
mail.To = "email@example.com";
mail.From = "firstname.lastname@example.org";
mail.Subject = "this is a test email.";
mail.Body = "this is my test email body.";
MailAttachment attachment = new MailAttachment( @"D:\1\trial\ProjectWorkSpace5\3769.jpg" ); mail.Attachments.Add( attachment );
SmtpMail.SmtpServer = "127.0.0.1"; //"localhost"
SmtpMail.Send( mail );
now why would it not send the email?! ....thank you in advance for your assistance
Although it is an old technology, serial ports are still being used by many hardware manufacturers.
If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports. I needed to…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
If you are looking for an automated solution for backup single or multiple Office 365 user mailboxes to Outlook data file, then you can use Kernel Office 365 Backup & Restore tool. Go through the video to check out the steps to backup single or mult…
Did you know PowerShell can save you time with SaaS platforms? Simply leverage RESTfulAPIs to build your own PowerShell modules. These will kill repetitive tickets and tabs, using the command Invoke-RestMethod.
Tune into this webinar to learn how…