Posts

Showing posts with the label Gmail

iOS v/s Android - Comparing 'Apples' to 'Oranges'

Image
Apple iOS Google Android Released July 29, 2007 September 23, 2008 Latest Version 14 11 Website https://www.apple.com/ios/ios-14/ https://www.android.com/ OS Model Proprietary Open Source Languages 40 100 Assistant Siri Google Assistant Apps 1,000,000 on App Store 2,000,000 on Play Store Operating System Unix Linux Latest Phone iPhone 12 Pixel 5 Phone Website https://www.apple.com/iphone https://store.google.com/product/pixel_5 Let's compare some of the default apps on both platforms...

Send email from Perl in Windows 10

Image
In this program I am using Gmail to send an email from Strawberry Perl on my Windows 10 system. You can install Perl from here: http://strawberryperl.com/ I installed latest Strawberry Perl 5.24.0.1 (64bit) msi and it works fine on Windows 10 Pro 1607. Next install few modules that are required to send email. Open start menu and type CPAN Client that was installed on your PC by Strawberry Perl. Open CPAN Client and type following commands to install: install Email::Send install Email::Send::Gmail install Email::Simple::Creator As we are using gmail for sending email you need to authenticate your account against gmail's smtp server with your gmail credentials and make sure you have enables POP and IMAP email forwarding on from gmail settings. Change your credentials in following program:

5.5.1 Authentication Error in Gmail

Image
Code for sending email using gmail in C# : using System.Net.Mail; using System.Net; MailMessage mail = new MailMessage(); mail.To.Add("dummy@test.com"); mail.From = new MailAddress("dummy-sender@gmail.com"); mail.Subject = "subject"; mail.SubjectEncoding = System.Text.Encoding.UTF8; mail.Body = "foo foo bar"; mail.Priority = MailPriority.High; SmtpClient client = new SmtpClient(); client.UseDefaultCredentials = false; client.Credentials = new NetworkCredential("dummy-sender@gmail.com", "gmail-password"); client.Port = 587; client.Host = "smtp.gmail.com"; client.EnableSsl = true; client.Send(mail); Error: "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required" Solution: Login to your gmail account from which you are trying to send email and then go to https://www.google.com/settings/security/lesss...