Message Board
Home Automated Living Forums > General HAL Topics > Technical Assistance » Internet Server Can't get email; send notifications

Technical Assistance Questions posted to this conference may be answered by other users and/or HAL Technical Support. You can also contact HAL Technical Support directly.

Reply
 
Thread Tools Display Modes
Old 11-10-2016, 01:37 PM   #1
BDD43
Advanced Member III
 
Join Date: Jul 2009
Posts: 308
Default Re: Internet Server Can't get email; send notifications

Will do.
On another note. I created the below real quick in a windows form (C#) to test..and it worked.

private void button1_Click(object sender, EventArgs e)
{
SmtpClient client = new SmtpClient();
client.Host = "smtp.gmail.com";
client.Port = 587;
client.EnableSsl = true;
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.UseDefaultCredentials = false;
client.Credentials = new NetworkCredential("my gmail account", " my gmail password");

MailMessage msg = new MailMessage();

msg.From = new MailAddress(" my gmail account");
msg.To.Add("my hotmail, my cell phone");
msg.Subject = "Hello You";
msg.Body = "What?";

client.Send(msg);
}
BDD43 is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.