473,320 Members | 1,794 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

system.web.mail HTML Page

I want to send the full html page thru this SMTP server mail. When I
send it, only the URL of the page is sent, I was doing fine with
CDONTs, but when I shifted to CDOSYS, i face this problem.
the syntax::::

'Send mail in HTML format
emailMessage.BodyFormat = MailFormat.Html

'emailMessage.To=textTo.Text
emailMessage.To=temp

'emailMessage.Subject=textSubject.Text
emailMessage.Subject="Welcome Members"

'emailMessage.Body=textMessage.Text
emailMessage.Body="http://www.xyz.com/mail/broadcast4.asp"

I have also tried using the methods...
emailMessage.UrlContentLocation
emailMessage.UrlContentBase

still no go

Can yu helpme????
regards
Sharad

Nov 19 '05 #1
1 1302
The body property needs to contain the full text of the of the html page,
not just a link. you can use the Webclient Class to download the full HTML
source of the web page and assign it to the body property.

Hachim

<g_******@yahoo.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I want to send the full html page thru this SMTP server mail. When I
send it, only the URL of the page is sent, I was doing fine with
CDONTs, but when I shifted to CDOSYS, i face this problem.
the syntax::::

'Send mail in HTML format
emailMessage.BodyFormat = MailFormat.Html

'emailMessage.To=textTo.Text
emailMessage.To=temp

'emailMessage.Subject=textSubject.Text
emailMessage.Subject="Welcome Members"

'emailMessage.Body=textMessage.Text
emailMessage.Body="http://www.xyz.com/mail/broadcast4.asp"

I have also tried using the methods...
emailMessage.UrlContentLocation
emailMessage.UrlContentBase

still no go

Can yu helpme????
regards
Sharad

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Penn Markham | last post by:
Hello all, I am writing a script where I need to use the system() function to call htpasswd. I can do this just fine on the command line...works great (see attached file, test.php). When my...
3
by: Tim T | last post by:
Hi, I hope there is someone reading this that has the answer, Please Help! I have the need to send a html email via asp.net. its easy enough to send an html email and add attachments. My...
2
by: Ben | last post by:
I have several pages written in aspx, but sometime the aspx page return the following error. And it hapeen, the whole web application gives this error, that means all the aspx files get affected....
2
by: Ryan | last post by:
Hi, I receive an access denied error (see below) when attempting to send an email with BodyFormat=MailFormat.Html from an asp.net page. Exactly the same code works fine in a console...
2
by: clevrmnkey | last post by:
I've had nothing but trouble from the System.Net.Mail objects, but I finally need to make them work, and I can't for the life of me see what I'm doing wrong. I pared back my mail transaction to...
10
by: Frank | last post by:
Hi, I am hoping to find out the differences between the System.Net.Mail and System.Web.Mail. Can some nice folks post the differences; or some urls which show the differences? Great Thanks...
2
by: joseph2000 | last post by:
Hi, I have problem with e-mails which are being send via System.Web.Mail.SmtpMail class but before describing the problem itself first I'd like to show shortly what I'm doing on the server. ...
2
by: satnamsarai | last post by:
Using System.Net.Mail: Sometimes I get error 'failure sending mail. Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.' Not sure how...
2
by: anu b | last post by:
Now i am sending email to my friend using session variable... but my code is as below private bool SendEmail(string email) { try
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.