Problems sending text from JavaScript to dynamic text box

For reasons which I won't bore you with, I'm trying to send
text from a JavaScript to a dynamic text box in Flash. I've just
spent all day wondering why I can't get it to work, despite
following web guides to the letter. Finally I discovered that I'm
not actually doing anything wrong and everything works perfectly -
as long as it's online. It won't work at all locally or from the
network.
The problem is that this is for learning material which will
be deployed both online and on CD, so it won't always be running
from a webserver. Has anybody got any ideas a) why this is
happening, and b) what I can do about it?
Cheers
Marc

http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPBeans.html
This is a good tutorial on using JSP pages with JavaBeans.
Your JSP page can have all the standard HTML tags and a bean can be set to retrieve any values from form fields upon a submit.
At that point your bean properties are set and your Java application can use that data for whatever processes you wish.
It's really quite simple once you get the hang of it! ^_^
Message was edited by:
maple_shaft

Similar Messages

  • I'm having a problem sending pictures from my Lucid phone, what's wrong

    I'm having a problem sending pictures from my Lucid phone, what's wrong?

    I'm trying to send a text message
       (aka Duchess)
    "I will lift up mine eyes unto the hills, from whence cometh my help. My help cometh from the LORD" PSALM 121:1-2a
    >Personal info removed<
    Message was edited by: Verizon Moderator

  • Has anyone an Intermittent Problem sending mail from Mac OS X (10.6.8)?

    I have a Mac mini operating on Mac OS X(10.6.8) Snow Leopard. In the last couple of weeks I have been having intermittent problems sending mail from Mac MAIL, especially if I hit the reply button.  It whirls around for ever and then tells me to 'Try Later' or 'Try Again'.  When I shut down my computer and open up mail again, I hear the mail whizzing off.  I have just tried it now and it went in the time that it has taken me to compose this email. But sometimes the mail doesn't go at all. Could it me because I have too many messages in my inbox and sent boxes (around 1000 in each)?  I read somewhere that you should delete Mail in library/pref/com.apple.mail.plst and reinstal it.  But I'm frightened to do this in case I can't re-instal it as I don't know how to.

    I have a Mac mini operating on Mac OS X(10.6.8) Snow Leopard. In the last couple of weeks I have been having intermittent problems sending mail from Mac MAIL, especially if I hit the reply button.  It whirls around for ever and then tells me to 'Try Later' or 'Try Again'.  When I shut down my computer and open up mail again, I hear the mail whizzing off.  I have just tried it now and it went in the time that it has taken me to compose this email. But sometimes the mail doesn't go at all. Could it me because I have too many messages in my inbox and sent boxes (around 1000 in each)?  I read somewhere that you should delete Mail in library/pref/com.apple.mail.plst and reinstal it.  But I'm frightened to do this in case I can't re-instal it as I don't know how to.

  • Cp5 - Pasting text from Notepad into a text box

    I posted this message in the "Getting Started Forum" but there isn't a whole lot of activity in that forum.
    Hopefully someone can help me because I have a lot of text to paste into a lesson.
    This  seems like such an elementary requirement and I am almost certain that I  have done this before but...for some reason, copying text from Windows  Notepad into a Captivate 5 text box just isn't working today.
    Basically, the paste option is simply not available!
    Yes, I can copy paste into other applications; Captivate is the only application that is blocking this Windows function.
    If  I insert a Text Entry Box, I am able to paste single lines of text  (from Notepad) but obviously this isn't going to work as a text box.
    Is this by design or has something gone haywire?
    Question, how do I get pre-written text (i.e. from Notepad) into Captivate?
    Thanks

    Shawn,
    I have had that happen to me too.  I am always copying and pasting into my Captivate projects.  But sometimes the paste option is just not available.  What I have done, is to save everything and close the application and start it again.  Seems there's a lot of little irritating things like that with Captivate, that's corrected with a restart.  Hope this helps!
    Linda
    >>>
    From: shawninvancouver <[email protected]>
    To:Linda Highlander <[email protected]>
    Date: 8/3/2011 10:44 AM
    Subject: Cp5 - Pasting text from Notepad into a text box
    I posted this message in the "Getting Started Forum" but there isn't a whole lot of activity in that forum.
    Hopefully someone can help me because I have a lot of text to paste into a lesson.
    This  seems like such an elementary requirement and I am almost certain that I  have done this before but...for some reason, copying text from Windows  Notepad into a Captivate 5 text box just isn't working today.
    Basically, the paste option is simply not available!
    Yes, I can copy paste into other applications; Captivate is the only application that is blocking this Windows function.
    If  I insert a Text Entry Box, I am able to paste single lines of text  (from Notepad) but obviously this isn't going to work as a text box.
    Is this by design or has something gone haywire?
    Question, how do I get pre-written text (i.e. from Notepad) into Captivate?
    Thanks

  • Problem sending mail from iPhone

    Hello
    I have a problem sending mails from a Horde account in iPhone 5S. I guess the problem is about configuring the outgoing mail server, but I tried several things and nothing seams to work. The message I get is :
    "Can't send mail. No password provided for account x
    Please go to Mail account settings and enter a password"
    Here goes the detailed configuration of the SMTP:
    SMTP server: mail.account.pt
    User name and Password: xxxxxx
    SSL: OFF
    Authentication: Password
    Server port:587
    What am I doing wrong?
    Thank you for your help!
    Best regards,
    Pedro

    After talking with my e-mail service provider I understood some more configurations, which might help you to help me:
    SMTP Settings:
    Authentication method: encrypted password
    Connection Security: STARTTLS
    How can I copy these settings into my iPhone 5S? In Authetication there's only the following options:
    Password, MD5 challenge-response, HTTP MD5 Digest and NTLM...
    Thank you!
    Best regards,
    Pedro Santos

  • TS3276 Anyone having problems sending mail from Os X10.7.2?

    Anyone having problems sending mail from Os X10.7.2?
    i have Mac book pro,  I mac Desk top and i pad:All can receive mail but not send. I have checked and re checked set up etc No luck
    Thx

    Hi Ernie,
    Sorry I don't understand the first question :{
    Connection Doctor says everything is connected. i can send mail from the server's own web site ,just not from the Apple Mail program.
    The problem did begin when I was travelling from one hotel to another.
    Any ideas?
    Susan

  • TS3899 Problems sending email from hotmail addresses in iPad Mail

    Hi
    I am having problems sending email from my hotmail addresses (live.com) in the Mail program on my iPad.  I get a message that says "An error occurred while sending this message".  Tis morning the program worked perfectly.  Now, not so much!
    I have turned my iPad off and on.  I have deleted and reinstalled the mail accounts.  Neither strategy helped.
    I have no problems with my gmail address.  I can send mail if I log on to the hotmail website in Safari.
    Any ideas?
    Thanks

    23circles:
    I would like to find a way to only have the gmail inbox but still send from any three of her accounts.
    You can do it this way:
    Set up only one account. The one from which you want to receive mail.
    In Mail > Preferences > Accounts > +gmail acct+ > Email Address insert the other email addresses, separating each with a comma and single space.
    Only the GMail account will receive incoming Mail. However, when you want to send from another address, in the From dropdown menu toggle the address from which you wish to send mail.
    You will, of course, delete the other accounts you have created to avoid getting incoming messages.
    cornelius

  • I am on OS X and i am having problems sending pictures from the new pictures app via email.  when i hit the sharing button i have the option to send via iMessage or Facebook but the email option is ghosted and can't be checked off.  any suggestions?

    I am on OS X and i am having problems sending pictures from the new pictures app via email.  when i hit the sharing button i have the option to send via iMessage or Facebook but the email option is ghosted and can't be checked off.  any suggestions?

    I've resolved my problem now.  It wasn't iphoto: preferences:@ that I needed but iphoto:preferences:general where there is the option to choose email for sending photos.  Can't believe I missed that before.

  • Part 2: Load Image from URL into Dynamic Text Box - goodinson.snapshot

    I have a flash file where a user can add an image url into a Dynamic Text Box (image_in.text) and the image will now appear in the flash file.
    I am using goodinson.snapshot as featured in this article: Saving Flash graphics as image files at runtime | Adobe Developer Connection
    This application works fine (graphic is generated and downloaded) only if a user chooses an included graphic in the flash file (loaded externally) or if I declare a url inside the flash file for the load image variable (var image_url:String = "http://website.com/image.jpg";).
    However, if a user enters an image url into the Dynamic Text Box (image_in.text), which the flash does successfully load, the download image function no longer works!
    Is this a security bug in flash itself? Or am I missing a code tweak somewhere? 
    If an FLA that does this already exists somewhere, let me know.
    Thanks in advance for your help!

    Thanks for your response!
    The image urls are on the same domain as where the swf is.
    I don't understand how declaring the variable as the url is different from declaring it from the value of a dynamic text box... it's the same url, but only one method works, shouldn't they both work?
    var image_url:String = "http://website.com/image.jpg"; works..
    var image_url:String = image_in.text; does not work, even though the value for image_in.text is identical to the one in the example above.
    Since they are all on the same domain, this should work, right?
    Thanks again.

  • Sending data from database to a Text file..??????

    hi guys i am having trouble sending records from a database to a .txt file,
    (the database is on my local machine)
    the code so far is below, when i compile, it compiles with no problems but when i run it it gives me errors....the errors are below....
    any advice or help will be appreaciated ...tc
    =============================================================================================
    code:
    =============================================================================================
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.math.*;
    import javax.swing.border.*;
    import java.awt.event.*;
    public class DataOut extends JFrame {
    public DataOut()
    try
    // Connect to the Database
    //connection object created using DriverManager class
    //carpark is the name of the database
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection connect =DriverManager.getConnection("jdbc:odbc:carpark");
         // Read data from a table
    String sql = "SELECT * FROM member";
    Statement stmt = connect.createStatement();
    ResultSet rset = stmt.executeQuery("SELECT dds, dss, t, s FROM member");
    String str = "";
    while (rset.next()) {
    str += rset.getInt(1)+" "+ rset.getString(2)+" "+ rset.getFloat(3)+" "+rset.getInt(4)+"n";
    byte buf[] = str.getBytes();
    OutputStream fp = new FileOutputStream("file.txt");
    fp.write(buf);
    fp.close();
    rset.close();
    stmt.close();
    connect.close();
    catch(Exception e) {
    e.printStackTrace();
    this.setSize(450,260);
    this.setLocation(500,200);
    public static void main(String[] args)
    DataOut frame = new DataOut();
    ==========================================================================================================
    ===========================================================
    error:
    ===========================================================
    C:\Users\giga\Desktop>javac DataOut.java
    C:\Users\giga\Desktop>java DataOut
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Invalid characte
    r value for cast specification on column number 1 (dds)
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
    at sun.jdbc.odbc.JdbcOdbc.SQLGetDataInteger(JdbcOdbc.java:3811)
    at sun.jdbc.odbc.JdbcOdbcResultSet.getDataInteger(JdbcOdbcResultSet.java
    :5638)
    at sun.jdbc.odbc.JdbcOdbcResultSet.getInt(JdbcOdbcResultSet.java:583)
    at DataOut.<init>(DataOut.java:32)
    at DataOut.main(DataOut.java:54)
    C:\Users\giga\Desktop>java DataOut
    ===============================================================
    all the best..

    thx a lot it works...
    when it outputsto the txt file,, the data is all in one line...how can i seperate the output..sothat after it does one record the next record starts on a new line in the txt file...
    i know i have to edit this bit of the code but i am not sure which part...if that makes sense...
    ResultSet rset = stmt.executeQuery("SELECT dds, dss, t, s FROM member");
    String str = "";
    while (rset.next()) {
    str += "First name: "+ rset.getObject(1)+"\n" + " Second name: "+ rset.getObject(2)+" Third data: "+ rset.getObject(3)+" Fourth data: "+rset.getObject(4);
    i have tried "\n" but it seems not to work..

  • Problem sending mail from desktop

    Hi
    I am currently not able to send mail from my desktop. Works fine via web though. The message I get after a period of Mail trying to send message is the following
    "The connection to the server 'smtp.mac.com' on port 25 timed out"
    If I then run Connection Doctor, the further information I receive is
    "Could not connect to this SMTP server. Check your network connection and and that you entered the correct information in the Account preferences".
    Any help most welcome.
    Thanks

    J - Let me describe the issue I had before describing my work-around:
    I started getting the message "Could not connect to this SMTP server" only after the upgrade from Tiger to Leopard, and then only when I was trying to send attachments larger than about 50KB. I'm in a rural area, and only have dial-up. I was able to send text messages, and could receive emails with text and attachments, regardless of size.
    I believe that it is a Leopard issue in my case. Perhaps not in yours. Certainly you'll want to verify that something hasn't changed in your outgoing SMTP server settings....maybe contact your ISP to verify that they haven't made any changes.
    However, if your problem does seem similar to mine, and if you're about to pull your hair out, like I was, you may wish to try what I've done to address this problem:
    I have found two work-arounds...both are cumbersome, and I don't believe either is acceptable, but they do work for me. 1) Send mail from your ISP's webmail facility (or gmail, for example) or, 2) I have made a new partition on my disk on which I (re)installed Tiger. (I didn't have the "Could not connect..." issue with Tiger) I can drag attachments or other info into the Tiger partition from my Leopard disk, then restart in the Tiger disk. From Tiger, I can compose and send email from Tiger's Mail app. Good luck! Bill
    (I have posted this in other replies also).

  • Text arrays (variables) and Dynamic Text Box

    Hello everyone. I have a text file (let's call it sample.txt)
    that has numerous variables or arrays in this format:
    &info=This is some information
    &stuff=This is more stuff
    &whatever=Even more stuff again....
    Anyway, I need to load a particular variable via individual
    buttons from this same sample.txt file into a dynamic text box
    (let's call it dynText), and I am a bit lost as to how to do it.
    Please provide me a solution thank you.
    Glenn

    Thank you very much, it's greatly appreciated. It worked
    perfectly except that it does not like variables that begin with
    numbers like:
    &401_2b=401_2b
    The above doesn't work, but if I do this...
    &h401_2b=401_2b
    Everything is fine. Problem being, I am generating the
    variables via PHP and therefore cannot "change" them. Can you
    provide me with a way that ActionScript can "see" the variable that
    starts with a numeric value? Thanks for your time.
    Glenn

  • Problem sending mail from APEX...

    Hi everybody,
    I've looking for how to send email from my APEX application; I've been reading the forum and I've done a testing using the APEX_MAIL.send procedure. I don't know exactly how the APEX_MAIL works but it seems that my code should work. Unfortunately, it doesn't work... I should receive emails but I don't receive any of them.
    DECLARE
    l_body CLOB;
    BEGIN
    l_body := 'Thank you for your interest in the HTMLDB_MAIL package.'||utl_tcp.crlf||utl_tcp.crlf;
    l_body := l_body ||' Sincerely,'||utl_tcp.crlf;
    l_body := l_body ||' The HTMLDB Dev Team'||utl_tcp.crlf;
    APEX_MAIL.send(
    p_to => '[email protected]', -- change to your email address
    p_from => '[email protected]', -- change to a real senders email address
    p_body => l_body,
    p_subj => 'HTMLDB_MAIL Package - Plain Text message');
    wwv_flow_mail.push_queue(
    P_SMTP_HOSTNAME => 'localhost',
    P_SMTP_PORTNO => '25'
    EXCEPTION WHEN OTHERS THEN htp.p('Error');
    END;
    I execute it and there is no exception; it appears the "Procedure executed" message, but I don't receive the emails.
    Maybe I am doing wrong the push_queue process? Maybe the Hostname is wrong? Should I do something else in APEX to send the mails?
    Thank you very very much
    Message was edited by:
    sergicloser

    Hello,
    >> I'm not running on a local instance, but connected to a server.
    By local instance I meant not on apex.oracle.com. In that case, configuration issues should be considered.
    >> I've just run the SQL: Select * from apex_mail_queue
    and it has returned no data... This means that there is no emails in the queue, is it?
    The system will try to successfully send your e-mail for 10 times. If all these attempts failed, the e-mail will be removed from queue. You should send your e-mail prior to running the SQL query.
    >> The code doesn't return any error message.
    Error message will only be recorded in the queue log, which can be viewed using the apex_mail_queue view.
    >> It seems that I have a configuration problem maybe?
    That may be the case. The APEX_MAIL package is built on top of the Oracle supplied UTL_SMTP package, which must be installed and configured on your database. Is this the case with your system? (the error message in the apex_mail_queue will give you a clear indication of that).
    Regards,
    Arie.

  • Problem sending mail from DynPage

    Dear Experts,
    I am new to Portal development and am facing problem while trying to send mail using SMTP from my DynPage Application.
    The code is as follows:
    public boolean sendMailNotification(String from,String to,String subject,String body){
                String host="host";
              InitialContext ctx = null;
              MimeBodyPart bodyPart = null;
              Address[] address = null;
              Message msg = null;
              Transport tr = null;
              Session sess = null;
                try{
                   ctx = new InitialContext();
                   sess = (Session) javax.rmi.PortableRemoteObject.narrow(ctx.lookup("java:comp/env/mail/MailSession"), Session.class);
                   msg = new MimeMessage(sess);
                   msg.setFrom(new InternetAddress(from));
                   msg.setRecipient(Message.RecipientType.TO, new InternetAddress(to));
                   msg.setSubject(subject);
                   if ((body != null) && (body.length()>0)) {
                        msg.setContent(body, "text/plain");
                   } else {
                        msg.setContent("", "text/plain");
                   msg.setSentDate(new GregorianCalendar().getTime());
                   msg.saveChanges();
                tr = sess.getTransport("smtp");
                   tr.connect(host, "", "");
                   address = msg.getAllRecipients();
                   tr.sendMessage(msg, address);
                   tr.close();     
                }catch(Exception ex){
                     return false;
                return true;
    The code is working on the portal examples "sendmail using java"
    When i upload the par file onto the portal and try to execute, the following exception is thrown:
    #1.5#001279D91F2B002A0000000400000C5C000428DC632C84FC#1170826928718#com.sap.portal.portal#sap.com/irj#com.sap.portal.portal#200057#361846#####SAPEngine_Application_Thread[impl:3]_20##0#0#Error#1#/System/Server#Java###Exception ID:11:12_07/02/07_0108_1861750
    [EXCEPTION]
    #1#com.sapportals.portal.prt.runtime.PortalRuntimeException: PortalRuntimeException
    at com.sapportals.portal.prt.core.PortalRequestManager.handleRequestException(PortalRequestManager.java:921)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:803)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
    <b>Caused by: java.lang.NoClassDefFoundError: javax/mail/Message</b>
    at com.videocon.dqr.DQRPresidentReport.getPage(DQRPresidentReport.java:46)
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.getPage(PageProcessorComponent.java:193)
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doOnNodeReady(PageProcessorComponent.java:62)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)
    at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
    at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:369)
    at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:642)
    ... 21 more
    Plz. Reply as soon as possible.
    any help will be duly appriciated the SDN Way.
    Thanks and Regards,
    Gaurav Modgil

    Hey Gaurav,,
    Try copying the mail.jar in
    dist/PORTAL-INF/lib
    Rebuild
    Its prefered if you also copy all jars which you are using in the project to this  folder.
    2.Try to add javax.mail
    when you using the variables in your code.
    like ..,msg.setRecipient(<b>javax.mail.</b>Message.RecipientType.TO, new InternetAddress(to));
    I donno its weird do to this after including it in classpath
    But many times the PRT doesnt recognise the jar at all.
    So always best to spoonfeed it evrytime:-)
    It worked this way for me
    Thanks,
    Swathi

  • Problem sending mail from within C#

    Sorry, I am posting this question for the second time !!!!
    I have constructed a snippet that sends mail from within C#.In My script, there are will be several receivers of my mail. The script will read from a file, mail addresses and send mail to each individual contained in the file. As test I run the script with
    two mail addresses in the file,one my own and the second with outlook mail. However, the result is I get the mail but the second receiver  never gets it.
       What is the problem ????
    Please help
    I debugged the program and verified that Nsmtp and Mailreceiver are correct
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Net;
    using System.Net.Mail;
    using System.Net.Mime;
    using System.Text;
    using System.Windows.Forms;
    namespace Note_Pss
    public partial class Email : Form
    public Note_Pss.Form1 m_parent;
    Util util = new Util(); string signal = "#";
    char g = System.Convert.ToChar("*");
    char X = System.Convert.ToChar("@");
    Utility_Types utility_type = new Utility_Types(); string P = "";
    char p; String Mailsender; String Npass; String Nsmtp;
    String Mailreceiver; String Mailbody; String MailTitle;
    MailMessage mail = new MailMessage();
    public Email(Note_Pss.Form1 parent)
    InitializeComponent();
    m_parent = parent;
    string ListContent = util.openf(wsk.storagedbase + @"\TemFile");
    wsk.listArray = util.arrayadjust(ListContent, signal);
    private void multi_mail_Send()
    {char g = System.Convert.ToChar("*");
    MailParameters();
    int Count_num = wsk.listArray.Count;
    for (int i = 0; i < Count_num; i++)
    string P = wsk.listArray[i].ToString();
    string[] Sub_File = P.Split(g);
    Mailreceiver = Sub_File[2].ToString();
    Nsmtp = "smtp."+msmtp_name(Mailreceiver, "@");
    Send_Mail();
    //if (Enclosure.Text != "") MailAttachment();
    //MailBody();
    private String msmtp_name(string p, string p_2)
    string P = p.ToString();
    string[] Pp = P.Split(X);
    string bbb = Pp[1];
    return bbb;
    private void MailParameters()
    Mailsender = Sender.Text;
    Npass = Senderpass.Text;
    Mailbody = Body.Text;
    MailTitle = Subject.Text;
    private void Send_Mail()
    try
    MailMessage mail = new MailMessage();
    SmtpClient client = new SmtpClient();
    client.Port = 587;
    client.Host = Nsmtp;
    mail.From = new MailAddress(Mailsender);
    mail.To.Add(Mailreceiver);
    mail.Subject = MailTitle;
    mail.Body = Mailbody;
    textBox1.Text = Nsmtp + " " + Mailreceiver;
    client.DeliveryMethod = SmtpDeliveryMethod.Network;
    client.UseDefaultCredentials = false;
    client.Credentials = new System.Net.NetworkCredential(Mailsender, Npass);
    client.EnableSsl = true;
    client.Send(mail);
    catch (Exception ex) { textBox1.Text = ex.ToString(); }
    private void MailSend_Click(object sender, EventArgs e)
    { multi_mail_Send(); }
    private void button2_Click(object sender, EventArgs e)
    { Enclosure.Text = util.openImage();}
    private void button1_Click(object sender, EventArgs e)
    this.Close();

    Nsmtp and Mailreceiver are verified through debugging:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.Net.Mail;
    using System.Net.Mime;
    using System.Net;
    namespace Note_Pss
    public partial class Email : Form
    public Note_Pss.Form1 m_parent;
    Util util = new Util(); string signal = "#";
    char g = System.Convert.ToChar("*");
    char X = System.Convert.ToChar("@");
    Utility_Types utility_type = new Utility_Types(); string P = "";
    char p; String Mailsender; String Npass; String Nsmtp;
    String Mailreceiver; String Mailbody; String MailTitle;
    MailMessage mail = new MailMessage();
    public Email(Note_Pss.Form1 parent)
    InitializeComponent();
    m_parent = parent;
    string ListContent = util.openf(wsk.storagedbase + @"\TemFile");
    wsk.listArray = util.arrayadjust(ListContent, signal);
    private void multi_mail_Send()
    char g = System.Convert.ToChar("*");
    MailParameters();
    int Count_num = wsk.listArray.Count;
    for (int i = 0; i < Count_num; i++)
    string P = wsk.listArray[i].ToString();
    string[] Sub_File = P.Split(g);
    Mailreceiver = Sub_File[2].ToString();
    Nsmtp = "smtp." + msmtp_name(Mailreceiver, "@");
    Send_Mail();
    //if (Enclosure.Text != "") MailAttachment();
    //MailBody();
    private String msmtp_name(string p, string p_2)
    string P = p.ToString();
    string[] Pp = P.Split(X);
    string bbb = Pp[1];
    return bbb;
    private void MailParameters()
    Mailsender = Sender.Text;
    Npass = Senderpass.Text;
    Mailbody = Body.Text;
    MailTitle = Subject.Text;
    private void Send_Mail()
    try
    MailMessage mail = new MailMessage();
    SmtpClient client = new SmtpClient();
    client.Port = 587;
    client.Host = Nsmtp;
    mail.From = new MailAddress(Mailsender);
    mail.To.Add(Mailreceiver);
    mail.Subject = MailTitle;
    mail.Body = Mailbody;
    //SmtpServer.Port = 25;
    //textBox1.Text = Nsmtp + " " + Mailreceiver;
    client.DeliveryMethod = SmtpDeliveryMethod.Network;
    client.UseDefaultCredentials = false;
    client.Credentials = new System.Net.NetworkCredential(Mailsender, Npass);
    client.EnableSsl = true;
    client.Send(mail);
    // MessageBox.Show("mail Send");
    catch (Exception ex) { }
    private void MailSend_Click(object sender, EventArgs e)
    { multi_mail_Send(); }
    private void button2_Click(object sender, EventArgs e)
    { Enclosure.Text = util.openImage(); }
    private void button1_Click(object sender, EventArgs e)
    this.Close();

Maybe you are looking for

  • Cannot End Jump

    I have a clip which I want to loop continually - Listing that track as the end jump target does not work. Any Ideas? g5   Mac OS X (10.4.3)  

  • 802.1x authentication fail when trying to implement 802.11N

    Hello, I'm trying to deploy 802.11N along with 802.1X and IAS. Controller comunciates with Radius server (IAS) and this lives in a ESX host along with the Domain controller. Somehow users are not able to authenticate. WLC: AIR-CT550 - IP 10.152.36.5

  • JPanel methods arn't being overriden in my subclass.

    Basically I have a JPanel class which I want to use as a template (super class) for other GUI Items. These other GUI items extend off this class, but also have the ability of altering the appiernece of the panel by overiding some functions. As far as

  • Good PDF Printer/Writer?

    I am looking for a good Mac PDF printer/writer. One of the main features I need is when I save a PDF file, if the file name already exists I have the option to replace the file or append the pages from the current file to the start or end of the othe

  • CS5 running painfully slow

    Hiya - I have got the Mercury Playback Engine all set up with my new shiny graphics card (Geforce GTX 465) and with a small hack I have the card recognised by Premier Pro BUT it just won't run smoothly - I can scrub through the timeline but if i pres