|
Posted by steve on 06/30/05 17:22
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@noWhere.com>\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?
[Back to original message]
|