hi all I konw you havn't much time then I will begain directly Probem is: 1- I make a program to send a mail. 2- I send an HTML mail normaly to yahoo and hotmail. 3- The hotmail compile it and display as a web bage. 4- The yahoo did't compile it and display the HTML source !. Needed: 1- why yahoo mail did not compile it. 2- solve of this problem, or a way to solve it. ------- START source----------------------------------- My source is:open(MAIL,"|$mailp -t"); print MAIL "To: $email\n"; print MAIL "From: $wemail\n"; print MAIL "Subject: $subject\n\n"; print MAIL "$contents\n"; close (MAIL); ------- END source----------------------------------- THANKS FOR YOUR HELP _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
![]() |
0 |
![]() |
i believe there should be some kind of header info stating that the content type is html. i think hotmail just displays it nomatter what, but most mail browsers won't. -----Original Message----- From: messag from ESS [mailto:etaher2k@hotmail.com] Sent: 14 May 2002 14:29 To: beginners-cgi@perl.org Subject: yahoo mail did't compile HTML mail hi all I konw you havn't much time then I will begain directly Probem is: 1- I make a program to send a mail. 2- I send an HTML mail normaly to yahoo and hotmail. 3- The hotmail compile it and display as a web bage. 4- The yahoo did't compile it and display the HTML source !. Needed: 1- why yahoo mail did not compile it. 2- solve of this problem, or a way to solve it. ------- START source----------------------------------- My source is:open(MAIL,"|$mailp -t"); print MAIL "To: $email\n"; print MAIL "From: $wemail\n"; print MAIL "Subject: $subject\n\n"; print MAIL "$contents\n"; close (MAIL); ------- END source----------------------------------- THANKS FOR YOUR HELP _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: beginners-cgi-unsubscribe@perl.org For additional commands, e-mail: beginners-cgi-help@perl.org
![]() |
0 |
![]() |
messag from ESS wrote: > hi all > I konw you havn't much time then I will begain directly > Probem is: > 1- I make a program to send a mail. > 2- I send an HTML mail normaly to yahoo and hotmail. > 3- The hotmail compile it and display as a web bage. > 4- The yahoo did't compile it and display the HTML source !. > > Needed: > 1- why yahoo mail did not compile it. > 2- solve of this problem, or a way to solve it. > > ------- START source----------------------------------- > My source is:open(MAIL,"|$mailp -t"); > print MAIL "To: $email\n"; > print MAIL "From: $wemail\n"; > print MAIL "Subject: $subject\n\n"; > print MAIL "$contents\n"; > close (MAIL); > ------- END source----------------------------------- > > THANKS FOR YOUR HELP > > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > -- > To unsubscribe, e-mail: beginners-cgi-unsubscribe@perl.org > For additional commands, e-mail: beginners-cgi-help@perl.org Hi, I had some similar trouble and resolved it by using the following headers and dividers. From: me@myaddress To: someone@theiraddress Subject: Re: test Content-Type: multipart/alternative; boundary="---divider---" -----divider--- Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Please use netscape 2 view -----divider--- Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <html> <tt>Hello,</tt><tt></tt> <B> <p><tt>Some stuff</tt> <br> </B> </html> -----divider----- Hope that is what you were looking for. Alex.
![]() |
0 |
![]() |
You need a Content-Type header. Content-Type: text/html; charset="iso-8859-1" (or whatever your charset is) Cheers, Kevin On Tue, May 14, 2002 at 04:28:44PM +0300, messag from ESS (etaher2k@hotmail.com) said something similar to: > hi all > I konw you havn't much time then I will begain directly > Probem is: > 1- I make a program to send a mail. > 2- I send an HTML mail normaly to yahoo and hotmail. > 3- The hotmail compile it and display as a web bage. > 4- The yahoo did't compile it and display the HTML source !. > > Needed: > 1- why yahoo mail did not compile it. > 2- solve of this problem, or a way to solve it. > > ------- START source----------------------------------- > My source is:open(MAIL,"|$mailp -t"); > print MAIL "To: $email\n"; > print MAIL "From: $wemail\n"; > print MAIL "Subject: $subject\n\n"; > print MAIL "$contents\n"; > close (MAIL); > ------- END source----------------------------------- > > THANKS FOR YOUR HELP -- [Writing CGI Applications with Perl - http://perlcgi-book.com] "Life Is Pain, Highness. Anyone who says otherwise is selling something." -- The Dread Pirate Wesley, in the Princess Bride.
![]() |
0 |
![]() |
Thanks Alex Read but it didnt work.and I can;t control on the user broswes. NOTE: I want it compiled Like hotmial, the problem with yahoo Thanks agian ================================================= >From: Alex Read <alex@cd.co.uk> >To: messag from ESS <etaher2k@hotmail.com> >CC: beginners-cgi@perl.org >Subject: Re: yahoo mail did't compile HTML mail >Date: Tue, 14 May 2002 15:30:07 +0100 > >messag from ESS wrote: > > > hi all > > I konw you havn't much time then I will begain directly > > Probem is: > > 1- I make a program to send a mail. > > 2- I send an HTML mail normaly to yahoo and hotmail. > > 3- The hotmail compile it and display as a web bage. > > 4- The yahoo did't compile it and display the HTML source !. > > > > Needed: > > 1- why yahoo mail did not compile it. > > 2- solve of this problem, or a way to solve it. > > > > ------- START source----------------------------------- > > My source is:open(MAIL,"|$mailp -t"); > > print MAIL "To: $email\n"; > > print MAIL "From: $wemail\n"; > > print MAIL "Subject: $subject\n\n"; > > print MAIL "$contents\n"; > > close (MAIL); > > ------- END source----------------------------------- > > > > THANKS FOR YOUR HELP > > > > _________________________________________________________________ > > MSN Photos is the easiest way to share and print your photos: > > http://photos.msn.com/support/worldwide.aspx > > > > -- > > To unsubscribe, e-mail: beginners-cgi-unsubscribe@perl.org > > For additional commands, e-mail: beginners-cgi-help@perl.org > >Hi, > >I had some similar trouble and resolved it by using the following >headers and dividers. > >From: me@myaddress >To: someone@theiraddress >Subject: Re: test >Content-Type: multipart/alternative; boundary="---divider---" > >-----divider--- >Content-Type: text/plain; charset=us-ascii >Content-Transfer-Encoding: 7bit > >Please use netscape 2 view > >-----divider--- >Content-Type: text/html; charset=us-ascii >Content-Transfer-Encoding: 7bit > ><html> ><tt>Hello,</tt><tt></tt> ><B> ><p><tt>Some stuff</tt> ><br> ></B> ></html> > >-----divider----- > > > >Hope that is what you were looking for. > >Alex. > > _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com
![]() |
0 |
![]() |
messag from ESS wrote: > Thanks Alex Read > but it didnt work.and I can;t control on the user broswes. > > NOTE: I want it compiled Like hotmial, the problem with yahoo > > Thanks agian > ================================================= > > >From: Alex Read <alex@cd.co.uk> > >To: messag from ESS <etaher2k@hotmail.com> > >CC: beginners-cgi@perl.org > >Subject: Re: yahoo mail did't compile HTML mail > >Date: Tue, 14 May 2002 15:30:07 +0100 > > > >messag from ESS wrote: > > > > > hi all > > > I konw you havn't much time then I will begain directly > > > Probem is: > > > 1- I make a program to send a mail. > > > 2- I send an HTML mail normaly to yahoo and hotmail. > > > 3- The hotmail compile it and display as a web bage. > > > 4- The yahoo did't compile it and display the HTML source !. > > > > > > Needed: > > > 1- why yahoo mail did not compile it. > > > 2- solve of this problem, or a way to solve it. > > > > > > ------- START source----------------------------------- > > > My source is:open(MAIL,"|$mailp -t"); > > > print MAIL "To: $email\n"; > > > print MAIL "From: $wemail\n"; > > > print MAIL "Subject: $subject\n\n"; > > > print MAIL "$contents\n"; > > > close (MAIL); > > > ------- END source----------------------------------- > > > > > > THANKS FOR YOUR HELP > > > > > > _________________________________________________________________ > > > MSN Photos is the easiest way to share and print your photos: > > > http://photos.msn.com/support/worldwide.aspx > > > > > > -- > > > To unsubscribe, e-mail: beginners-cgi-unsubscribe@perl.org > > > For additional commands, e-mail: beginners-cgi-help@perl.org > > > >Hi, > > > >I had some similar trouble and resolved it by using the following > >headers and dividers. > > > >From: me@myaddress > >To: someone@theiraddress > >Subject: Re: test > >Content-Type: multipart/alternative; boundary="---divider---" > > > >-----divider--- > >Content-Type: text/plain; charset=us-ascii > >Content-Transfer-Encoding: 7bit > > > >Please use netscape 2 view > > > >-----divider--- > >Content-Type: text/html; charset=us-ascii > >Content-Transfer-Encoding: 7bit > > > ><html> > ><tt>Hello,</tt><tt></tt> > ><B> > ><p><tt>Some stuff</tt> > ><br> > ></B> > ></html> > > > >-----divider----- > > > > > > > >Hope that is what you were looking for. > > > >Alex. > > > > > > _________________________________________________________________ > Send and receive Hotmail on your mobile device: http://mobile.msn.com Sorry, the "please view with netscape" bit was just an example, as with the dividers in the user will only see either the text part or the html, so you have a message in the txt part saying - please view me with a something that is going to look at the html. If that didn't work then I only have the following advice; 1) make sure you have the format exactly the same as in the example (especially the dividers as the number of "-" changes). 2) this problem is to do with the format of the email you send, not your cgi script, so send yourself an email from the commands line and ignore you cgi script until it works. Good luck Alex.
![]() |
0 |
![]() |
"compiled like hotmail" makes no sense. It is how the email client (in this case Hotmail and Yahoo!) handle incoming email messages. If you are not adding the proper header information, you can not expect the client to do what you want. Do you even know if Yahoo! handles HTML mail correctly? If it does, then you aren't doing the Right Thing when creating the email. Proper Content-Type header info should work. Hotmail may be displaying whatever is in the email body (HTML, in this case), while Yahoo! is treating it as text, since that is the default when no Content-Type is explicitly given. To create more robust emails, look into MIME::Lite, or some such modules. For the web-based email system I wrote, I use MIME::Lite and all is happy. Cheers, Kevin On Tue, May 14, 2002 at 05:54:47PM +0300, messag from ESS (etaher2k@hotmail.com) said something similar to: > Thanks Alex Read > but it didnt work.and I can;t control on the user broswes. > > NOTE: I want it compiled Like hotmial, the problem with yahoo > > Thanks agian > ================================================= > -- [Writing CGI Applications with Perl - http://perlcgi-book.com] Not a speck of cereal. -- Frank Zappa
![]() |
0 |
![]() |
Dude, Try this > ------- START source----------------------------------- My source is:open(MAIL,"|$mailp -t"); print MAIL "Content-Type: text/html\n\n;" print MAIL "To: $email\n"; print MAIL "From: $wemail\n"; print MAIL "Subject: $subject\n\n"; print MAIL "$contents\n"; close (MAIL); > ------- END source----------------------------------- -----Original Message----- From: Kevin Meltzer [mailto:perlguy@perlguy.com] Sent: Tuesday, May 14, 2002 9:35 AM To: messag from ESS Cc: beginners-cgi@perl.org Subject: Re: yahoo mail did't compile HTML mail You need a Content-Type header. Content-Type: text/html; charset="iso-8859-1" (or whatever your charset is) Cheers, Kevin On Tue, May 14, 2002 at 04:28:44PM +0300, messag from ESS (etaher2k@hotmail.com) said something similar to: > hi all > I konw you havn't much time then I will begain directly > Probem is: > 1- I make a program to send a mail. > 2- I send an HTML mail normaly to yahoo and hotmail. > 3- The hotmail compile it and display as a web bage. > 4- The yahoo did't compile it and display the HTML source !. > > Needed: > 1- why yahoo mail did not compile it. > 2- solve of this problem, or a way to solve it. > > ------- START source----------------------------------- > My source is:open(MAIL,"|$mailp -t"); > print MAIL "To: $email\n"; > print MAIL "From: $wemail\n"; > print MAIL "Subject: $subject\n\n"; > print MAIL "$contents\n"; > close (MAIL); > ------- END source----------------------------------- > > THANKS FOR YOUR HELP -- [Writing CGI Applications with Perl - http://perlcgi-book.com] "Life Is Pain, Highness. Anyone who says otherwise is selling something." -- The Dread Pirate Wesley, in the Princess Bride. -- To unsubscribe, e-mail: beginners-cgi-unsubscribe@perl.org For additional commands, e-mail: beginners-cgi-help@perl.org
![]() |
0 |
![]() |
Thanks to all these brains which give a help to us, 1- I tried this with many options but didnt work, "Content-Type: text/html; charset="iso-8859-1"" 2-This and give me error not for simicolon only, ------- START source----------------------------------- open(MAIL,"|$mailp -t"); print MAIL "Content-Type: text/html\n\n;" print MAIL "To: $email\n"; print MAIL "From: $wemail\n"; print MAIL "Subject: $subject\n\n"; print MAIL "$contents\n"; close (MAIL); ------- END source----------------------------------- anyone try to make like me before? Thankx again >From: Camilo Gonzalez <cgonzalez@taylorjohnson.com> >To: "'perlguy@perlguy.com'" <perlguy@perlguy.com>, messag from ESS ><etaher2k@hotmail.com> >CC: beginners-cgi@perl.org >Subject: RE: yahoo mail did't compile HTML mail >Date: Tue, 14 May 2002 11:47:32 -0500 > >Dude, > >Try this > > > ------- START source----------------------------------- > My source is:open(MAIL,"|$mailp -t"); > print MAIL "Content-Type: text/html\n\n;" > print MAIL "To: $email\n"; > print MAIL "From: $wemail\n"; > print MAIL "Subject: $subject\n\n"; > print MAIL "$contents\n"; > close (MAIL); > > ------- END source----------------------------------- > >-----Original Message----- >From: Kevin Meltzer [mailto:perlguy@perlguy.com] >Sent: Tuesday, May 14, 2002 9:35 AM >To: messag from ESS >Cc: beginners-cgi@perl.org >Subject: Re: yahoo mail did't compile HTML mail > > >You need a Content-Type header. >Content-Type: text/html; charset="iso-8859-1" >(or whatever your charset is) > >Cheers, >Kevin > >On Tue, May 14, 2002 at 04:28:44PM +0300, messag from ESS >(etaher2k@hotmail.com) said something similar to: > > hi all > > I konw you havn't much time then I will begain directly > > Probem is: > > 1- I make a program to send a mail. > > 2- I send an HTML mail normaly to yahoo and hotmail. > > 3- The hotmail compile it and display as a web bage. > > 4- The yahoo did't compile it and display the HTML source !. > > > > Needed: > > 1- why yahoo mail did not compile it. > > 2- solve of this problem, or a way to solve it. > > > > ------- START source----------------------------------- > > My source is:open(MAIL,"|$mailp -t"); > > print MAIL "To: $email\n"; > > print MAIL "From: $wemail\n"; > > print MAIL "Subject: $subject\n\n"; > > print MAIL "$contents\n"; > > close (MAIL); > > ------- END source----------------------------------- > > > > THANKS FOR YOUR HELP > >-- >[Writing CGI Applications with Perl - http://perlcgi-book.com] >"Life Is Pain, Highness. Anyone who says otherwise is selling something." > -- The Dread Pirate Wesley, in the Princess Bride. > >-- >To unsubscribe, e-mail: beginners-cgi-unsubscribe@perl.org >For additional commands, e-mail: beginners-cgi-help@perl.org _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com
![]() |
0 |
![]() |
Doh! Sorry, try this: ------- START source----------------------------------- open(MAIL,"|$mailp -t"); print MAIL "Content-Type: text/html\n\n"; print MAIL "To: $email\n"; print MAIL "From: $wemail\n"; print MAIL "Subject: $subject\n\n"; print MAIL "$contents\n"; close (MAIL); ------- END source----------------------------------- -----Original Message----- From: messag from ESS [mailto:etaher2k@hotmail.com] Sent: Tuesday, May 14, 2002 4:07 PM To: cgonzalez@taylorjohnson.com; perlguy@perlguy.com Cc: beginners-cgi@perl.org Subject: RE: yahoo mail did't compile HTML mail Thanks to all these brains which give a help to us, 1- I tried this with many options but didnt work, "Content-Type: text/html; charset="iso-8859-1"" 2-This and give me error not for simicolon only, ------- START source----------------------------------- open(MAIL,"|$mailp -t"); print MAIL "Content-Type: text/html\n\n;" print MAIL "To: $email\n"; print MAIL "From: $wemail\n"; print MAIL "Subject: $subject\n\n"; print MAIL "$contents\n"; close (MAIL); ------- END source----------------------------------- anyone try to make like me before? Thankx again >From: Camilo Gonzalez <cgonzalez@taylorjohnson.com> >To: "'perlguy@perlguy.com'" <perlguy@perlguy.com>, messag from ESS ><etaher2k@hotmail.com> >CC: beginners-cgi@perl.org >Subject: RE: yahoo mail did't compile HTML mail >Date: Tue, 14 May 2002 11:47:32 -0500 > >Dude, > >Try this > > > ------- START source----------------------------------- > My source is:open(MAIL,"|$mailp -t"); > print MAIL "Content-Type: text/html\n\n;" > print MAIL "To: $email\n"; > print MAIL "From: $wemail\n"; > print MAIL "Subject: $subject\n\n"; > print MAIL "$contents\n"; > close (MAIL); > > ------- END source----------------------------------- > >-----Original Message----- >From: Kevin Meltzer [mailto:perlguy@perlguy.com] >Sent: Tuesday, May 14, 2002 9:35 AM >To: messag from ESS >Cc: beginners-cgi@perl.org >Subject: Re: yahoo mail did't compile HTML mail > > >You need a Content-Type header. >Content-Type: text/html; charset="iso-8859-1" >(or whatever your charset is) > >Cheers, >Kevin > >On Tue, May 14, 2002 at 04:28:44PM +0300, messag from ESS >(etaher2k@hotmail.com) said something similar to: > > hi all > > I konw you havn't much time then I will begain directly > > Probem is: > > 1- I make a program to send a mail. > > 2- I send an HTML mail normaly to yahoo and hotmail. > > 3- The hotmail compile it and display as a web bage. > > 4- The yahoo did't compile it and display the HTML source !. > > > > Needed: > > 1- why yahoo mail did not compile it. > > 2- solve of this problem, or a way to solve it. > > > > ------- START source----------------------------------- > > My source is:open(MAIL,"|$mailp -t"); > > print MAIL "To: $email\n"; > > print MAIL "From: $wemail\n"; > > print MAIL "Subject: $subject\n\n"; > > print MAIL "$contents\n"; > > close (MAIL); > > ------- END source----------------------------------- > > > > THANKS FOR YOUR HELP > >-- >[Writing CGI Applications with Perl - http://perlcgi-book.com] >"Life Is Pain, Highness. Anyone who says otherwise is selling something." > -- The Dread Pirate Wesley, in the Princess Bride. > >-- >To unsubscribe, e-mail: beginners-cgi-unsubscribe@perl.org >For additional commands, e-mail: beginners-cgi-help@perl.org _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com
![]() |
0 |
![]() |
I'm not sure I understand the nature of the problem with using the standard Email tricks through perl? ciao drieux ### #!/usr/bin/perl -w ### use strict; ### ### sub DoThatMailVoodoo { ### my ( $userName, $subject, $msg) = @_; ### ### my $bailFile = "/tmp/sendmail.bail.$$"; ### my $sendmail = '/usr/lib/sendmail'; ### ### # ok, so sharing the code back in may be over the top.... ### ### open (FH, "sharIt $0 |") or die "unable to self Shar:$!\n"; ### $msg .= $_ while(<FH>) ; ### close FH; ### $msg .= "\n\n"; # make sure it ends okish ### ### open (MAIL, "| $sendmail -t -oi 2>$bailFile") ### or die "unable to open sendmail:$!\n"; ### ### print MAIL "To: $userName \n"; ### print MAIL "Subject: $subject\n\n"; ### print MAIL "$msg"; ### ### close MAIL; ### # Ok so this is MASSED Paranoia ### if ( -f $bailFile and -s $bailFile) { ### print "we had an error case from sendmail\n"; ### open(ER_FH, $bailFile) or die "unable to open Bail File:$!\n"; ### my @err_msg=<ER_FH>; ### close(ER_FH); ### close(MAIL); ### unlink($bailFile); ### die "@err_msg\n\n"; ### } else { ### unlink($bailFile); ### } ### ### } # DoThatMailVoodoo ### ### #------------------- ### # The Main Loop Section ### ### my $toWhom = 'beginners-cgi@perl.org, etaher2k@hotmail.com'; ### my $about = ' RE: yahoo mail did\'t compile HTML mail '; ### my $msg =<<EOL; ### ### I'm not sure I understand the nature of the problem with ### using the standard Email tricks through perl? ### ### ciao ### drieux ### ### EOL ### ### DoThatMailVoodoo($toWhom, $about, $msg); ### ### # end of the world as I know it - drieux@wetware.com ###
![]() |
0 |
![]() |
Try with only 1 \n.. try using MIME::Lite to form the email properly (which I mentioned before). I have no problems doing this with MIME::Lite. Cheers, Kevin PS. try trimming any text from replies which have nothing to do with the reply itself. On Tue, May 14, 2002 at 04:09:29PM -0500, Camilo Gonzalez (cgonzalez@taylorjohnson.com) said something similar to: > Doh! Sorry, try this: > > ------- START source----------------------------------- > open(MAIL,"|$mailp -t"); > print MAIL "Content-Type: text/html\n\n"; > print MAIL "To: $email\n"; > print MAIL "From: $wemail\n"; > print MAIL "Subject: $subject\n\n"; > print MAIL "$contents\n"; > close (MAIL); > ------- END source----------------------------------- -- [Writing CGI Applications with Perl - http://perlcgi-book.com] I don't know half of you as well as I should like and I like less than half of you half as much as you deserve. -- Mr. Bilbo Baggins (Fellowship of the Ring)
![]() |
0 |
![]() |