Re: mail() sending in html format (or not)



in-line

| I tried to boil it down to something simple here. The main thing I don't
| get is you used iisMail() and I don't know what that is so I just used
| mail(), which didn't work <g>.

sorry, i should have mentioned that about the iisMail function. it's simply
another function i've made that uses iis's smtp server to send the mail. you
can use mail() if you break-out the headers and put them as the correct arg
for the function. on unix, i simply:

$fileHandle = fopen($fileName, 'w');
fwrite($fileHandle);
exec('/usr/sbin/sendmail -t <' . $fileName . ' >/dev/null 2>&1');
unlink($fileHandle);



| It seems you were somehow building the $html & $text separately, then
| added the $text into the $html preserving a plain text and html version
| to send.

actually, i don't believe i ever mixed the two variable's data. i do,
however, build each as i loop through the data. you are correct,
though...the aim is a fairly decent tab-delimited text version of the data
and a pretty clean looking table-type layout of the data in html.

| "\r\n" must be some special line break???

"carriage-return\line-feed"...the equivalent of hitting ENTER on your
keyboard...well, on windows anyway. on 'nix systems, ENTER only sends
line-feeds...aka, \n.


| $mail .= "FROM: Automated Email <TheMachine@xxxxxxxxxxx>\r\n";

for the above code, be careful to watch that this is not the reason the
email isn't sending. some smtp servers are very locked-down, and only a
valid email account will be allowed to send an email. of course, if you're a
little shady, you can find unsecured servers a stones throw away, access
them without any security constraints whatsoever, and rely as many emails as
you like off of their servers...but i know you aren't a spammer...right!?
lol.

have you gotten this script to do what you want?


.



Relevant Pages

  • FollowUpXpert Professional 3.5
    ... You can use it to send newsletters and bulk mailings as well. ... least bit about HTML. ... in SMTP server using an external SMTP server as a backup. ...
    (comp.software.shareware.announce)
  • FollowUpExpert Business 4.0.6
    ... You can use it to send newsletters and bulk mailings as well. ... least bit about HTML. ... in SMTP server using an external SMTP server as a backup. ...
    (comp.software.shareware.announce)
  • Re: Selecting a SMTP Before Sending
    ... Please don't use HTML to send to mail lists. ... There are numerous solutions, but you haven't given us enough information. ... I use masqmail as a local SMTP server (so ...
    (Ubuntu)
  • Re: bounced mails CCO, what this header means?
    ... In article, zero says... ... > The message is HTML and I'm sending from OE. ... Your message has twenty email addresses which the SMTP server would see as ... RFC 2822. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)