473,322 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Passing stuff to an e-mail address

TNT
48
What code would I use to get a CGI script to pass input to an e-mail address? (Like feedback)
Feb 15 '07 #1
6 1169
KevinADC
4,059 Expert 2GB
do you mean to send an email or something else?
Feb 15 '07 #2
TNT
48
Kind of like writing to a text file, except it writes it to an e-mail address as a text file, kind of. It's hard to explain. I guess it will be like writing to a text file, but the file is an e-mail address, If you know what I mean.
Feb 15 '07 #3
KevinADC
4,059 Expert 2GB
Sorry, but I'm not following you. Maybe someone else understands what you mean or is familiar with what you are doing.
Feb 15 '07 #4
Ticool
3
They are covering that in another thread


http://www.thescripts.com/forum/thread601196.html
Feb 15 '07 #5
KevinADC
4,059 Expert 2GB
They are covering that in another thread


http://www.thescripts.com/forum/thread601196.html
TNT says he is not trying to send an email, but write to an mail address, which maybe is the same thing and he is confused, or I am confused, or we are all confused. ;)
Feb 15 '07 #6
@TNT

Try this:
Expand|Select|Wrap|Line Numbers
  1. use MIME::Lite;
  2.  
  3. my($sender)     = "<sender>";
  4. my($mailServer) = "<your mail server>";
  5. my($mailTo)     = "<comma separated list of receivers>";
  6. my($msg)        = "<whatever you want to send>";
  7.  
  8. my($msg) = MIME::Lite->new(
  9.   From    => $sender,
  10.   To      => $mailTo,
  11.   Subject => $msg,
  12.   Type    =>'multipart/mixed'
  13. );
  14.  
  15. $msg->attach(
  16.   Type =>'TEXT',
  17.   Data =>"Body !"
  18. );
  19.  
  20. MIME::Lite->send('smtp', "$mailServer");
  21. $msg->send();
Greetz, Doc
Feb 15 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Pete | last post by:
Any ideas on how I can set some data in 1.asp, then have 1.asp do a server.transfer (or .execute, come to that) to 2.asp, and have 2.asp access the original data? I'm aware that the Session...
11
by: comp.lang.php | last post by:
On one of my sites, I have a TCL CGI script that has a security hole in spite of it having effective server-side validation (the fact that it's CGI IS its security hole). The front end is a PHP...
2
by: Gordon Hudson | last post by:
Hello Here is what I am trying to do: Make a hyperlink on a data entry form with its URL built from the values for fields in that entry on the database. So, I would go to record 65785 click...
17
by: Charles Sullivan | last post by:
The library function 'qsort' is declared thus: void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *)); If in my code I write: int cmp_fcn(...); int...
1
by: DotNetJunkies User | last post by:
Hello, I have a scenario. In my application, login page is in different application and after validating the user I have to pass the user credentials to another asp.net web application. How can...
8
by: darrel | last post by:
OK, due to peer pressure, I'm caving into the concept that one should have the ASPX page TELL the ascx pages what's going on rather than vice versa. ;o) I have an aspx page that needs to pass a...
3
by: Stephen Travis | last post by:
I'm trying to write a subroutine that will fill an array of some type with several objects of that type. The subroutine works fine if I directly reference the array but if I pass the array as an...
4
by: Erik Foreman | last post by:
this is what I have 'variables defined as arrays Dim ceday(), ceti(), ceto(), ceproj(), cenotes() As String Dim cerow As Int32
17
by: Christopher Benson-Manica | last post by:
Does the following program exhibit undefined behavior? Specifically, does passing a struct by value cause undefined behavior if that struct has as a member a pointer that has been passed to...
3
by: dj10fld | last post by:
Hello I am having some diffculty with this programming assignement, I created an array of structures and all i want to do is pass all the members to a function to print them out. But im getting...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.