CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.getting_started Tags:
Item Type: NewsGroup Date Entered: 11/30/2005 3:27:16 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 15 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
ywkyee
Asp.Net User
Problem sending email from an aspx program11/30/2005 3:27:16 PM

0/0

Hi,

I have an aspx program that will send email out with the following code. I tried to send to a hotmail account and test it. the result is ..it is work fine from my outlook express, but not work when view from web hotmail. my coding is just simple one.

strhtml = "<html><head><link rel=...><script type=....><etc etc html></head></html>
MailMessage e = new MailMessage()
e.Body = strhtml
e.BodyFormat = MailFormat.Html
SmtpMail.SmtpServer = "www.xxx.com"
SmtpMail.Send(e)

I didnt quote all the detial, but it is a workable code. The problem is when view from web hotmail, font size, class all didnt apply. so once I view the source code, I found

<link rel..> change to <xlink rel..>
<script type..> change to <cursive type=...>

that why all css class cannot apply from web, but it is show correctly from outlook express, that make me headache at all, where going wrong? seem some translation and add some more unexpected character inside the string when pass into e.Body variable.

Much appreicate if anyone can figure out what going on for my problem?

Thanks/Davis.
ywkyee
Asp.Net User
Re: Problem sending email from an aspx program12/1/2005 4:50:10 AM

0/0

things going more interesting..i found that can't use include css file inside a mail content instead define all css definition inside the mail content, so it work fine also from the web.

