Friday, February 26, 2010

Send Automatic Email

Craete Email Sending Page like This:

autoemail .aspx

             strmailmsg.Append("<html><title></title><meta http-equiv='Content-Type' content='text/html;      charset=iso-8859-1'>");
            strmailmsg.Append("<body><script type='text/javascript'>");
            strmailmsg.Append("var AdBrite_Title_Color = '0000FF';");
            strmailmsg.Append("var AdBrite_Text_Color = '000000';");
            strmailmsg.Append("var AdBrite_Background_Color = 'FFFFFF';");
            strmailmsg.Append("var AdBrite_Border_Color = 'CCCCCC';");
            strmailmsg.Append("var AdBrite_URL_Color = '008000';");
            strmailmsg.Append("try{var AdBrite_Iframe=window.top!=window.self?2:1;var );
            strmailmsg.Append("document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){");
            strmailmsg.Append("var AdBrite_Iframe='';var AdBrite_Referrer='';}");
            strmailmsg.Append("</script>");
            strmailmsg.Append("<script type='text/javascript'>document.write(String.fromCharCode(60,83,67,82,73,80,84));document.");
            strmailmsg.Append("write(' src='zs=3330305f323530&ifr='+");
            strmailmsg.Append("AdBrite_Iframe+'&ref='+AdBrite_Referrer+'' type='text/javascript'>');document.write(String.");
            strmailmsg.Append("fromCharCode(60,47,83,67,82,73,80,84,62));</script>");
            strmailmsg.Append("<div><a target='_top' href='/purchase_form.php?opid=1515036&afsid=1> Click Here </a></div");
            strmailmsg.Append("</body></html>");
                MailMessage msg = new MailMessage();
                msg.Body = strmailmsg.ToString();
                msg.From = "Do_Not_Reply@sfdpl.com";
                msg.Subject = "Consolidated Renewl Remainder";
                msg.BodyFormat = MailFormat.Html;
                msg.Priority = MailPriority.Normal;
                System.Web.Mail.SmtpMail.SmtpServer = "";
                //msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", 587);
                //msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing", 2);
                //msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", 1);
                msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername",     );
                msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", );
                msg.To = "";
                msg.Bcc = "";
                System.Web.Mail.SmtpMail.Send(msg);
                msg = null;
                mail = null;

Then Webmaster Schedule in Your Ftp Accout 

Set Time And Day For Scheduling

Thn Its Work