Rabu, 23 April 2014

Add Your Yahoo Account to Outlook 2013 Using IMAP settings


Open Outlook 2013 and go to File tab.
yahoo Outlook 2013 Image1
Then, just above the Account Settings button, click Add Account.
yahoo Outlook 2013 Image2
Select Manual setup or additional server types.
yahoo Outlook 2013 Image3
Then in Choose service select POP or IMAP
yahoo Outlook 2013 Image4
Add your user information and for server information,
Account type: IMAP
Incoming mail server: imap.mail.yahoo.com
Outgoing mail server (SMTP): smtp.mail.yahoo.com
Then add your logon information as below.
yahoo Outlook 2013 Image5
Go to More settings and select the Outgoing server tab.
Check box next to My outgoing server (SMTP) requires authentication and select the radio button next to Use same settings as my incoming mail server.
yahoo Outlook 2013 Image6
In the same window go to the Advanced tab and verify the following.
Incoming server (IMAP): 993 or 143
Incoming server encrypted connection: SSL
Outgoing server (SMTP): 25 or 465
Outgoing server encrypted connection: TLS
Click OK when finished.
yahoo Outlook 2013 Image7
Click Next.
If you've entered everything correctly, both tasks will be completed successfully and you can close the window and again click Next.
yahoo Outlook 2013 Image8
You'll get You're all set! message,
Click Finish.
yahoo Outlook 2013 Image9
And now you can check your emails through Outlook.
yahoo Outlook 2013 Image10
sunber:http://pop2imap.com/yahoo_outlook_2013.php

Selasa, 22 April 2014

PowerShell SMTP


# Required parameters
$smtpServer # SMTP server hostname / IP address
$emailFrom # Sender (some SMTP servers require a valid local address)
$emailRcpt # Recipient (comma seperated if multiple)
$emailSubject # Email subject line
$msgBody # Email body
 
$FilePath # Path to attachment file
 
$domain  # Network domain
$username # Network username
$password # Network password
 
# Create required objects...
$smtp = New-Object Net.Mail.SmtpClient -arg $smtpServer
$msg = New-Object Net.Mail.MailMessage
$attach = New-Object Net.Mail.Attachment($FilePath)
$cred = new-object System.net.networkCredential
 
# Populate mail message...
$msg.From = $emailFrom
$msg.To.Add($emailRcpt)
$msg.Subject = $emailSubject
$msg.IsBodyHTML = $true
$msg.Body = $msgBody
$msg.Attachments.Add($attach)
 
# Provide credentials to SMTP client
$cred.domain = "the domain you want"
$cred.userName = "username"
$cred.password = "password"
$smtp.credentials = $cred
 
# Send...
$smtp.Send($msg)