Save current email to IIS SMTP Service pickup path for delivery.
[Syntax] Visual C++: HRESULT SaveMailEx(BSTR PickupPath, long* pVal) Visual Basic: SaveMailEx(PickupPath As String) As Long
Parameters
Return Value
Remarks
Example
[ASP, VBScript - Send Email by IIS SMTP Pickup] Dim oSmtp, pickupPath Set oSmtp = Server.CreateObject("EASendMailObj.Mail") oSmtp.LicenseCode = "TryIt" pickupPath = "c:\inetpub\mailroot\pickup" oSmtp.FromAddr = "test@msn.com" oSmtp.AddRecipient "support team", "support@adminsystem", 0 oSmtp.Subject = "test subject" oSmtp.BodyText = "test body" If oSmtp.SaveMailEx(pickupPath ) = 0 Then Response.Write "Email queued" Else Response.Write "SaveMailEx method failed" Response.Write oSmtp.GetLastErrDescription() End If
See Also
Work with EASendMail Service(Mail Queuing)
SendMailToQueue Method
SendMailToQueueEx Method
SendMail Method