Is this (mail sending form) code right ?

I'm not a developer , my boss gave me this php code for sending form data to his mail ..
is this code right cuz it doesn't seem to work fine ?
<? php
$to = "[email protected]";                                                                                                                     
$cc = "[email protected]";                                                                                                                     
$bcc = "";                                                                                                                     
$subject = "Tailor Request Form";                                                                                                                     
$msg = "                                                                                                      
<table border=\"1\" width=\"600\">
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Titel</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$title."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Name</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$name."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Country</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$country."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Phone</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$phone."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>E-mail</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$Email."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Tour Package</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$TravelType."</td>
</tr>
</table>";                                
$from = "From: ".$_POST['Email'];                                                    
$html = "Content-Type: text/html";                                                    
$headers = $html."\r\n".$from."\r\n".$cc."\r\n".$bcc."\r\n";                                                    
//$headers .= "cc: [email protected]\r\n";                                                    
mail($to, $subject, $msg, $headers);?>

<?php
$to = "[email protected]";                                                                                                                      
$cc = "[email protected]";                                                                                                                      
$bcc = "";                                                                                                                      
$subject = "Tailor Request Form";                                                                                                                      
$msg = "                                                                                                               
<table border=\"1\" width=\"600\">
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Titel</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$title."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Name</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$name."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Name</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$last_name."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Country</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$country."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Phone</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$phone."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Fax</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$fax."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>E-mail</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$Email."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Tour Package</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$TravelType."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Transportation</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$DTransportation."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Number Of Persons</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$NumberofPersons."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Number Of Children</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$NumberofChildren."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Single Room</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$SingleRoomNo."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Double Room</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$DoubleRoomNo."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Twin Room</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$TwinRoomNo."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Triple Room</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$TripleRoomNo."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><b><font face=\"Verdana\" color=\"#000000\" size=\"2\">1<sup>st</sup> City of Interest</font></b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$CitiesToVisit1."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><b><font face=\"Verdana\" color=\"#000000\" size=\"2\">2<sup>nd</sup> City of Interest</font></b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$CitiesToVisit2."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><b><font face=\"Verdana\" color=\"#000000\" size=\"2\">4<sup>th</sup> City of Interest</font></b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$CitiesToVisit4."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><b><font face=\"Verdana\" color=\"#000000\" size=\"2\">5<sup>th</sup> City of Interest</font></b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$CitiesToVisit5."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Between Aswan and Luxor</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$TransportationFromAswanToLuxor."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Preferable Arrival Dates</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$ArrivalDay." - ".$ArrivalMonth." - ".$ArrivalYear."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Preferable Departure Dates</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$DepartureDay." - ".$DepartureMonth." - ".$DepartureYear."</td>
</tr>
<tr>
<td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Special Interests</b></td>
<td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
align=justify><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$SpecialInterests."</td>
</tr>
</table>";                                
$from = "From: ".$_POST['Email'];                                                    
$html = "Content-Type: text/html";                                                    
$headers = $html."\r\n".$from."\r\n".$cc."\r\n".$bcc."\r\n";                                                     
//$headers .= "cc: [email protected]\r\n";                                                    
mail($to, $subject, $msg, $headers);                                   
   ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Delta Tours Egypt</title>
<style type="text/css">
</style>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
  <div id="header"></div>
  <div id="menu">
    <ul id="MenuBar1" class="MenuBarHorizontal">
      <li><a href="about_egypt/about_egypt.html" class="MenuBarItemSubmenu">About Egypt</a>
        <ul>
          <li><a href="about_egypt/people.html">People</a></li>
          <li><a href="about_egypt/climate_clothes.html">Climate &amp; Clothes</a></li>
          <li><a href="about_egypt/transportation.html">Transportation</a></li>
        </ul>
      </li>
      <li><a href="cities_info/cities_info_main.html" class="MenuBarItemSubmenu">Cities Info</a>
        <ul>
          <li><a href="#">Cairo</a></li>
          <li><a href="#">Luxor</a></li>
          <li><a href="cities_info/aswan.html">Aswan</a></li>
          <li><a href="cities_info/red_sea.html">Red Sea</a></li>
          <li><a href="cities_info/sinai.html">Sinai</a></li>
          <li><a href="#">Oasis</a></li>
        </ul>
      </li>
      <li><a href="#">Hot Deals</a>      </li>
      <li><a href="#">Tailor Mode</a></li>
      <li><a href="about_us/about_us.html">About Us</a></li>
      <li><a href="contact_us.html">Contact Us</a></li>
    </ul>
  </div>
  <div id="mainMenu">  <ul>
