MvcMailer
MvcMailer copied to clipboard
Find the file name of the email
I'm using MvcMailer to save emails to a specified directory locally in my asp.net mvc web application. However I would like to save the file name (e.g. 90b871cd-038f-400a-b4d7-01f87e8c3c26.eml) of the email in the database which will later be accessed using another exe to send emails from the pick up folder.
var mail = Mailer.Example_Mail() mail.To.Add("[email protected]"); mail.Send();
<smtp from="[email protected]" deliveryMethod="SpecifiedPickupDirectory"> <network host="localhost" /> <specifiedPickupDirectory pickupDirectoryLocation="c:\temp\" /> </smtp>
Could you please advise me on how to retrieve the file name from the mail object?