but it is work on yahoo.com email, but not hotmail.com, from hotmail.com & view the source code of the email, all css deinfition are gone away ( which meant can't apply css definition.

Anyone familiar with mail program with hotmail? my coding just changed to ..

strhtml = "<html><head><style type=..>a.xx{css definition}</style><etc etc html></head></html>
MailMessage e = new MailMessage()
e.Body = strhtml
e.BodyFormat = MailFormat.Html
SmtpMail.SmtpServer = "www.xxx.com"
SmtpMail.Send(e)

it is work fine in client side & yahoo website, but only not work in hotmail.com,
i havnt test in other platform, ie aol, firefox etc.

appreicate if any expret can help it out.
Thanks/Davis.
Vodzurk
Asp.Net User
Re: Problem sending email from an aspx program12/1/2005 12:01:24 PM

0/0

For the sending failures, you'll need to have an SMTP server set up.

For the css... i think its a security risk to display an email with anything linking in to an external site.

For instance, images that are not embedded within the email can be used as trackers for mass spamming... if you open the email and see the image, they can see that your email is valid and proceed to send more spam.  The same with css i guess, your background image could be:-

background-image: url('http://www.somebadsite.com/tracking/[email protected]');

Not too sure why hotmail won't allow you to define your css inside the email... maybe it only allows certain tags or styles to be defined per-tag.


Rar!
ywkyee
Asp.Net User
Re: Problem sending email from an aspx program12/2/2005 1:57:18 PM

0/0

Ok..thanks for your comment.

I giveup now, in order to slove this css issue, I will hardcode all css definition inside coding, rather than apply css, then it should slove my issue.

Thanks/Davis.

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET 2.0 Cookbook Authors: Michael A. Kittel, Geoffrey T. LeBlond, Pages: 989, Published: 2005
ASP.NET in a Nutshell: In a Nutshell Authors: G. Andrew Duthie, Matthew MacDonald, Pages: 979, Published: 2003
Build Your Own ASP.NET Website Using C# & VB.NET Authors: Zak Ruvalcaba, Pages: 746, Published: 2004
Windows XP Hacks: Tips & Tools for Customizing and Optimizing Your OS Authors: Preston Gralla, Pages: 548, Published: 2005
AppleScript: The Missing Manual Authors: Adam Goldstein, Pages: 325, Published: 2005
ASP.NET 2.0 Instant Results Authors: Imar Spaanjaars, Paul Wilton, Shawn Livermore, Pages: 456, Published: 2006
Building E-commerce Sites in the .NET Framework Authors: Jason Bentrum, James Whatley, Pages: 538, Published: 2001
C# Professional Projects Authors: Geetanjali Arora, Balasubramaniam Aiaswamy, Nitin Pandey, NIIT (Corporation), Pages: 919, Published: 2002
Workflow in the 2007 Microsoft Office System Authors: David Mann, Pages: 433, Published: 2007

Web:
ASP.NET.4GuysFromRolla.com: Sending Email in ASP.NET 2.0: HTML ... Aug 2, 2006 ... For a more thorough discussion on potential problems with sending HTML-formatted emails, check out Top 10 HTML Email Mistakes and CSS and ...
America Supports You THANK THE TROOPS send the troops a message. AMERICA SUPPORTS YOU NEWS AND HEADLINES ... OTHERS WHO SUPPORT non-profit organizations & service programs ...
MSN Postmaster Sender Score Certified program from Return Path, Inc. identifies legitimate senders of e-mail based on their past sending behavior and their adherence to ...
OETips If you encounter compatibility problems when email scanning is disabled, then find another antivirus program. There are plenty out there that do not impair ...
Troubleshooting error messages that you receive when you try to ... IIf you still have problems sending and receiving mail after you have .... We recommend the process that this article describes to enable programs to ...
Sending Email with ASP.NET Sep 18, 2000 ... NET to send emails: plain, HTML-formatted and with attachments. ... demonstrates the use with a short HTML email (SimpleMailMessage.aspx). ...
CodeProject: Send SMTP mail using VB.NET. Free source code and ... Do we really need to have an SMTP Server ? because if we digg into the real anonymous mail programs they don't need the SMTP Server to send the mails. ...
Transfer Big Files Free - Send Large Files up to 1GB Just select the files you want to send and TransferBigFiles will email the recipient with a link to the download page, and it's FREE! ...
Mac RSS Reader – News Reader for Apple - NetNewsWire by NewsGator If NetNewsWire did not display your serial number or you have any other problems with activation, please send an email to NewsGator Technical Support. ...
SMS Services Software Also correction can solve problems for different providers maximum characters! ... Fax support: Send faxes with predefined cover page! Email support: ...

Videos:
fxing problems with word 2007 vista If you can't open ms-word 2007 documents sent to you the you need to download the compatibility pack from www.microsoft.com/downloads/details ...
Chicken of the Sea Jingle Contest - Lunchmeat Slurry Blues WAKE THE KIDS AND CALL THE NEIGHBORS! Help the Food Bank of the Rockies win a truckload (not an exaggeration- a real truckload), of Chicken of ...
The Xbox Experience Vidcast: "Gears of What?" In this Episode of the XEV i talk about some COD: WAW, mirrors edge, XBL parties and of course Gears of war 2 ...
free ipod touch ! free money ! gift card ! ticket to getting a free ipod touch. first you have to type in the link http://www.freeipodtouchoffer.com/default.aspx?r=1044305 then once on the ...
(888)MOAX.ORG Microsoft Offfice Accounting Xchange ... (888)MOAX.ORG Microsoft Offfice Accounting Xchange 4_IT_JOURNAL.wmv - 31 min - Apr 23, 2008 USStudios - http://www.onafree.com (1 Rating ...
Marco Borrillo vs. Robert Bryant Jr. - Arizona Open Singles ... Marco Borrillo vs. Robert Bryant Jr. - Arizona Open Singles RR - Table Tennis Ping Pong Tournament Arizona Online - Desert Table Tennis ...
Who is Jesus anyway ? Christian Prince הנוצרالاسراء والمعراج Obaid Karki An Outcast Spinoziste Pantheon Hexalingual Automath Former UAE Under Secretary Independant Street-Knowledge Urban Talkshow Guru ...




Search This Site:










howto: create dnn 2.0 c# modules

webdev.webserver.exe removed by wap installation?

find and replace function annoying setting

compliation background scenerio

** loginname **

help me(masterpage) error

overriding inherited public property to make private

vs 2005 beta 2 is now released

download files from ftp site

classic asp in text/html module?

questions about the future of dnn

webhost4life issues??

dnn module developer needed - take 2

making the move for asp to aspx

access control menu

presentation material for local user groups?

how to add a wdp to a web application project

cross domain file access

my club site error after publishing to my host

memberrole.dll - membership & role provider

windows nt user or group 'myserver\aspnet' not found.

asp:menu conflicts with iframe

running asp pages in asp.net

i am confused about the differences between visual web developer and visual studio 2005

looking for a cheap host for a server i can play with i.e. install longhorn, etc

encrypting a password

friendly url in dnn 3.1.1

asp gridview or sqldatasource bug?

help please - remember login not working

insert an <object /> into masterpage

 
All Times Are GMT