{"id":3217,"date":"2013-07-30T05:24:08","date_gmt":"2013-07-29T19:24:08","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=3217"},"modified":"2013-07-30T05:24:08","modified_gmt":"2013-07-29T19:24:08","slug":"mac-and-windows-gmail-email-supervised-by-c-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/mac-and-windows-gmail-email-supervised-by-c-primer-tutorial\/","title":{"rendered":"Mac and Windows Gmail Email Supervised by C Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Mac\/EmailSupervisedByC\/GmailEmail_SupervisedBy_C-11of.jpg\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Mac Gmail Email Supervised by C Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Mac\/EmailSupervisedByC\/GmailEmail_SupervisedBy_C-11of.jpg\" title=\"Mac Gmail Email Supervised by C Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Mac Gmail Email Supervised by C Primer Tutorial<\/p><\/div>\n<hr \/>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Windows\/EmailSupervisedByC\/GmailEmail_SupervisedByC-21of.jpg\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Windows Gmail Email Supervised by C Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Windows\/EmailSupervisedByC\/GmailEmail_SupervisedByC-21of.jpg\" title=\"Windows Gmail Email Supervised by C Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Windows Gmail Email Supervised by C Primer Tutorial<\/p><\/div>\n<p>Here we have a Windows Visual Studio C(++) session and Mac Xcode C(++) session (not respectively &#8230; just so that I can show you this <a target=_blank title='Routine Mischief' href='http:\/\/www.tcm.com\/mediaroom\/video\/278190\/Bedazzled-Movie-Clip-Routine-Mischief.html'>video<\/a>), each showing a method of sending a Google Gmail ( see  <a target=_blank title='Gmail Email Invitation Primer Tutorial' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=3098'>Gmail Email Invitation Primer Tutorial<\/a>  ) email via a C program run via calls to the operating system.<\/p>\n<p>Download C programming source code and rename to <a target=_blank title='main.c C programming source code' href='http:\/\/www.rjmprogramming.com.au\/Mac\/EmailSupervisedByC\/main.c_GETME'>main.c<\/a> as required, for a program you might like to call GmailEmailCommandLine maybe, and remember to plugin in  your email account and its password where it currently has &#8220;rmetcalfe15@gmail.com passwordGoesHere&#8221; in the code (for Windows).   This code shows cross-platform code so that the different operating system requirements are catered for by the one supervisory C code source ( ever heard of the term <a target=_blank title='codebase Wikipedia information' href='http:\/\/en.wikipedia.org\/wiki\/Codebase\u200e'>codebase<\/a>? + we not only need to talk about Kevin, we need to talk about <a target=_blank title='source control information from Wikipedia' href='https:\/\/en.wikipedia.org\/wiki\/Revision_control\u200e'>source control<\/a> sometime? ) which can be used on either Xcode for a Mac or Visual Studio for a Windows computer where the Visual Studio C++ project is set up with the same approach as taken in the tutorial <a target=_blank title='Oracle Pro*C Cursor Primer Tutorial' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=2302'>Oracle Pro*C Cursor Primer Tutorial<\/a> to produce a C program.<\/p>\n<p>Download VB.Net programming source code (for a Visual Studio VB.Net Console Application project) and rename to  <a target=_blank title='main.c C programming source code' href='http:\/\/www.rjmprogramming.com.au\/Windows\/EmailSupervisedByC\/Module1.vb_GETME'>Module1.vb<\/a> as required, and when compiled, using Visual Studio VB.Net, rename the resultant *.exe to SmtpGmailEmail.exe in the PATH of the computer ( via echo %PATH% (for Windows) or echo $PATH (for Mac Linux Bash) ) for it to be suitable to use with the C program above.<\/p>\n<p>Okay, so that is the C supervisory approach.   Alternatively, even easier script operating system supervisory approaches (where the C is no longer needed, but the VB.Net is still needed for Windows) are ( where the file[.nam] supports Subject: To: Cc: Bcc: syntaxes ):<\/p>\n<ul>\n<li>rem SmtpGmailEmail.bat for Windows ( placed on PATH ) supervises SmtpGmailEmail.exe ( placed on PATH )\n<\/li>\n<li>rem Usage: SmtpGmailEmail.exe emailer@gmail.com password c:afile.nam [emailto@whatever.huh] [emailcc@whatever.huh] [emailbcc@whatever.huh] [subject words] <\/li>\n<li>SmtpGmailEmail.exe %1 %2 %3 %4 %5 %6 %7 %8 %9<\/li>\n<\/ul>\n<li>\n<hr \/>\n<\/li>\n<ul>\n<li>#!\/bin\/sh<\/li>\n<li># SmtpGmailEmail.sh for Mac ( placed on PATH and chmod 777 SmtpGmailEmail.sh ) supervises sendmail<\/li>\n<li>if [ -f &#8220;$2&#8221; ]; then<\/li>\n<li>sendmail $1 &lt; $2<\/li>\n<li>else<\/li>\n<li>echo Usage: $0 emailto@whatever.huh file.nam<\/li>\n<li>fi<\/li>\n<\/ul>\n<p>Of interest would be smtp protocol information from <a target=_blank title='smtp Wikipedia information' href='http:\/\/en.wikipedia.org\/wiki\/Simple_Mail_Transfer_Protocol'>Wikipedia<\/a>.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d3217' onclick='var dv=document.getElementById(\"d3217\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?s=email\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d3217' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Here we have a Windows Visual Studio C(++) session and Mac Xcode C(++) session (not respectively &#8230; just so that I can show you this video), each showing a method of sending a Google Gmail ( see Gmail Email Invitation &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/mac-and-windows-gmail-email-supervised-by-c-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,29,33,37,39,40],"tags":[176,380,503,885,997,1160,1166,1319,1363,1383,1473],"class_list":["post-3217","post","type-post","status-publish","format-standard","hentry","category-elearning","category-operating-system","category-software","category-tutorials","category-visual-studio","category-xcode","tag-c","tag-email","tag-gmail","tag-operating-system-2","tag-programming","tag-smtp","tag-software-2","tag-tutorial","tag-vb-net","tag-visual-studio","tag-xcode"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/3217"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=3217"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/3217\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=3217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=3217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=3217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}