<li><a href="index.html">Home</a></li>
<li><a href="tours/tours_main/classical_tours.html">Tours</a></li>
<li><a href="hotels/hotels_home.html">Hotels</a></li>
<li><a href="#">Cruises</a></li>
</ul></div>
  <div id="content">
   <div id="conTop"></div>
   <div id="conBg">
      <div id="spotlight">
       <p><strong><em>Your information has been submitted <br />
        one of our operators will contact you within<br />
24 hours for further details </em></strong></p>
<h5 class="signature"><em><strong>Delta Tours Team </strong></em></h5>
              <br class="clear" />
     </div>
     </div><div id="conBot"></div>
</div>
     <div id="footer">
  <div id="footerTop"></div>
  <div id="footerMid">
    <p>Home | Tours | Hotels | Cruises | About Egypt | Cities Info | Monuments & History | Hot Deals | Tailor Made | About Us | Contact Us | links</p>
    </div>
  <div id="footerBot"></div>
  </div>
<div id="copyRight">deltatoursegypt.com © 2012 .All rights reserved.</div></div>
</div>
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
</script>
</body>
</html>

Similar Messages

  • Mail to Form Code Confussion

    Hello everyone. I am having an issue with my Mail to Form code. It's not so much a technical one (I don't think it is anyway) It's mostly I don't understand what information to plug into a couple parts. I will post the code here (leaving out everything before the "body") and hopfully some one can help me out.
    <body>
    <div class="style1" id="apDiv1">Call Request Form</div>
    <div id="apDiv2">
      <div align="center">Please fill out this form and a Beta Test Studios represenetive will contact you as soon as possible. Thank you.</div>
    </div>
    <div id="apDiv3">
      <div align="center"><strong>Please tell us wher you heard about Beta Test Studios</strong></div>
    </div>
    <FORM METHOD=POST ACTION="[email protected]" ENCTYPE="text/plain">
    <table width="311" height="480" border=0 cellpadding=20 cellspacing=0>
    <tr>
    <td height="327"><font size=2 face="arial" color="#000000">
    <input type="text" name=Name size=27 />
    :Name<BR>
    <INPUT type="text" name=Phone size=27 id="Phone">
    :Phone<BR>
    <INPUT type="text" name=Call time size=27 id="Call time">
    :Time to Call<BR>
    <INPUT type="text" name=email size=27> :E-mail
    </font></td>
    </tr>
    <tr>
    <td width="230" height="62">
    <SELECT name="choices" size=1>
    <OPTION selected> Please Choose
    <OPTION> Google
    <OPTION> Yahoo!
    <OPTION> Newspaper/Magazine
    <OPTION> Word of mouth
    <OPTION> Other
    </SELECT></td>
    </tr>
    <tr>
    <td height="91">
    <font size=1 face="arial" color="#000000">
    <center>
    <INPUT NAME="redirect" TYPE="hidden" VALUE="index.html">
    <INPUT NAME="NEXT_URL" TYPE="hidden" VALUE="index.html">
    <INPUT type=submit value="Send">
    <INPUT type=reset value="Clear">
    </center></td></tr></table>
    </FORM>
    <!-- ** END OF FORM ** -->
    </body>
    </html>
    I am having a problem understanding exactly what I am supposed to put here near the very bottom after <INPUT NAME="redirect" TYPE="hidden" VALUE=    and after <INPUT NAME="NEXT_URL" TYPE="hidden" VALUE=    I know that I am supposed to replace the "index.html" part in both lines I am not sure what I am supposed to replace it with. Any help would be appreciated. Thanks so much.

    Hi,
    What are you trying to do exactly?  If you would like to make a piece of text link to a mailto code where, if clicked, it will automatically open up that person's email with a blank email page with u as the receiver, then all you have to do in Dreamweaver is..
    1.  Highlight all the text you want the link to the email to be.
    2. Go to the "link" window in the properties panel under the main viewing window
    3. Type in "mailto:youremailhere" without the quotes of course and that will create the link I believe you might be looking for.
    If this is not the nature of your problem please be more descriptive.

  • What's the problem of this mail sending program

    Hi,
    I have Written following code. I have wriiten & run this code in Eclipse. Mail.jar & Activation.jar both jar file i kept in the webcontent/web-inf/lib
    directory. & I also added this jar file using builpath->add External Library. But when run this code then it throws the following exception. What's the problem of code? IS there anybody can help me? Please help me.
    My code is : UserMail.jsp
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
    <title>Mail Sending Program</title>
    <%@ page import="javax.mail.internet.*"%>
    <%@ page import="javax.mail.*"%>
    <%@ page import="java.util.*"%>
    </head>
    <body>
    <%
    String to = "[email protected]";
    String from = "[email protected]";
    String host = "192.168.1.1";
    String txt = "I am from jsp of java";
    String subject = "For testing";
         Properties props = System.getProperties();
         props.put("mail.smtp.host", host);
         Session session1 = Session.getDefaultInstance(props, null);
         MimeMessage msg = new MimeMessage(session1);
         try{
              InternetAddress to1 = new InternetAddress(to);
        msg.setFrom(new InternetAddress(from));
       msg.addRecipient(Message.RecipientType.TO,to1);
       msg.setSubject(subject);
      msg.setText(txt);
          msg.setSentDate(new Date());
        Transport.send(msg);
         catch(Exception e){
              e.printStackTrace();
    %>
    </body>
    </html>Exception is:
    javax.mail.MessagingException: Could not connect to SMTP host: 192.168.1.1, port: 25;
      nested exception is:
         java.net.SocketException: Software caused connection abort: connect
         at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
         at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
         at javax.mail.Service.connect(Service.java:275)
         at javax.mail.Service.connect(Service.java:156)
         at javax.mail.Service.connect(Service.java:105)
         at javax.mail.Transport.send0(Transport.java:168)
         at javax.mail.Transport.send(Transport.java:98)
         at org.apache.jsp.UserMail_jsp._jspService(UserMail_jsp.java:73)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.SocketException: Software caused connection abort: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
         at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
         at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)
         ... 27 moreWith regards
    Bina

    javax.mail.MessagingException: Could not connect to SMTP host: 192.168.1.1Is this host Ip correct. If Ip is correct then this host should be a mail exchange server. Hope u did not use Ip address of ur machine ;-)
    By the way hope u recd the test mail during my testing....lol
    Regards
    Rohit

  • Mac Mail sending messy code attachments to windows

    I've sync 6 different mail accounts to my Mac Mail, but what it troubles me is that when I send Chinese emails with attchemnt (in Chinese too) the reciever Widonow users keep getting messy code with somthing like (鍛@?鍗$墖.docx).
    I've been look every where on Google can't find any good solution. I know that changing my Text Encoding works but I can't set it to defualt
    I know there's an updates that windows can download so that they read mac's uni code, but I can't find the download link.
    If I switch to Office Outlook would I still get this problem? or is there any better way that Apple can help me to solve this?

    To thoughs just been searching, I just came across a app that actually solve this problem (well at least for Chinese attachment).
    It's a new app develop by tencent called foxmail (http://foxmail.com.cn) it works fine for me.
    you guys can go check it out. But this app's interface isn't as good as mac mail, but at least my colleagues stopped complaining at the mess code problem.

  • Send form is different email to address than specified in submit button

    I'm using Adobe Acrobat 9 PRO (CS5) and have a problem where the "wrong" mailto: address is displayed to the responder after a PDF form has been completed by the responder... it appears in the final "Send Form" pop up which details the email address the PDF is being submitted to (as well as 2 x fields for the responder to add their "From" info into: 1."email address" and 2."Full Name")
    THE PROBLEM IS THIS: The "Send Form"email address shown at the top is not the same as the email address specified in the PDF Forms submit button (I've used "[email protected]" option) and though the submit button DOES send it to the correct specified email address it is showing my standard email address in the "Send Form" pop up box, which I don't want as I am sending a survey form so I would like my "[email protected]" email address to appear here and not my usual/main email address (I need it to display the same info as I've set my submit button to).
    What can I do to change the info that seems to automatically appear here...? (Also to change the reply "Subject Header" while I'm at it?)
    Any help is greatly appreciated!

    Hi George,
    Many thanks for your reply; it was really helpful - now my "Send Form" reply pop-up window shows the same email address as the email address I specified in my forms submit button: excellent! (it has caused a new problem now though, with my email server now barring the replies from reaching me for some reason, but I'll have to sort that out with our IP!)
    - SPECIFYING A PDF FORM'S REPLY EMAIL "SUBJECT HEADER":
    I am manually distributing a "saved" form and will collate the data from my email inbox at a later date; did you have a solution to change the "Subject Header" in the reply email if use this manual send process?

  • How send mail from forms 10g

    hi all,
    can any help in this,
    i want send a mail from forms 10g,how???
    thanx in advace,
    chands

    hi,
    my oracle version is 10.1.0.4.2
    this is my code....
    PROCEDURE Send_Mail_001 (sender IN VARCHAR2,
    recipient IN VARCHAR2,
    subject IN VARCHAR2,
    message IN VARCHAR2)
    IS
    mailhost VARCHAR2(30) := '10.192.30.12';
    mail_conn utl_smtp.connection;
    TEST VARCHAR2(100);
    crlf VARCHAR2(2):= CHR( 13 ) || CHR( 10 );
    mesg VARCHAR2(2000);
    BEGIN
    mail_conn := utl_smtp.open_connection(mailhost,25);
    utl_smtp.helo(mail_conn, mailhost);
    utl_smtp.mail(mail_conn, sender);
    utl_smtp.rcpt(mail_conn, recipient);
    mesg:= 'Date: ' || TO_CHAR( SYSDATE, 'dd Mon yy hh24:mi:ss' ) || crlf ||
    'From: ' || sender || crlf ||
    'To: ' || recipient || crlf ||
    'Subject: '|| subject || crlf;
    mesg:= mesg || ' ' || crlf || crlf || message ||'.' || crlf || '.'|| crlf;
    UTL_SMTP.OPEN_DATA(mail_conn);
    utl_smtp.write_data (mail_conn, mesg);
    /* body of email with multiple
    utl_smtp.write_data (v_mail_conn, v_message);
    call to write_data
    utl_smtp.write_data (mail_conn, mesg);
    UTL_SMTP.CLOSE_DATA(mail_conn);
    utl_smtp.quit(mail_conn);
    premia_wf_log('mail','hi');
    EXCEPTION
    WHEN OTHERS THEN
    premia_wf_log('mail',sqlerrm);
    END;
    can u help me in this..........
    thanx in advance
    chands

  • Uncaught Exception occured while sending mail through abap code.

    Hi,
    Uncaught Exception occured while sending mail through abap code.Run time Errors "UNCAUGHT_EXCEPTION" occured after excuting the call method  CALL METHOD SEND_REQUEST->SEND( ).kindly help in resolving the issue.

    HI,
    Runtime Error:  UNCAUGHT_EXCEPTION details.
    Runtime Errors         UNCAUGHT_EXCEPTION
    Exception              CX_ADDRESS_BCS
    Short text
         An exception occurred that was not caught.
    What happened?
         The exception 'CX_ADDRESS_BCS' was raised, but it was not caught anywhere along
         the call hierarchy.
         Since exceptions represent error situations and this error was not
         adequately responded to, the running ABAP program 'SAPLZSEND_MAIL' has to be
         terminated.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_ADDRESS_BCS', was not caught in
        procedure "SEND_MAIL" "(FORM)", nor was it propagated by a RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        An exception occurred
    How to correct the error
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "UNCAUGHT_EXCEPTION" "CX_ADDRESS_BCS"
        "SAPLZSEND_MAIL" or "LZSEND_MAILU01"
        "ZSEND_EMAIL"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
        program: The source code of the program
           In the editor, choose "Utilities->More
        Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    The exception must either be prevented, caught within proedure
    "SEND_MAIL" "(FORM)", or its possible occurrence must be declared in the
    RAISING clause of the procedure.
    Please help me to resolve this issue.

  • NEED TO SEND MAIL FROM FORMS...

    DEAR ALL,
    I NEED TO SEND MAIL FROM FORMS WHEN I PRESS THE MAIL BUTTON.
    I HAVE NO IDEA FOR THIS CRITERIA. IF ANY ONE EXPERIENCED WITH
    THIS CRITERIA, PLS HELP ME AND GIVE ME THE CODING FOR THAT.
    AND ALSO PLS EXPLAIN EACH LINE OF CODING, WHICH U POST.
    THANKS IN ADVANCE
    S.BERNANDAS

    Your requirement can be done in forms. Good amounts of advice here. There 244 messages this year alone that fit the search criteria in the Oracle Forms forum.

  • Garbage in mail body when sending mail from abap code

    Hi abapers,
    i am sending mail from my program and when the data reaches in mailbox it is as follows.
    佐呓义⁇䅄䕔䌉乏啓䕍⁒低䌉乏啓䕍⁒䅎䕍䤉⁃䥔䭃⁔低म䍉吠䍉䕋⁔䕄䍓䤉⁃䥔䭃呅匠䅔啔॓
    which is not proper.
    I'm attaching the following part of code which i have used.Please let me know if i've made any mistake over here.
    DOCDATA-OBJ_LANGU = SY-LANGU.
      DOCDATA-OBJ_NAME = 'Mail_Excel_File'.
      DOCDATA-OBJ_DESCR = 'Closed Customer Complaints'.      
      DOCDATA-SENSITIVTY = 'F'.
      OBJTXT =
      'Attached compensation request is pending for your approval as on '.
      APPEND OBJTXT. CLEAR OBJTXT.
      OBJTXT =
      'today. Please find the attached Field Investigation Report.'.
      APPEND OBJTXT. CLEAR OBJTXT.
      OBJTXT =
      'This is auto generated mail.Please do not reply to this mail.'.
      APPEND OBJTXT. CLEAR OBJTXT.
      DESCRIBE TABLE OBJTXT LINES TAB_LINES.
      READ     TABLE OBJTXT INDEX TAB_LINES.
      DOCDATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    CLEAR OBJPACK-TRANSF_BIN.
      OBJPACK-TRANSF_BIN = 'X'.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM = 0.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM = TAB_LINES.
      OBJPACK-DOC_TYPE = 'RAW'.
      APPEND OBJPACK.
      DESCRIBE TABLE I_CONTENTS_HEX LINES TAB_LINES.
    *  OBJPACK-DOC_SIZE = TAB_LINES * 255  + STRLEN( OBJTXT ).
      OBJPACK-DOC_SIZE = TAB_LINES * 255  .
      OBJPACK-TRANSF_BIN = 'X'.
    *  OBJPACK-TRANSF_BIN = SPACE.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM = 1.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM = TAB_LINES.
      OBJPACK-DOC_TYPE = 'XLS'.
    * DOCDATA-OBJ_NAME = 'Excel_File_Attachment1'.
    *  OBJPACK-OBJ_DESCR = FILE_NAME.
      OBJPACK-OBJ_DESCR = P_FILE.
      APPEND OBJPACK.
      RECLIST-RECEIVER = RECIEVER.
      RECLIST-REC_TYPE = 'U'.
      RECLIST-EXPRESS = 'X'.
      APPEND RECLIST.
    * FM called for sending the mail to the intended recipients
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          DOCUMENT_DATA = DOCDATA
          PUT_IN_OUTBOX = 'X'
          COMMIT_WORK   = 'X'
        TABLES
          PACKING_LIST  = OBJPACK
          CONTENTS_HEX  = I_CONTENTS_HEX
          CONTENTS_TXT  = OBJTXT
          RECEIVERS     = RECLIST
       EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
    what will be the problem..
    please help out.
    Regards,
    Navin
    Edited by: navin.c on Jul 10, 2009 8:08 AM

    Hi Krishna,
    I have attachment properly coming the problem is body of mail its is coming in some  unknown language
    佐呓义⁇䅄䕔䌉乏啓䕍⁒低䌉乏啓䕍⁒䅎䕍䤉⁃䥔䭃⁔低म䍉吠䍉䕋⁔䕄䍓䤉⁃䥔䭃呅匠䅔啔॓剐䑏䌠䵏⁐低म剐䌠䵏⁐呓呁单䌉䵏⹐删充低म䅌呓䌠䅈䝎䑅䄠॔剐䑏䍕⁔䕄䅔䱉॓䡓䑁⁅䅎䕍匉䅈䕄䌠䑏ॅ䅂䕓丠䵁ॅ䅂䕓䌠䑏ॅ䅂䍔⁈啎䉍剅䴉乁䙕䝃䐠呁ॅ䅓偍䕌䄠䅖䱉䉁䱉呉ख़䉏䕓噒
    what may be the problem?
    I have used the same logic . im attaching my part of code for your reference .
    DOCDATA-OBJ_LANGU = SY-LANGU.
      DOCDATA-OBJ_NAME = 'Mail_Excel_File'.
      DOCDATA-OBJ_DESCR = 'Closed Customer Complaints'.         "nsc070709+
      DOCDATA-SENSITIVTY = 'F'.
    * Describe the body of the message
    *********new additon of mail content
    * CONCATENATE  'Dear'  L_FIRSTNAME ','
    *  INTO OBJTXT SEPARATED BY SPACE.
    *  APPEND OBJTXT. CLEAR OBJTXT.
      OBJTXT =
      'Attached compensation request is pending for your approval as on '.
      APPEND OBJTXT. CLEAR OBJTXT.
      OBJTXT =
      'today. Please find the attached Field Investigation Report.'.
      APPEND OBJTXT. CLEAR OBJTXT.
      OBJTXT =
      'This is auto generated mail.Please do not reply to this mail.'.
      APPEND OBJTXT. CLEAR OBJTXT.
      DESCRIBE TABLE OBJTXT LINES TAB_LINES.
      READ     TABLE OBJTXT INDEX TAB_LINES.
      DOCDATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    *  OBJTXT = 'Attached is the FIR PENDING CASES'.
    *  APPEND OBJTXT.
    *  DESCRIBE TABLE OBJTXT LINES TAB_LINES.
      CLEAR OBJPACK-TRANSF_BIN.
      OBJPACK-TRANSF_BIN = 'X'.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM = 0.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM = TAB_LINES.
      OBJPACK-DOC_TYPE = 'RAW'.
      APPEND OBJPACK.
      DESCRIBE TABLE I_CONTENTS_HEX LINES TAB_LINES.
    *  OBJPACK-DOC_SIZE = TAB_LINES * 255  + STRLEN( OBJTXT ).
      OBJPACK-DOC_SIZE = TAB_LINES * 255  .
      OBJPACK-TRANSF_BIN = 'X'.
    *  OBJPACK-TRANSF_BIN = SPACE.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM = 1.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM = TAB_LINES.
      OBJPACK-DOC_TYPE = 'XLS'.
    * DOCDATA-OBJ_NAME = 'Excel_File_Attachment1'.
    *  OBJPACK-OBJ_DESCR = FILE_NAME.
      OBJPACK-OBJ_DESCR = P_FILE.
      APPEND OBJPACK.
      RECLIST-RECEIVER = RECIEVER.
      RECLIST-REC_TYPE = 'U'.
      RECLIST-EXPRESS = 'X'.
      APPEND RECLIST.
    * FM called for sending the mail to the intended recipients
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          DOCUMENT_DATA              = DOCDATA
          PUT_IN_OUTBOX              = 'X'
          COMMIT_WORK                = 'X'
        TABLES
          PACKING_LIST               = OBJPACK
          CONTENTS_HEX               = I_CONTENTS_HEX
          CONTENTS_TXT               = OBJTXT
          RECEIVERS                  = RECLIST
        EXCEPTIONS
          TOO_MANY_RECEIVERS         = 1
          DOCUMENT_NOT_SENT          = 2
          DOCUMENT_TYPE_NOT_EXIST    = 3
          OPERATION_NO_AUTHORIZATION = 4
          PARAMETER_ERROR            = 5
          X_ERROR                    = 6
          ENQUEUE_ERROR              = 7
          OTHERS                     = 8.
      COMMIT WORK.
    Can anybody help me out on this issue.
    Its somewhat on priority.
    Edited by: navin.c on Jul 10, 2009 12:58 PM

  • Failed to send the mail message error code: -49

    Hi,
    When sending mail outside the company (outside the domain), getting this error: Failed to send the mail message error code: -49
    When sending mail internally (within the domain) successfully submitted.
    I was looking for notes relating to the subject but could not find anything that helped me
    I would appreciate your help,
    Hilla

    Hi Gordon,
    The problem was solved, the customer changed his ip adress on the server and it's OK now!
    Thank you !!
    Hilla.

  • Sms code for verification does not reach to my mobile. ? i can not access my e-mail because of code that does not sent right now. code that related to my alternated e-mail was sent , but not to mobile

    sms code for verification does not reach to my mobile. ? i can not access my e-mail because of code that does not sent right now. code that related to my alternated e-mail was sent , but not to mobile

    Bugzilla is not the place for this sort of problem. Forwarded this post to the relevant team.

  • How to send mail from ABAP code?

    Hi,
    I need to send e-mail from ABAP Code .
    e.g:  If sy-subrc ne 0.
         ( send e-mail to  "[email protected]" )
           endif.
    Please provide me any Function module for this or any code.
    Correct answear will be rewarded my maximum points.
    Thanks & Regards,
    Gaurav.

    Check this code sample
    * Send mail
      maildata-obj_name = 'TEST'.
      maildata-obj_descr = 'Test Subject'.
      loop at htmllines.
        mailtxt = htmllines.
        append mailtxt.
      endloop.
      mailrec-receiver = '[email protected]'.
      mailrec-rec_type  = 'U'.
      append mailrec.
      call function 'SO_NEW_DOCUMENT_SEND_API1'
           exporting
                document_data              = maildata
                document_type              = 'HTM'
                put_in_outbox              = 'X'
           tables
                object_header              = mailtxt
                object_content             = mailtxt
                receivers                  = mailrec
           exceptions
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                others                     = 8.
      if sy-subrc  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    Regards.

  • How to send formatted mail from form 6i

    Hi,
    There is requirment in my project to send formatted mail from form 6i.The database used in 9i.In normal form we can send normal mail.However our requirment is such that the mail content should have company logao pics and it should display data in coloured format based on data fetched from database.How can this be done.
    l

    What method are you using to send email from your form now? If you are using UTL_SMTP, you can set the MIME_TYPE = 'HTML' as Francois suggests. If you are using an OLE call to Outlook or a email JavaBean? The method you use to send email will dictate how you send Rich Text/HTML email messages.
    Craig...

  • Smartforms: send form via mail

    Hi,
    I need help at filling structure of MAIL_SENDER, MAIL_RECIPIENT and MAIL_APPL_OBJ. Exist any Functionmodule for filling this field for sending forms with smartforms via  email. How/where can I get the parameters info for  MAIL_SENDER,MAIL_RECIPIENT and MAIL_APPL_OBJ?
    Regards
    Hüsniye

    Here is an example to add text and to put a name to the attached file.
    ... Before that Get OTF ...
    CLEAR: reclist, reclist[],
             objhead, objhead[],
             objtxt,  objtxt[],
             objbin,  objbin[],
             objpack, objpack[].
    Create the PDF File
      CLEAR objbin.
      REFRESH objbin.
      objbin[] = it_mess_att[].
      DESCRIBE TABLE objbin LINES righe_attachment.
    Text in the mail.
      objtxt = 'Text - Line 1'.APPEND objtxt.
      objtxt = 'Text - Line 2'.APPEND objtxt.
      objtxt = 'Text- Line 3'.APPEND objtxt.
      DESCRIBE TABLE objtxt LINES righe_testo.
    Armo informacion del documento.
      doc_chng-obj_name = 'URGENT'.
      doc_chng-expiry_dat = sy-datum + 10.
      CONCATENATE 'FILE_NAME' 'HELLO'
                  INTO doc_chng-obj_descr SEPARATED BY space.
      doc_chng-sensitivty = 'F'.
      doc_chng-doc_size = righe_testo * 255.
    Create Pack to text in mail body.
      CLEAR objpack-transf_bin.
      objpack-head_start = 1.
      objpack-head_num = 0.
      objpack-body_start = 1.
      objpack-body_num = righe_testo.
      objpack-doc_type = 'RAW'.
      APPEND objpack.
    Create Pack to PDF Attach.
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num = 1.
      objpack-body_start = 1.
      objpack-body_num = righe_attachment.
      objpack-doc_type = 'PDF'.
      objpack-obj_name = 'TEST'.
      CONCATENATE 'File Name' '.pdf'
                  INTO objpack-obj_descr.
      objpack-doc_size = righe_attachment * 255.
      APPEND objpack.
      CLEAR reclist.
      reclist-copy = 'X'.
    Receivers
      reclist-receiver = '[email protected]'
      reclist-express = 'X'.
      reclist-rec_type = 'U'.
      reclist-notif_del = 'X'.  " request delivery notification
      reclist-notif_ndel = 'X'. " request not delivered notification
      APPEND reclist.
    Send Mail.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = doc_chng
          put_in_outbox              = 'X'
        TABLES
          packing_list               = objpack
          object_header              = objhead
          contents_hex               = objbin
          contents_txt               = objtxt
          receivers                  = reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
    Regards
    PabloX

  • I have suddenly got the following message An (SMTP) error occurred while sending mail. The server responded: Requested action aborted: This mail account has se

    Having been on Thunderbird for some years I have suddenly got the following message when trying to send mail.
    An (SMTP) error occurred while sending mail. The server responded: Requested action aborted: This mail account has sent too many messages in a short amount of time. Please try later..
    I have checked the SMTP server settings in tools, account settings and they are as they have always been. Is there something I have missed?

    Sending through web mail is totally irrelevant to using an SMTP server. The message even says it is from the server. Why do you think this is a Thunderbird problem.
    The provider has put in place measures to keep people from spamming other email recipients using thier SMTP server. You have seen the result of those measures.

Maybe you are looking for

  • Safari doesn't load certain sites properly (anything better out there)?

    Hi there, Safari is playing tricks and is not willing (capable?) of reading certain sites (mainly banking). Colors are not correct and I can't see the menus although they are there since I can click on the white background and be directed to a desire

  • Components will not assign to tabs in tab container

    When I drag a new component (such as a Spreadsheet Table) to any tab on a tab container, it just becomes another object on the canvas (and not included within the tab or tab set). How do I actually place objects within the individual tabs?

  • Listing Document Libraries using JavaScript

    Is it possible to use JavaScript to list all document libraries of a site? I would like to create a page that lists all document libraries (where the document library's name meets certain criteria). Johan Raeymaeckers

  • SIDs are written in a Fact Table?

    Hi, Some experts told me that SIDs are written in a fact table in extended star schema model . I am not able to understand how SIDs can be written in a fact table. As per my understing fact table contains only keyfigure and Dimids ( foreign key). Ple

  • Delete serial numbers from inbound delivery

    which is the best way to delete serial numbers(not manually) from inbound delivery other than writing a VL32N BDC. is there any FM or BAPI to do this? I've tried WS_DELIVERY_UPDATE and SERNR_DEL_FROM_DOCU, but they are not working. any suggestions/ti