aspNetEmail

EmailMessage.SendWebPage Method 

A static/shared method for emailing a webpage.

public static bool SendWebPage(
   string fromAddress,
   string toAddress,
   string subject,
   string mailServer,
   string url,
   bool followRedirects,
   bool autoEmbedImages
);

Parameters

fromAddress
The 'FROM' email address used for sending the email.
toAddress
The email recipient.
subject
The subject of the email.
mailServer
The relay mail server.
url
The http:// url of the web page to email.
followRedirects
Follow any redirects of the webpage.
autoEmbedImages
Automatically embed images in the email.

Return Value

True if the email was successful

Example

[C#]
EmailMessage.SendWebPage( "me@mycompany.com", "you@yourcompany.com;him@hiscompany.com", "yahoo home page", "127.0.0.1", "Http://www.yahoo.com", false, false );
			
[Visual Basic]
EmailMessage.SendWebPage( "me@mycompany.com", "you@yourcompany.com;him@hiscompany.com", "yahoo home page", "127.0.0.1", "Http://www.yahoo.com", false, false )
			

See Also

EmailMessage Class | aspNetEmail Namespace