CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 ASP Email with Jmail

Print topic Send  topic

Author Message
paulp

Posts:
Posted: 01/15/2004, 3:49 PM

Hi I am reletively new to CodeCharge and have a question regarding email.

My provider does not allow Cdonts and only uses Jmail - how can I do this through Codecharge.

I want to have the facility to send information from a new and also updated records to the office so we know jobs have been completed.

Any information would be a bonus.

Many thanks
View profile  Send private message
peterr


Posts: 5971
Posted: 01/15/2004, 7:04 PM

JMail and your hosting company should provide the documentation for JMail. I'm also assuming it can be found here:
http://www.google.com/search?q=jmail+asp

Once you find the examples, I'm pretty sure that they will look similar to CDONTS, therefore you can easily replace CDONTS-specific code with the one for JMail.
For example in CDONTs you'd write:
objNewMail.Subject = "This is a test Mail"

And in JMail the same probably would be done with:
JMail.Subject = "This is a test Mail"
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Gerrit Saey
Posted: 01/16/2004, 6:56 PM

Just create CUSTOM code (sample ON CLICK)


'Custom Code @12-73254650
' -------------------------
' Write your own code here.
' -------------------------
With CreateObject("JMail.SMTPMail")
.ServerAddress = "smtp.yourserver.com"
.Sender = "noreply@dgwtrade.net"
.Subject = "Your subject"
.AddRecipient Register.Email.Text
.body = "Your body text"," &vbcrlf
.AddHeader "Originating-IP", Request.ServerVariables("REMOTE_ADDR")
.Execute
End With

'End Custom Code


"peterr" <peterr@forum.codecharge> schreef in bericht
news:6400754bfa753e@news.codecharge.com...
> JMail and your hosting company should provide the documentation for JMail.
I'm also assuming it can be found here:
> http://www.google.com/search?q=jmail+asp
>
> Once you find the examples, I'm pretty sure that they will look similar to
CDONTS, therefore you can easily replace CDONTS-specific code with the one
for JMail.
> For example in CDONTs you'd write:
> objNewMail.Subject = "This is a test Mail"
>
> And in JMail the same probably would be done with:
> JMail.Subject = "This is a test Mail"
> _________________
> Peter R.
> YesSoftware Support Representative
> http://support.codecharge.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

paulp

Posts:
Posted: 01/17/2004, 6:49 PM

Hi there

tried Peter R comments first - had no joy at all. Then tried Gerrit Saey's comments - I no longer get a page displayed at all.

You mentioned that I add ustom code to ON CLICK - I am assuming that this is a form input and not HTML input (as I could not find an ON CLICK option in the HTML input)

Do I need to make a new button or can I add it to the already included submit button ?

Thanks - paulp
View profile  Send private message
peterr


Posts: 5971
Posted: 01/19/2004, 12:57 AM

paulp,

Our tutorials describe the process of sending emails in detail:
http://docs.codecharge.com/studio/html/QuickStart/EnhAp...SendEmails.html

You should also be able to use the Server "On Click" event of your existing "Submit" button, on any existing form.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Bubba

Posts: 33
Posted: 02/05/2004, 7:54 PM

This is how I use Jmail with CCS in the "Send Email" event:

Dim JMail
Set JMail = Server.CreateObject("JMail.SMTPMail")
JMail.ServerAddress = "smtp.server-mail.com" ' Here's where I send my mail
JMail.AddHeader "X-Originating-IP", Request.ServerVariables("REMOTE_ADDR") ' Who's using me?
JMail.AddHeader "X-Originating-URL", Request.ServerVariables("URL") ' From which page?
JMail.Priority = 1
JMail.Sender = Form.Mail_Email.Text ' I sent it
JMail.AddRecipient "myemail@myplace.com.au" ' They're getting it
JMail.Subject = "Some Text"
JMail.ContentType = "text/html" ' Defaults to text/plain if left out
JMail.Body = "Some Text"
JMail.Logging = True ' Let's see what the SMTP server said
JMail.Execute ' This is where everything happens

' The next three lines display the conversation which was
' captured when we said JMail.Logging = True
Response.Write "<PRE>" & vbCRLF
Response.Write (JMail.Log)
Response.Write "</PRE>"

JMail.Close ' Release the connection to the SMTP server
set JMail = nothing
View profile  Send private message
Lamka
Posted: 04/06/2004, 10:33 PM

Hi All, I need FLash MX 2004 free ebooks
Send me URL address

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.