Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 29853

Simple Mail Transfer Protocol. Standard for sending e-mails.

2 votes
Accepted

How to use SMTP configured on SharePoint 2010 server in custom WebPart to send email?

Instead of hard coding the SMTP information into the code, we are going to use the SMTP settings that are configured with the SharePoint Central Administration. … //Add the attachment objMailMessage.Attachments.Add(new System.Net.Mail.Attachment(memoryStreamOfFile, insert_Filenamefor_attachment, insert_content_type)); //Create the SMTP
Dikesh Gandhi's user avatar