List Icon
Archive de la liste de diffusion

La liste de diffusion est fermée depuis juillet 2022, mais sert toujours d'archive d'informations sur QF-Test.
Cependant, si vous souhaitez rester informé des nouveautés concernant QF-Test, vous pouvez simplement vous
abonner à la newsletter 

our obtenir des informations à jour sur chaque version - y compris les versions mineures - vous pouvez
nous pouvez vous abonner au flux RSS ou nous suivre sur les médias sociaux.
Alternativement, QF-Test fournit également des informations sur la version elle-même.

Une autre source d'information est notre blog, qui contient des articles actuels sur des thèmes généraux, sur l'entreprise QFS et aussi divers "how-tos", veuillez vous
ABonner au Blog


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] (SUP-362) How to send email with an attachment.


  • Subject: Re: [QF-Test] (SUP-362) How to send email with an attachment.
  • From: "Plamen Veselinov, QFS Support" <support@?.de>
  • Date: Mon, 20 Jun 2016 17:31:33 +0200

Dear Sadiku,

I could see only one error in the Script.
In the 'if asHtml' you should use 'add() ' instead of new creation of
the variable 'msg':

if asHtml:
    msg.attach(MIMEText("text","html"))
else:
    msg.attach(MIMEText("text","plain"))


If you do not explicitly need to attach binaries you can safely use the
MIMEText also for the attached file.

Best Regards,
Plamen Veselinov, QFS Support

On 6/18/2016 16:48, Sadiku, Adetola wrote:
Hello,

Can someone please assist me with a working script or directions that
will allow the QFTest sendEmail script to include an attachment.

I have done some research and tried to modify the jython script for the
sendEmail_SMTPHost procedure but getting errors. It will be nice if
there is an easier way to do this without needing to write code.



Please find attached my edited jython server script.





*Thank you,*

*Tola Sadiku, MSC, CSM | Quality Assurance Analyst*

*/Certified Scrum Master/*//

AmeriPride Services

10801 Wayzata Boulevard, Minnetonka

Minnesota, MN 55305

O: 952-738-3232

F: 952-738-3158

tola.sadiku@?.com <mailto:tola.sadiku@?.com>

www.ameripride.com <http://www.ameripride.com/>

*/People You Can Count On/*

*_Click here to submit a ticket!
<http://intranet.corp.ameripride.com/Special-pages/TAC-Ticket.aspx>_*



___________________________________________________________________________________________________

"Good manners will open doors that the best education cannot” – Clarence
Thomas




--
_______________________________________________________________

Get the most out of QF-Test - Support directly from the authors
* Training & consulting: www.qfs.de/en/qftest/training.html
* Phone & email support: www.qfs.de/en/qftest/support.html
_______________________________________________________________

Plamen Veselinov
Development & Support

E: support@?.de
T: +49 8171 38648-21
F: +49 8171 38648-16

Quality First Software GmbH | www.qfs.de
Tulpenstr. 41 | 82538 Geretsried | Germany
GF Gregor Schmid, Dr. Martina Schmid, Karlheinz Kellerer
HRB München 140833