Hello,
we send emails from HTTPS . I have created a Macro which draft us a Email standard format.
But, HTTPS it requires login/ password based.so, each time we have to copy the Email format & paste it in HTTPS.
so, i would like to know if we can link this Macro to HTTPS.
Here is an example of the Code which created Email for us :
Sub portal()
Dim objOutlook As Object
Dim olNs As Outlook.Namespace
Dim Calendar As Outlook.MAPIFolder
Dim olAppt As Outlook.AppointmentItem
Dim objMailMessage As Outlook.MailItem
Dim emlBody, sendTo As String
Dim wkbook As String
Dim myTime As Date
Application.ScreenUpdating = False
Set objOutlook = CreateObject("Outlook.Application")
Set objMailMessage = objOutlook.CreateItem(0)
Set olNs = objOutlook.GetNamespace("MAPI")
olNs.Logon
sendTo = ""
emlBody = "Hello ," & vbNewLine & " Please note that for order XXXXX, product XXXXX can not be found on the portal ID ATEU3433454. " & vbNewLine & " Would you please advise further? " & vbNewLine & " Thank you."
With objMailMessage
.To = sendTo
.Body = emlBody
.Subject = "product not on portal"
.Display
.Save
End With
Set Calendar = olNs.GetDefaultFolder(olFolderCalendar)
Set olAppt = objOutlook.CreateItem(olAppointmentItem)
myTime = Format(Now(), "hh:mm AM/PM")
myDate = Date + 1
olSub = "product not on portal"
olAppt.Start = myDate + myTime
With olAppt
.Duration = 30
.Subject = olSub
.Body = emlBody
.Location = ""
'.ReminderMinutesBeforeStart = 30
.ReminderSet = True
End With
olAppt.Save
Set olApp = Nothing
Set olNs = Nothing
Set olAppt = Nothing
Set Calendar = Nothing
End Sub
HTTPS Address is :
https://login.portal.hp.com/smlogin...in.hp.com/integration/r4/wfsworklist/TaskList
Pleas Help .