2017 up to now  | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2016


[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