Page 2 of 2

Re: Thanks... Sending Email using Python...

Posted: Wed May 20, 2009 11:20 am
by support
kevotheclone wrote:I'm not sure why the "from" email address should be a List object

One thing you can do is test the type of the parameter and convert it to a list if it's not one already:

Code: Select all

if type(fromAddr) is not list :
    fromAddr = [ fromAddr ]

This then lets you call the function more naturally, like this:

Code: Select all

sendEmail( "" , ... )

The same trick can be applied to the TO addresses, allowing the function to either accept a single email address (as a string), or a list of them.

We are not there yet - Outgoing Server Authentication

Posted: Wed May 20, 2009 11:51 am
by Otonicara
I have tried you code however we are not there yet. Brinkster (I host my domain and all my emails there) requires Outgoing Server Authentication. I have opened temporary test email - still working (, pass: kkk100).

Here is Binkster email setup instruction:
Email Address:
POP3 (Incoming) Server:
SMTP (Outgoing) Server:
User Name:
Password: kkk100

Outgoing Mail port: 25
Outgoing mail port: 2525 (Alternative)
If you are unable to send mail after setting up your mail account, try setting your outgoing mail port to 2525

Important Notes:
* (This should be your actual email address.)
* Make sure that the Email address and Username are identical and they are your actual email address.

Brinkster has implemented the mandatory use of Outgoing Server Authentication when sending email.
The options for outgoing mail authentication must be set when sending mail from Brinkster's shared mail services.

I amanded you code:
# Subject and Body are defined as variables as I would later assign Awasu Title and Awasu Description to them.
Subject_Text = "Subject Bal Bla Bla"
Body_Text = "Body Bla Bla Bla ..."

sendEmail([''], \
[''], \
Subject_Text, \
Body_Text, \
'', \
'', \

Email was not send. Procedure hanged ..

Re: We are not there yet - Outgoing Server Authentication

Posted: Fri May 22, 2009 3:31 am
by kevotheclone
Yesterday I looked at Brinkster's Knowledge Base and found the correct authentication settings to send email using the CDO library.
I got a VBScript version to work, but that's all the time I had yesterday.

Today I tried to port the solution over to Python, but it appears that the temporary test email id and password don't work anymore. If you could check into this and establish another test email account for me to work with and email the details to me at my account. You should be able to figure out my email address pretty easily. :wink: