Topic Wiki

Training
Codecademy.com offers hand on courses for  various coding languages including HTML, JavaScript, CSS, and more. FREE
TreeHouse.com 8)
w3schools.com
regex

Resources
Browser compatibility
Can i use

To test/show-of your skills
html - css - js
http://codepen.io/pen/
http://jsfiddle.net/

My sql
www.sqlfiddle.com

Editor
notepad-plus-plus.org/

android development
http://developer.android.com/sdk/index.html

js librery
http://greensock.com/ nice animation
getbootstrap.com/css/ responsive layout
jquery.com do more write less

Free Books
http://it-ebooks.info/

Test client browser version
http://browser-update.org/
« Last edited by yesitsme on May 17, 2015, 11:13:37 AM »

Author Topic: Programming for Beginners  (Read 62585 times)

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 11405
  • Total likes: 1435
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Programming for Beginners
« Reply #330 on: December 02, 2015, 08:48:49 PM »
Workflowy. You won't know what you're missing until you try it.

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 11405
  • Total likes: 1435
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Workflowy. You won't know what you're missing until you try it.

Online chucksterace

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jul 2012
  • Posts: 6906
  • Total likes: 17
  • DansDeals.com Hat Tips 40
  • Gender: Male
    • View Profile
    • LYNX IT Consulting
  • Location: Chicago, Jerusalem
  • Programs: AA Exec Plat; UA Premier 1K; ; LY Plat; Hyatt Platinum; Hertz President's Circle; Avis President's Club
Re: Programming for Beginners
« Reply #332 on: December 27, 2015, 02:50:04 PM »
I have a few Javascript variables I need emailed to a person after they only input their email and push submit.

Any simple way to do this?
You may not hold me responsible for any actions taken that were recommended from my account or username.

Offline JoeyShmoe

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Nov 2014
  • Posts: 1157
  • Total likes: 80
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Programming for Beginners
« Reply #333 on: December 27, 2015, 03:33:17 PM »
I have a few Javascript variables I need emailed to a person after they only input their email and push submit.

Any simple way to do this?
You need a server for that, Javascript can't send emails. You can send the Javascript variables to your server and email it from there
DDF A-Z Link Extension
Chrome
Firefox
Info

Offline AnonymousUser

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Feb 2013
  • Posts: 3014
  • Total likes: 4
  • DansDeals.com Hat Tips 0
    • View Profile
Re: Programming for Beginners
« Reply #334 on: December 28, 2015, 12:17:32 PM »
I have a few Javascript variables I need emailed to a person after they only input their email and push submit.

Any simple way to do this?
Use Google App Scripts.

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 11405
  • Total likes: 1435
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Workflowy. You won't know what you're missing until you try it.

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 11405
  • Total likes: 1435
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Programming for Beginners
« Reply #336 on: January 17, 2016, 03:09:00 PM »
Workflowy. You won't know what you're missing until you try it.

Offline yakov116

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: May 2014
  • Posts: 1480
  • Total likes: 75
  • DansDeals.com Hat Tips 1
  • Gender: Male
    • View Profile
Re: Programming for Beginners
« Reply #337 on: March 07, 2016, 12:09:22 PM »
Can anyone help me figure out why it's grabbing the "To" name not the "To" email address"?

Code: [Select]
Public Sub Check_ReceivedTime(newMail As Outlook.MailItem)

Dim obj As Object
Dim ReceivedHour As Integer
Dim newReply As MailItem
Dim msg As String

 
ReceivedHour = Hour(newMail.ReceivedTime)

'Only do anything if before Shabbos
If weekday(newMail.ReceivedTime) < 6 Then
If weekday(newMail.ReceivedTime) = 5 Then
    msg = "Sorry I am not in the office, I will respond on Sunday morning. If its urgent please email **********"
Else
    If ReceivedHour <= 2 Or ReceivedHour >= 19 Then
    msg = "Sorry I have have left the office alrady, I will respond tomorrow morning after 10:30 am."
    ElseIf ReceivedHour >= 3 And ReceivedHour <= 1030 Then
    msg = "Sorry I am not in the office, I will respond after 10:30 am or on Sunday after 11:am."

Else

    Debug.Print "After 10:30, not Friday. Do not sent the automated reply."

End If
End If
End If
'End If

If Len(msg) > 0 Then
    Set newReply = newMail.Reply
    CreateMail newReply.To, msg
End If

Set newReply = Nothing

End Sub

 
Private Sub CreateMail(ReplyAddress As String, msg As String)

Dim objMail As Outlook.MailItem

Set objMail = CreateItem(olMailItem)

With objMail
    .To = ReplyAddress
    .Body = msg
    .Subject = "Please Note!"

    .Display
    ' or
    ' .Send

End With

End Sub
Dont worry about the timing that i have fixed but the rest....
I need this done by yesterday so if any one can help me

I tried using

Code: [Select]
If Len(msg) > 0 Then
    Set newReply = newMail.Reply
    CreateMail newReply.Recipients(0), msg
    MsgBox newReply.Recipients.Count & " " & newReply.Recipients(0)
End If
 
Set newReply = Nothing
 
End Sub
 
 
Private Sub CreateMail(ReplyAddress As String, msg As String)
 
Dim objMail As Outlook.MailItem
 
Set objMail = CreateItem(olMailItem)
 
With objMail
    .Recipients.Add (ReplyAddress)
    .Body = msg
    .Subject = "Please Note!"
 
    .Display
    ' or
    ' .Send
 
End With
 
