I\'m using the following code from this answer Sending email in .NET through Gmail. The trouble I\'m having is adding an attachment to the email. How would I add an attachme
The message object created from your new MailMessage method call has a property .Attachments.
message
new MailMessage
.Attachments
For example:
message.Attachments.Add(new Attachment(PathToAttachment));