CDO Form mailer: Using Verio's instructions
I used verios instructions to create a code as I was
instructed.
I get this error message:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/index_files/emailer.asp, line 26
Dim Flds Const cdoSendUsingPort = 2
---------^
This is my entire code:
<!--METADATA TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D" NAME="CDO for Windows
Library" -->
<!--METADATA TYPE="typelib"
UUID="00000205-0000-0010-8000-00AA006D2EA4" NAME="ADODB Type
Library" -->
<%
DIM objCDO
Set objCDO = Server.Createobject("CDO.Message")
%>
<% Set objCDO = Nothing %>
<%
myMail.From = "[email protected]"
myMail.To = "[email protected]"
myMail.Subject = "Story"
myMail.TextBody = "Here is a story from the website"
myMail.Send
%>
<%
Dim objConf
Set objConf = Server.CreateObject("CDO.Configuration")
%>
<%
Dim Flds Const cdoSendUsingPort = 2
Set Flds = iConf.Fields
With Flds
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "mail-fwd"
.Item(cdoSMTPServerPort) = 25
.Item(cdoSMTPconnectiontimeout) = 10
.Update
End With
%>
http://www.verio.com/support/documents/view_article.cfm?doc_id=3894
I got the instructions from the page above:
Can you look at my code and see if there is any errors?
Thanks SO much!
Try putting this on 2 lines:
Dim Flds Const cdoSendUsingPort = 2
Like this:
Dim Flds
Const cdoSendUsingPort = 2
Ken Ford
Adobe Community Expert - Dreamweaver/ColdFusion
Fordwebs, LLC
http://www.fordwebs.com
"[email protected]" <[email protected]>
wrote in message news:g5oe7c$jl3$[email protected]..
>I used verios instructions to create a code as I was
instructed.
>
> I get this error message:
> Microsoft VBScript compilation error '800a0401'
>
> Expected end of statement
>
> /index_files/emailer.asp, line 26
>
> Dim Flds Const cdoSendUsingPort = 2
> ---------^
>
> This is my entire code:
>
> <!--METADATA TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
> NAME="CDO for Windows Library" -->
>
> <!--METADATA TYPE="typelib"
UUID="00000205-0000-0010-8000-00AA006D2EA4"
> NAME="ADODB Type Library" -->
>
> <%
> DIM objCDO
> Set objCDO = Server.Createobject("CDO.Message")
> %>
>
> <% Set objCDO = Nothing %>
>
> <%
> myMail.From = "[email protected]"
> myMail.To = "[email protected]"
> myMail.Subject = "Story"
> myMail.TextBody = "Here is a story from the website"
> myMail.Send
> %>
>
> <%
> Dim objConf
> Set objConf = Server.CreateObject("CDO.Configuration")
> %>
>
> <%
> Dim Flds Const cdoSendUsingPort = 2
> Set Flds = iConf.Fields
> With Flds
> .Item(cdoSendUsingMethod) = cdoSendUsingPort
> .Item(cdoSMTPServer) = "mail-fwd"
> .Item(cdoSMTPServerPort) = 25
> .Item(cdoSMTPconnectiontimeout) = 10
> .Update
> End With
> %>
>
>
>
>
>
>
>
>
http://www.verio.com/support/documents/view_article.cfm?doc_id=3894
>
> I got the instructions from the page above:
>
>
> Can you look at my code and see if there is any errors?
>
>
> Thanks SO much!
>
>
Similar Messages
-
Cannot receive mail using leopard
Recently my parents mac mini which is runing Leopard stopped receiving mail addressed to there @mac.com account. I have tried deleting the account then adding it back again to no avail. I can log into their iCloud account no ptoblem using same credentials. I do get a reoccuring pop up telling me that the address is not correct, but I can use the password for icloud, an i did check that the password I use for their icloud account i sthe same I use to try to set up their mail account.
Hi Scott, yes, everything has changed.
Do not delete the old account yet. sign up for an iCloud account if you haven't.
MAKE A NEW ACCOUNT - DO NOT TRY TO ALTER YOUR EXISTING ACCOUNT.
I understand .mac mail will still come through. Do not delete the old account yet.
You cannot use .mac or MobileMe as type of Account, you have to choose IMAP when setting up, otherwise Mail is hard coded to change imap.mail.me.com to mail.me.com & smtp.mail.me.com to smtp.me.com, no matter what you try to enter.
iCloud Mail setup, do not choose .mac or MobileMe as type, but choose IMAP...
On second step where it asks "Description", it has to be a unique name, but you can still use your email address.
IMAP (Incoming Mail Server) information:
• Server name: imap.mail.me.com
• SSL Required: Yes
• Port: 993
• Username: [email protected] (use your @me.com address from your iCloud account)
• Password: Your iCloud password
SMTP (outgoing mail server) information:
• Server name: smtp.mail.me.com
• SSL Required: Yes
• Port: 587
• SMTP Authentication Required: Yes
• Username: [email protected] (use your @me.com address from your iCloud account)
• Password: Your iCloud password
Also, you must upgrade your password to meet the new criteria: 8 characters, including upper and lower case and numbers. If you have an older password that does not meet these criteria, when you try to setup mail on your mac, using all of the IMAP criteria listed above, it will still give a server error message. Go to http://appleid.apple.com then follow directions to change your password, then go back to setting up your mail using the IMAP instructions above.
Thanks to dpepper...
https://discussions.apple.com/thread/3867171?tstart=0 -
How to send HTML Format Mail using Java Mail in oracle 9i Forms
Dear All
could you please tell me how to send HTML Format Mail using Java Mail in oracle 9i Forms and how to implement the java mail ?
if it is possible, could you please send me the sample code? please very urgent
Thanks
P.SivaramanHello,
<p>Here is a Form sample.</p>
Francois -
Send a mail use FM 'so_object_send' with a Script form layout
Hi,
I try to send a mail use FM 'so_object_send', is it possible to use a sap script form for the layout?
Please give more details....Hi,
Did you debug and check this function module 'SO_NEW_DOCUMENT_SEND_API1' ?
As you said its giving you a sy-subrc = 2, did you check at what stage it is giving you an error ?
Also, Commit work = 'X' has nothing to do with this as you are getting an error of Sy-subrc = 2.
Also, while debugging are you getting the email address fetched from database table ? If no, then the sender's email has not been maintained. You will have to maintain the sender's email in the user details in SU02 under Address tab.
I would recommend you to go for BCS to send emails wherein you specify the sender email address directly in the program rather than adding email address in every user's logon details.
Regards,
Danish.
Edited by: Danish2285 on Mar 5, 2012 3:28 PM -
Hello Everyone,
I am starting to learn Flash and created a form mailer for a website I am working on. The following code is what I have in AS3.0 and it all loads fine in the web browser, but I do not receive the email with the info.
var address:String = "gdform.php";
var url:URLRequest;
var variables:URLVariables = new URLVariables ();
variables.subject = "New Fighter Profile";
submit_btn.addEventListener(MouseEvent.CLICK,sendForm);
function sendForm(event:MouseEvent):void{
variables.FirstName = firstname_txt.text;
variables.LastName = lastname_txt.text;
variables.Birthdate = birthdate_txt.text;
variables.Nickname = nickname_txt.text;
variables.HeightFt = hft_txt.text;
variables.HeightIn = hin_txt.text;
variables.Weightclass = weightclass_txt.text;
variables.RecWins = wins_txt.text;
variables.RecWins = losses_txt.text;
variables.Debut = debut_txt.text;
variables.Hometown = hometown_txt.text;
variables.FightClub = fightclub_txt.text;
variables.Styles = styles_txt.text;
variables.Email = email_txt.text;
variables.Bio = bio_txt.text;
url = new URLRequest (address);
url.method = URLRequestMethod.POST;
url.data = variables;
navigateToURL (url);
var reqThanks:URLRequest=new URLRequest("thanks.html");
navigateToURL(reqThanks,"_blank");
var reqHome:URLRequest=new URLRequest("index.html");
navigateToURL(reqHome,"_parent");
Please Help!
Thanks,
JohnMaybe someone here can help.
In spite of the site name, it is a Mac video card site. -
Howdy all,
I use DW 2004MX. If this topic has been addressed before, I'm
sorry. I am trying to make a very simple form mail work on my
website; name, address, phone # and send. I know for a fact there
are two types of form scripts on my server, and both are activated.
One is a CGI (gdform.cgi), and the other is a PHP (gdform.php). My
server is Godaddy if that matters. I have read many messages about
form mail, but cannot find out how to MAKE IT ALL WORK. I have been
looking for a step-by-step answer, but no luck so far. BTW, I am a
newbie. The manual I have is "aftermarket", and is near useless for
the form mail stuff. The web address is www.azaleatrail.com
Any help would be greatly appreciated,
Thanks,
MonaLisaWest> One is a CGI (gdform.cgi), and the other is a PHP
> (gdform.php). My server is Godaddy if that matters.
my suggestion from trying to sort out questions from others
hosted with go
daddy- don't bother with either of those scripts.
I assume that you can use php files within your site?
If yes- i suggest this script:
http://boaddrink.com
-->phpformmail
the instructions are in the zipped folder.
short list of instructions i suggest (use your own info of
course)
http://groups-beta.google.com/group/macromedia.dreamweaver/search?q=alan+php
formmail+edit+recipient&start=0&scoring=d&
1)go to
http://boaddrink.com
-->phpformmail
download it.
http://www.boaddrink.com/projects/files/phpformmail/phpformmail_class...
.2.zip
extract the ZIP file.
2) open formmail.php in dreamweaver
Make the following changes (in code view, turn line numbers
on)
2a)
line 4,
define('CHECK_REFERER', true);
change to:
define('CHECK_REFERER', false);
reason: too many people use a firewall or Norton security to
restrict this.
2b)
Line 43
$referers = array('www.example.com', 'example.com');
change to the url address of your web site.
reason: this probably isn't needed since we just turned the
referrer
checking off. but change it anyway.
2c) *********this is the hard-coding of the recipient address
into the php
file, where it is totally invisble**********
Line 46
$recipient_array = array();
change to:
$recipient_array = array('me' =>
'[email protected]);
**put YOUR email address in to replace
[email protected]
reason: this sets the email address the form results will be
sent to.
3) now do a File-->Save As and save this file to within
this Local Site
folder.
4) in dw's File Panel, find formmail.php and upload it to the
remote site.
5) Now open your form html file in dreamweaver,
5a)click the mouse into the form area, and select the
<form> tag on the
lower left margin of the design window.
In the Property Inspectory, it should now show the properties
of the <form>
tag. In the Property Inspector, to the right of the ACTION
line, click the
folder icon and browse to and select the copy of the
formmail.php file
you've saved to within this site.
5b) now go to dw menu-->Insert-->Form
Objects-->Hidden Field
This inserts a hidden form field.
In the property inspector, change the NAME of this field to:
recipient
And the VALUE of this field to: me
the code should look like:
<input name="recipient" type="hidden" id="recipient"
value="me">
6) Save and upload the form page.
Try the form from the website.
Optional:
make a new page for a thank you for submitting message.
In the form, insert another hidden field.
Name: redirect
Value: the full absolute
http:// address to the new thank you page.
There is other information about that script in the Docs
folder.
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/ -
I have loaded form mail into my hosting account for
juliashipley.com not sure which code to use don't need the ones
that create a form so that leaves 2 a very short script which does
not work and the other folder has a huge long script. Can someone
point me in the right direction its the only thing holding my site
up now.
Many thanks
JuliaHi Julie,
Don't get discouraged :-)
I took a look at your host's instructions. It looks like the
script resides
in a folder called hp_formmail or some variant depending on
which script you
pic.
The instructions aren't very in depth.
So, possibly another approach?
Can you find out what server side language your hosting plan
supports? It
should say in your hosting information. Look for ASP or PHP.
Do you have a Linux or Windows hosting plan?
If it's Windows, I can help you with a very easy ASP page
that you can just
upload to the host into the same folder as your contact page.
If PHP, there's lot's of pretty straight forward tutorials we
can point you
to.
There is a chance your host or plan limits this, unlikely but
with the
sparse instructions on form mail I'm not discounting it, so
if worse comes
to worst I'll be happy to help you through email where you
can send me the
instructions they say pop up when you choose a script, as
well as their
script and we can figure it out.
Take care,
Tim
"Juliamay" <[email protected]> wrote in
message
news:foigr7$8jg$[email protected]..
> Hi Tim,
>
> Have done what you said none of the info is in the
cgi-bin you click on
> /hp_formmail_noimg and that takes you to several items
including samples.
> Sorry
> I am really confused now not difficult at 53 I am amazed
I got this far
> its
> taken me twice as long as it should but I really don't
understand this
> bit. I
> have emailed the college but do not expect much joy.
Thanks for trying.
>
> Julia
> -
Error "number out of range" in pdf sent through mail using smartform outpu
Hi Experts,
We have a program which sends mail using smartform output in 'PDF' format. We are able to preview smartform correctely in SAP and mail is also getting sent fine with attachment of form as PDF document. But, when we try to open the document, it gives error saying 'Number out of range'. Also, not all of the windows of smartform are appearing in document and some are coming only half.
We are not able to find out the reason for this. Any help would be appriciated.Hi Soumya,
Have you got the solution as we are facing the same issue.
Cheers,
Bharath -
Error "number out of range" in pdf sent through mail using smartform output
Hi Experts,
We have a program which sends mail using smartform output in 'PDF' format. We are able to preview smartform correctely in SAP and mail is also getting sent fine with attachment of form as PDF document. But, when we try to open the document, it gives error saying 'Number out of range'. Also, not all of the windows of smartform are appearing in document and some are coming only half.
We are not able to find out the reason for this. Any help would be appriciated.
Gouri.Hello,
How did you solve this one? We are facing the same problem in ECC6.0.
Thanks in advance,
Benjamin de Rijke -
Sending PDF forms (created using SFP) as Email Attachment
Hi,
I have created bunch of ADOBE forms using SFP. They are not interactive forms. created using ADOBE Live cycle designer.
I have the Function module and by executing I can view the PDF form in print preview mode. But I have to save this in backend and attach to email.
I have a program that have to send one of the forms created in SFP as email attachment to outside SAP.
Please advice how to achieve this.
Thanks,
SanjeevHi ,
Please find below a code sample for your requirement
*& Report ZENVOI_PDF_MAIL
REPORT zenvoi_pdf_mail MESSAGE-ID ad.
TYPE-POOLS : abap .
DATA : data_for_update TYPE zdemopdf ,
hexa TYPE solix_tab.
DATA : fm_name TYPE funcname ,
param TYPE sfpoutputparams,
doc_param TYPE sfpdocparams ,
output TYPE fpformoutput .
param-nodialog = abap_true. " suppress printer dialog popup
param-getpdf = abap_true.
doc_param-langu = sy-langu.
doc_param-country = 'FR'.
doc_param-fillable = abap_true.
doc_param-dynamic = abap_true.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'ZDEMO_PDF'
IMPORTING
e_funcname = fm_name.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = param
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4.
CHECK sy-subrc EQ 0.
CALL FUNCTION fm_name
EXPORTING
/1bcdwb/docparams = doc_param
data_for_update = data_for_update
IMPORTING
/1bcdwb/formoutput = output
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3.
CALL FUNCTION 'FP_JOB_CLOSE'
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = output-pdf "PDF file from function module
TABLES
binary_tab = hexa.
* Envoi du mail
** CLASS-DEFINITIONS
DATA: send_request TYPE REF TO cl_bcs.
DATA: document TYPE REF TO cl_document_bcs.
*DATA: sender TYPE REF TO cl_sapuser_bcs.
data: sender TYPE REF TO if_sender_bcs.
DATA: recipient TYPE REF TO if_recipient_bcs.
** INTERNAL TABLES
DATA: l_mailtext TYPE soli_tab.
DATA: iaddsmtp TYPE TABLE OF bapiadsmtp.
DATA: ireturn TYPE TABLE OF bapiret2.
** VARIABLES
DATA: mail_line LIKE LINE OF l_mailtext.
DATA: bapiadsmtp TYPE bapiadsmtp.
DATA: subject TYPE so_obj_des.
DATA : att_subject TYPE so_obj_des.
DATA : w_except TYPE REF TO cx_root .
CONSTANTS : c_defmail TYPE ad_smtpadr VALUE
'[email protected]' .
FIELD-SYMBOLS : <smtp> TYPE bapiadsmtp.
*Set subject of the mail
subject = 'Exemple de PDF interactif'.
* Set text of the mail
mail_line = 'Merci de remplir le formulaire et nous le retourner'.
APPEND mail_line TO l_mailtext .
att_subject = 'Template du PDF'.
TRY.
* Create persistent send request
send_request = cl_bcs=>create_persistent( ).
* Get sender object
sender = cl_sapuser_bcs=>create( sy-uname ).
* sender =
* cl_cam_address_bcs=>create_internet_address( '[email protected]' ) .
* Add sender
CALL METHOD send_request->set_sender
EXPORTING
i_sender = sender.
* Read the E-Mail address for the user
* CALL FUNCTION 'BAPI_USER_GET_DETAIL'
* EXPORTING
* username = sy-uname
* TABLES
* return = ireturn
* addsmtp = iaddsmtp.
* LOOP AT iaddsmtp ASSIGNING <smtp> WHERE std_no = 'X'.
* CLEAR bapiadsmtp.
* MOVE <smtp> TO bapiadsmtp.
* ENDLOOP.
* CASE bapiadsmtp-e_mail.
* WHEN space.
recipient =
cl_cam_address_bcs=>create_internet_address( c_defmail ).
* WHEN OTHERS.
* recipient =
* cl_cam_address_bcs=>create_internet_address( bapiadsmtp-e_mail ).
* ENDCASE.
* Add recipient with its respective attributes to send request
CALL METHOD send_request->add_recipient
EXPORTING
i_recipient = recipient
i_express = 'X'
i_copy = space
i_blind_copy = space
i_no_forward = space.
* Set that you don't need a Return Status E-mail
CALL METHOD send_request->set_status_attributes
EXPORTING
i_requested_status = 'E'
i_status_mail = 'E'.
* set send immediately flag
send_request->set_send_immediately( 'X' ).
*Build Document
document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = l_mailtext
i_subject = subject ).
* add attachment to document
CALL METHOD document->add_attachment
EXPORTING
i_attachment_type = 'PDF'
i_attachment_subject = att_subject
i_att_content_hex = hexa.
* Add document to send request
CALL METHOD send_request->set_document( document ).
* Send document
CALL METHOD send_request->send( ).
COMMIT WORK.
CATCH cx_send_req_bcs INTO w_except.
CATCH cx_address_bcs INTO w_except.
CATCH cx_document_bcs INTO w_except.
ENDTRY.
Hope this help you .
Best regards -
What is a good resource for pre-made PHP Form Mailer Scripts.
This is for use with a website hosted on GoDaddy.
My client has a few requirements that the GoDaddy script does
not offer (and the script I chose from GoDaddy is uneditable). I
know nothing about scripting but thought I could use a pre-made
script and modify it...is that crazy thinking on my part?
Here are the special requests from my client:
- They'd like to see the time the form was submitted in EST
(the GoDaddy script puts the time in military time in another time
zone in the subject line). Can this appear in the body of the email
as well as the subject line?
- They'd like the form to be sent to the person submitting it
as well as to their company
- They would like to be able to REPLY TO the email they
receive with the form submission and have it be addressed to the
person submitting the form. The current script has the email
addressed to themselves (the company) if they click REPLY TO, so
they are replying to themselves
- Although this has nothing to do with the Form Mailer script
as far as I can guess, they asked that the person filling out the
form be able to print it prior to submitting (in my opinion,
though, if i can have a copy of the submission sent to the
submitter, there's no reason for this). But if anyone knows how to
do this, please let me know.
- Finally, the client wants to know if each submission can
have a unique tracking number assigned to it.
Thank you all. Any feedback is appreciated.
RichardHi,
I can without any doubt recommend Forms 2 Go:
http://www.bebosoft.com/products/formstogo/index.php
Very easy to use and even someone like me who don't know a
lot of
programming, use it extensively.
Deon
"RichyZee" <[email protected]> wrote in
news:gcvkac$fcp$[email protected]:
> What is a good resource for pre-made PHP Form Mailer
Scripts. This is
> for use with a website hosted on GoDaddy.
>
> My client has a few requirements that the GoDaddy script
does not
> offer (and
> the script I chose from GoDaddy is uneditable). I know
nothing about
> scripting but thought I could use a pre-made script and
modify it...is
> that crazy thinking on my part?
>
> Here are the special requests from my client:
>
> - They'd like to see the time the form was submitted in
EST (the
> GoDaddy
> script puts the time in military time in another time
zone in the
> subject line). Can this appear in the body of the email
as well as the
> subject line?
>
> - They'd like the form to be sent to the person
submitting it as well
> as to
> their company
>
> - They would like to be able to REPLY TO the email they
receive with
> the form
> submission and have it be addressed to the person
submitting the form.
> The current script has the email addressed to themselves
(the company)
> if they click REPLY TO, so they are replying to
themselves
>
> - Although this has nothing to do with the Form Mailer
script as far
> as I can
> guess, they asked that the person filling out the form
be able to
> print it prior to submitting (in my opinion, though, if
i can have a
> copy of the submission sent to the submitter, there's no
reason for
> this). But if anyone knows how to do this, please let me
know.
>
> - Finally, the client wants to know if each submission
can have a
> unique
> tracking number assigned to it.
>
> Thank you all. Any feedback is appreciated.
>
> Richard
>
> -
Hi All,
I am using Oracle 10g database and am trying to send e-mail using the UTL_MAIL.SEND functions.
I followed the instructions given here: http://technotes.towardsjob.com/oracle/utl-mail-package-oracle-10g/
The code that I am trying to execute is :
DECLARE
sender varchar2(64);
recipients varchar2(64);
subject varchar2(64);
message varchar2(64);
pri number;
BEGIN
sender:= '[email protected]';
recipients:= '[email protected]';
subject:= 'Test';
message:= 'Test Message';
UTL_MAIL.SEND(sender,recipients,'[email protected]','[email protected]','null',2);
END;
and I am getting the error
ORA-04063: package body "STERLING.UTL_MAIL" has errors
ORA-06508: PL/SQL: could not find program unit being called
Please help as to what I can do now.
Thanks in advance
Sidhi,
You must both install UTL_MAIL and define the SMTP_OUT_SERVER.
To install UTL_MAIL:
sqlplus sys/<pwd>
SQL> @$ORACLE_HOME/rdbms/admin/utlmail.sql
SQL> @$ORACLE_HOME/rdbms/admin/prvtmail.plb
to give perminssion to a user to send mail
grant execute on utl_mail to username;
EXECUTE UTL_MAIL.send(sender =>'[email protected]',recipients =>'[email protected]',subject =>'Test Mail',message => 'Hello World',mime_type => 'text; charset=us-ascii',priority => 3);
hope this help
regards,
deepak -
I have applications on two sites where I use a form mail CGI-bin script to allow a user to enter contact information and send. It works great, but I'm wondering if there's any easier method than what I'm currently doing. I now direct the form info e-mail to my domain server, and then forward it from there to a private e-mail address.
With CGI form mail, is it possible to simply direct the form data to a private e-mail address, or does it need to go to the domain server first?
TomHi KB:
I'm not an expert by any measure, but here's how it works for me:
1. You'll need a folder on your site root. Mine is calle "cgi-bin". In that folder, there should be several files that are provided by your host. In my case, there are four files in it. That folder needs to be on your local drive and on your host server in your website's root folder.
2. In your code view (or split view), you'll need to insert these three lines of code, filled in with your information (I've indicated data you'll need to fill in for your site in bold italic). Once completed, these three lines of code should be inserted directly below the line that contains the code with your
Make sure you don't lose the " marks when you edit in your info.
Assuming you are using the DWCS4 "form" function and all the other form fields are filled in, you'll need to be sure your "ACTION" field on the form is as follows: http://www.yourdomain.com/cgi-sys/formmail.cgi
Finally, I've found that, at least with my hosts, I have to direct the form data to my domain e-mail address initially. If I want to redirect it from there to my "private" e-mail address (e.g., yahoo, gmail, live.net, other), I have to set up an auto-forward of the domain e-mail to my private e-mail address using the host's C-panel function. I tried just specifying my private e-mail and I got an error message that my private mail address could not be found on the server. I think that if you want form data forwarded directly to a private e-mail address without first having to go through your host server, you'll probably need to use a PHP script -- which is even more "fun" than CGI.
Hope this helps.
Regards,
Tom -
Interactive Form - mail subject
Hi SDN,
In an offline interactive form scenario, the subject of the email is like a code (cryptic).
Is possibile to change the subject of the email?
THX.Hi,
I am not sure what you mean by cryptic... In any case, the e-mail sent out with interactive forms is generated using a certain mail template. This is FORM_FILLOUT, if I'm not wrong. It is configured in Visual Administrator, but you can of course replace it with a custom template.
You can design the template in the Administration workset and then configure the mime.id.forms.mail property in VA with the new template name.
For more info look at:
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/17/f156428367bd30e10000000a155106/frameset.htm">Managing E-Mail Templates</a>
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/6a/fa96421ae6c66ae10000000a155106/frameset.htm">Configuration for Guided Procedures Forms</a>
HTH:)
Regards, Petja -
Hi Experts,
Please tell me how to send an e-mail using a ABAP program.
i have one variable having a calculated value and i need to send this value using the same program as E-mails.Here is a fairly generic procedure to do that. You'll need to supply p_addr as the email of the recipient.
* FORM send_email_message
* Routine to mail report to person
FORM send_email_message
TABLES
p_t_message TYPE STANDARD TABLE.
DATA:
l_t_packing_list TYPE TABLE OF sopcklsti1,
l_t_receivers TYPE TABLE OF somlreci1,
l_s_packing_list TYPE sopcklsti1,
l_s_receivers TYPE somlreci1,
l_doc_data TYPE sodocchgi1,
l_sent_all(1) TYPE c,
l_subject_cnt TYPE i,
l_subject TYPE string,
l_email_addr TYPE bapiadsmtp-e_mail.
FIELD-SYMBOLS: <selopts> TYPE ANY.
FIELD-SYMBOLS: <selopts_oncall> TYPE ANY.
DESCRIBE TABLE p_t_message LINES l_subject_cnt.
l_subject = l_subject_cnt.
CONCATENATE l_subject text-004 sy-sysid INTO l_subject SEPARATED BY space.
CONDENSE l_subject.
* Fill the document data.
l_doc_data-doc_size = 1.
l_doc_data-obj_langu = sy-langu.
l_doc_data-obj_name = 'SAPRPT'.
l_doc_data-obj_descr = l_subject.
l_doc_data-sensitivty = 'F'.
* Describe the body of the message
l_s_packing_list-transf_bin = space.
l_s_packing_list-head_start = 1.
l_s_packing_list-head_num = 0.
l_s_packing_list-body_start = 1.
DESCRIBE TABLE p_t_message LINES l_s_packing_list-body_num.
l_s_packing_list-doc_type = 'RAW'.
APPEND l_s_packing_list TO l_t_packing_list.
* For each on-call schedule in the selection screen, get the person
* on call and add them to the receiver list.
l_s_receivers-receiver = p_addr.
l_s_receivers-rec_type = 'U'.
l_s_receivers-com_type = 'INT'.
l_s_receivers-notif_del = ' '.
l_s_receivers-notif_ndel = ' '.
APPEND l_s_receivers TO l_t_receivers.
* Call the FM to post the message to SAPMAIL
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = l_doc_data
put_in_outbox = 'X'
commit_work = 'X'
IMPORTING
sent_to_all = l_sent_all
TABLES
packing_list = l_t_packing_list
contents_txt = p_t_message
receivers = l_t_receivers
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
OR l_sent_all <> 'X'.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
PERFORM flush_mail_queue.
ENDFORM."
* Flush mail queue
FORM flush_mail_queue.
SUBMIT rsconn01
WITH mode = 'INT'
AND RETURN.
ENDFORM."
Maybe you are looking for
-
We would like to keep that information private. I only see "To:" Is there a way to change "To:" to "Bcc:"? Thank you.
-
CrystalReportViewer refresh finished event?
Hi, I'm try to figure out a way to automatically export (using a user configured set of options) a report when the report is finished processing. I'm currently subscribing to the RefreshEventHandler, however, this is only fired at the start of the r
-
Note: this renders correctly in browsers and DW 8 design view. Does anybody else get this effect: css is used to but a solid background colour on a h1 tag. With the following code <!-- InstanceBeginEditable name="regContentMain" --> <h1>Introduction<
-
Cannot verify server error won't go away
I can not get this error to go away. I tried restoring on pc but have windows 8 and it's not recognizing the ipad. Any other ideas?
-
Why can't I change file ownership in the Finder when logged in as root?
Why can't I change file ownership in the Finder when logged in as root? I can change it in the Finder if logged in as admin or via the terminal as root. Xserve Other OS