Base Email FileName used when an email is sent to the filesystem, during a mailmerge.
Used when sending emails using the SendToMSPickup() or SendToIMAILQueue() type methods. By default, aspNetEmail will create a filename, for these emails based upon a unique Guid. When BaseEFN is set, aspNetEmail will prefix the filenames with BaseEFN and append a date to it. This provides the administrator with an easy way of creating email filenames based upon their criteria.
For example: If the SendToMSPickup() method is called, and BaseEFN = "Campaign1--", the following email filenames will be generated:
Signifying a mailmerge was sent with the designation 'Campaign1-' on Dec 10, 2002, at 8:33 am, 32.912 sec
[C#]
EmailMessage msg = new EmailMessage();
msg.FromAddress = "me@myCompany.com";
msg.Subject = "Order Confirmation";
//logging for easier troubleshooting
msg.Logging = true;
msg.LogPath = "c:\\email.log";
msg.BaseEFN = "Campaign1-";
DataTable dt = GetDataTable();
//perform a mail merge based upon the columns in the DataTable
msg.To = "##Email_Address##";
msg.Body = "Hi ##fldFirstName##\r\n Here is your invoice and order confirmation...";
//send the mail merge
msg.SendMailMergeToMSPickup( dt );
[VB.NET]
Dim msg As New EmailMessage()
msg.FromAddress = "me@myCompany.com"
msg.Subject = "Order Confirmation"
'logging for easier troubleshooting
msg.Logging = True
msg.LogPath = "c:\email.log"
msg.BaseEFN = "Campaign1-"
Dim dt As DataTable = GetDataTable()
'perform a mail merge based upon the columns in the DataTable
msg.To = "##Email_Address##"
msg.Body = "Hi ##fldFirstName##" + ControlChars.Cr + ControlChars.Lf + " Here is your invoice and order confirmation..."
'send the mail merge
msg.SendMailMergeToMSPickup(dt)