End Sub

But that did nothing.

Thanks
Money talks...mine says goodbye!

Offline yakov116

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: May 2014
  • Posts: 1480
  • Total likes: 75
  • DansDeals.com Hat Tips 1
  • Gender: Male
    • View Profile
Re: Programming for Beginners
« Reply #338 on: March 07, 2016, 04:28:55 PM »
Can anyone help me figure out why it's grabbing the "To" name not the "To" email address"?

Code: [Select]
Public Sub Check_ReceivedTime(newMail As Outlook.MailItem)

Dim obj As Object
Dim ReceivedHour As Integer
Dim newReply As MailItem
Dim msg As String

 
ReceivedHour = Hour(newMail.ReceivedTime)

'Only do anything if before Shabbos
If weekday(newMail.ReceivedTime) < 6 Then
If weekday(newMail.ReceivedTime) = 5 Then
    msg = "Sorry I am not in the office, I will respond on Sunday morning. If its urgent please email **********"
Else
    If ReceivedHour <= 2 Or ReceivedHour >= 19 Then
    msg = "Sorry I have have left the office alrady, I will respond tomorrow morning after 10:30 am."
    ElseIf ReceivedHour >= 3 And ReceivedHour <= 1030 Then
    msg = "Sorry I am not in the office, I will respond after 10:30 am or on Sunday after 11:am."

Else

    Debug.Print "After 10:30, not Friday. Do not sent the automated reply."

End If
End If
End If
'End If

If Len(msg) > 0 Then
    Set newReply = newMail.Reply
    CreateMail newReply.To, msg
End If

Set newReply = Nothing

End Sub

 
Private Sub CreateMail(ReplyAddress As String, msg As String)

Dim objMail As Outlook.MailItem

Set objMail = CreateItem(olMailItem)

With objMail
    .To = ReplyAddress
    .Body = msg
    .Subject = "Please Note!"

    .Display
    ' or
    ' .Send

End With

End Sub
Dont worry about the timing that i have fixed but the rest....
I need this done by yesterday so if any one can help me

I tried using

Code: [Select]
If Len(msg) > 0 Then
    Set newReply = newMail.Reply
    CreateMail newReply.Recipients(0), msg
    MsgBox newReply.Recipients.Count & " " & newReply.Recipients(0)
End If
 
Set newReply = Nothing
 
End Sub
 
 
Private Sub CreateMail(ReplyAddress As String, msg As String)
 
Dim objMail As Outlook.MailItem
 
Set objMail = CreateItem(olMailItem)
 
With objMail
    .Recipients.Add (ReplyAddress)
    .Body = msg
    .Subject = "Please Note!"
 
    .Display
    ' or
    ' .Send
 
End With
 
End Sub

But that did nothing.

Thanks
Bump
Money talks...mine says goodbye!

Offline JoeyShmoe

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Nov 2014
  • Posts: 1157
  • Total likes: 80
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Programming for Beginners
« Reply #339 on: March 07, 2016, 04:54:56 PM »
Bump
Based on MSDN here .To (which you pass into Create Mail newReply.To) it returns the names, not the address
Quote from: https://msdn.microsoft.com/en-us/library/office/ff860378.aspx
Returns or sets a semicolon-delimited String list of display names for the To recipients for the Outlook item. Read/write.

Here's a list of the parameters for the MailItem Object.

P.S. I've never actually seen this code before, this is a product of my research
DDF A-Z Link Extension
Chrome
Firefox
Info

Offline yakov116

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: May 2014
  • Posts: 1480
  • Total likes: 75
  • DansDeals.com Hat Tips 1
  • Gender: Male
    • View Profile
Re: Programming for Beginners
« Reply #340 on: March 07, 2016, 05:11:59 PM »
Based on MSDN here .To (which you pass into Create Mail newReply.To) it returns the names, not the address
Here's a list of the parameters for the MailItem Object.

P.S. I've never actually seen this code before, this is a product of my research
Correct how can i work around that?
Money talks...mine says goodbye!

Offline JoeyShmoe

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Nov 2014
  • Posts: 1157
  • Total likes: 80
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Programming for Beginners
« Reply #341 on: March 07, 2016, 05:16:18 PM »
Correct how can i work around that?
Did you try Recipients and/or ReplyRecipients?
DDF A-Z Link Extension
Chrome
Firefox
Info

Offline yakov116

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: May 2014
  • Posts: 1480
  • Total likes: 75
  • DansDeals.com Hat Tips 1
  • Gender: Male
    • View Profile
Re: Programming for Beginners
« Reply #342 on: March 07, 2016, 05:19:36 PM »
Did you try Recipients and/or ReplyRecipients?
yup look at the second example.
I would have to add 
Code: [Select]
Set myRecipient = myItem.Recipients.Add("Dan Wilson")
and that i cant do...
Money talks...mine says goodbye!

Offline JoeyShmoe

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Nov 2014
  • Posts: 1157
  • Total likes: 80
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Programming for Beginners
« Reply #343 on: March 07, 2016, 05:20:34 PM »
Sorry, that's about as much as I can help you here
DDF A-Z Link Extension
Chrome
Firefox
Info

Offline yakov116

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: May 2014
  • Posts: 1480
  • Total likes: 75
  • DansDeals.com Hat Tips 1
  • Gender: Male
    • View Profile
Re: Programming for Beginners
« Reply #344 on: March 07, 2016, 05:22:11 PM »
Sorry, that's about as much as I can help you here
thanks
Money talks...mine says goodbye!