[On-Rev] sending email thru sendmail?!
Pierre Sahores
psahores at free.fr
Wed Mar 3 16:13:01 EST 2010
Andre,
This way works for me as expected on loki from an addon domain
(woooooooords.com) :
> get mail(pTo, pSub, pMsg, pFrom)
> function shellQuote pText
> return quote & pText & quote
> end shellQuote
> function shellEscape pText
> repeat for each char tChar in "\`!$" & quote
> replace tChar with "\" & tChar in pText
> end repeat
> return pText
> end shellEscape
> function mail pTo, pSub, pMsg, pFrom
> return shell("echo -e" && shellQuote(shellEscape(pMsg)) && "| mail
> -s" && shellQuote(shellEscape(pSub)) && shellQuote(shellEscape(pTo))
> && "-- -f" && shellQuote(shellEscape(pFrom)))
> end mail
Do you want to get a test message addressed to your gmail account from
it to see if it works ? If yes, thanks to reply with the neede address.
P.
Le 3 mars 10 à 20:10, Andre Garzia a écrit :
> Some one sees something wrong in this code? I've been looking at
> email code
> the whole day, I am not distinguishing things anymore.
>
> put "/usr/sbin/sendmail -t -oi -f" && quote & pFrom & quote into tCMD
> write "From:" && pFrom & crlf after tMail
> write "To:" && pTo & crlf after tMail
> write "Subject:" && pSubject & crlf & crlf after tMail
> write pBody & crlf after tMail
> put tempname() into tFile
> put tMail into url ("binfile:" & tFile)
> put "cat" &"e& tFile "e&& "|" && tCMD into tCMD
> get shell(tCMD)
> delete file tFile
>
> On Wed, Mar 3, 2010 at 3:19 PM, Mark Wieder <mwieder at ahsoftware.net>
> wrote:
>
>> Andre-
>>
>> Wednesday, March 3, 2010, 8:05:32 AM, you wrote:
>>
>>> tried to use mail -s from command line, didn't work here... :-/
>>
>> mail -s used to work and now no longer does. So my PayPal integration
>> is now officially broken.
>>
>> --
>> -Mark Wieder
>> mwieder at ahsoftware.net
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>
>
> --
> http://www.andregarzia.com All We Do Is Code.
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
--
Pierre Sahores
mobile : (33) 6 03 95 77 70
www.woooooooords.com
www.sahores-conseil.com
More information about the use-livecode
mailing list