I am trying to implement a "send newsletter" process that works like this: -
1. The author develops a newsletter using Word.
2. When they are ready to distribute it, they save it as HTML, and upload this to the web site. It is then viewable with the appropriate URL.
3. They then distribute it with a web process that uses SendMail.
I have two problems: -
1. When you "Save as web page (*.htm, *.html)" from Word, the document is saved as .htm, and if there are any graphics within the document they are saved in a separate "*_files" folder. How do I upload this folder to the web site?
During testing I'm fudging this by uploading the folder with FTP, but of course this is not a viable solution for users.
2. I can send the email using alternate views, but the htmlview lacks the graphics. My logic reads the uploaded .htm document into a string variable called "HtmlBody", and then
This all works perfectly except that the email arrives just a graphic symbol and blank space where the graphic should be. How do I either send the graphics with the email, or (better) send it with references to the graphics back on the web page. The html that I am sending out contains references to the graphics like <v:imagedata src="./FamNet%201%20July%202010_files/image001.jpg" o:title="NZSGFamNet"/>, which is looking in a subfolder from the folder containing the html. I suppose that if I could solve the first problem I could replace the "./" in the image reference to [URL]. This would not be too difficult, as I could recognize "FamNet%201%20July%202010" as the newsletter name and so look for the string"./" & NewsletterName & "_files". However somebody might be able to suggest a more elegant solution, provided that I can solve the first problem.
My web page produces a simple email that works correctly. I now want to put on image at the top the email. My image is xyz.jpg in folder images in my asp.net web site. Here is my code:
MailMessage mm = new MailMessage(); mm.To.Add(Convert.ToString(Session["Email"])); mm.Subject = "Sales Order"; mm.IsBodyHtml = true; mm.From = new System.Net.Mail.MailAddress("ABC@gmail.com");
I'd like the image to appear at the top of my email. I tried using the <img> tags but the image never displays. I think it's the syntax I'm using for the url path to the image is wrong. How do I do this?
I am creating a nightly process using a stored procedure to check for expiring records and emailing myself and the folks that need to see the information. The trouble I am having is trying to send the data in table "like" view in the message body.Here is the Proc you can see the point at which i try to use a table vairble then use it as a parameter for calling the email proc but it doesn't seem to work.
I am new to ASP.NET and have made a register page, 'get' which on submitting redirects to another page 'pick1' displaying the data in Gridview. In each row of the Gridview there are 'View' buttons which on clicking opens a pop-up page having 2 buttons 'send mail' and 'cancel'. On clicking 'send Mail' button, i want selected row of data to be sent by email instead of the entire gridview. Right now only the entire gridview data is coming to my mail. Also i want to attach a link to the email so that it redirects to the 'pick1' page again on clicking in email. How can I do it?
how to send automatic email every day but my problem is email having a company logo and some css is there how to send it i am using windows servies but windows services don't have html page so how to design page and how to send it .
I send an email with a C# library. The email body contains a logo. When I send this email via GMail's SMTP server, the image is visible. When I use our domain name firstname.lastname@example.org, the image is not visible.
I downloaded it and worked fine. However, I wish you push it further adding the following features:
1- Download button: where after the bitmap is captured and published into the image control, a "Download" button can be clicked to force the client browser open the "Save As File" dialog box in order to enable the user download the image into his/her client machine after choosing his/her suitable directory path.
2- Email button + Textbox to type the target email: where after te bitmap is captured and published into the image control, a "Email" button can be clicked in order to send the captured image to any email the user had specified in the textbox.
- Captured image shall remain as bitmap in memory. It shouldn't be saved in the server. - Email shall be sent with the image placed in the BODY and ATTACHMENT.
In asp i tryed to send mail with images. so i used AlternateViews and LinkedResources from System.net.mail class. before sending the mail i would like to add email.Fields.Add [URL] here System.net.mail class doesn't contain Fields. System.web.mail only have Fields.
I have a question about E-mail body. I have a button called and when user clicks this button, I want the webpage to be sent to someone as a email body, not as an attachment. (The exact same webpage content) I have been working on this for 3 days and cannot figure it out. The email line is this:
objUtilities.SendEmail(subject, BodyMessage, emailTo, emailFrom); So something like this: BodyMessage= webpage