473,406 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

dtml-sendmail

hello all.
i am new to both dtml and zope. i have inherited a piece of dtml code
that essentially perfoms sending email.

--snip--
<dtml-comment>Send email</dtml-comment>
<dtml-try>

<dtml-sendmail smtphost="MailHost" mailto="<dtml-var email>"
mailfrom="sa***@quietcare.info">
Subject: Confirming your account.

</dtml-sendmail>
<dtml-except>
Sorry, we could not process your email.
<p><dtml-var error_type>: <dtml-var error_value><pre><tt>
<dtml-var error_tb></pre;></tt></p>
</dtml-try>

--snip--
the syntax looks fine and i have configured "MailHost" to our internal
mail server 192.168.1.8 but the emails do not seem to go through nor
do i get the exception message. can any one tell me if am missing
something fundamental over here. thanks a lot.
Jul 18 '05 #1
1 3308
shashaank wrote:
--snip--
<dtml-comment>Send email</dtml-comment>
<dtml-try>

<dtml-sendmail smtphost="MailHost" mailto="<dtml-var email>"
mailfrom="sa***@quietcare.info">
Subject: Confirming your account.

</dtml-sendmail>
<dtml-except>
Sorry, we could not process your email.
<p><dtml-var error_type>: <dtml-var error_value><pre><tt>
<dtml-var error_tb></pre;></tt></p>
</dtml-try>

--snip--


1. Don't indent the lines of the mail. All header lines must not start with
any whitespace character.
2. Using dtml syntax inside a dtml-tag will not work.
3. You need to define the mailhost.

example:
<dtml-sendmail mailhost="MailHost">
Subject: Some subject
To: <dtml-var mail>
From: so******@somedomain.net

Some text!
</dtml-sendmail>

Thomas

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Steffen Brodowski | last post by:
Hello everyone, since one week, I'm programming with python. Its a realy interesting tool. I wrote a script for generating barcodes in jpg-format. Everything is ok, but my function...
12
by: vincent_delft | last post by:
I'm looking for a Web Tool kit to build web pages with the following criteria (in priority order) : - easy to use, develop (reuseability of code, ...) - flexible (ideally should run with Python...
1
by: Andre Dourado | last post by:
I´m a newbie in Zope and I have a little problem. I'm trying to use a dtml-in tag to call a ZSQL, but the name of my ZSQL is stored in a sql table. I've tried things like: <dtml-in...
3
by: Holger Butschek | last post by:
Hy, I'm using following code. <dtml-in expr="sqlBestandGetKuerzel(KURZFORM='B',BEREICH='01')"> B/<dtml-var RUBRIK>/<dtml-var expr="_.math.int(ANZAHL) + 1"> </dtml-in> Whats wrong with it....
1
by: Holger Butschek | last post by:
Hy folks, I have a problem in Zope (DTML). I know, that it's a very simple problem, but I'm quite new to Zope. I want to check, if a sequence-item of a sql-statement is in a list called...
2
by: Junkmail | last post by:
I've been playing with Zope for about a year and took the plunge last week into making a product. To keep it simple I used a ZClass to wrap an external method. My ZClass works and returns the...
8
by: gongcheng_g | last post by:
I got a piece of python script to upload file and it can upload it to different folders on server depend on the type of file is image or not. but I also want to restrict the size and dimensions of...
1
by: ChengGong | last post by:
Finally I found that getSize()can be used to show the size of the image. but here I got another problem. <dtml-let images="objectItems('Image')"> <dtml-in images reverse...
3
by: astarocean | last post by:
i'm using maildrophost to sendmail and wrote a script for it when the script is called directly from web request , a letter geneated with right things but when the script is called from...
15
by: Jens | last post by:
Hello Everyone. I am relatively new to Zope(using it for a work project) and I was wondering if someone here could help me out or at least refer me to a decent documentationg for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.