catalyst2 community forums  

Go Back   catalyst2 community forums > Support > Scripting Support

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 07-03-2006, 10:52 AM   #1 (permalink)
Registered User
 
Join Date: Nov 2003
Posts: 21
Webmail - Not seeming to send

Following code used to work, project has been dormant for a month but back to it now.

dim cdoMail
Set CDOMail = server.CreateObject("CDONTS.NewMail")
With CDOMail
.From = "reg@MyDomainName.com"
.To = Trim(inTo)
.Subject = inSubject
.Body = inBody
.MailFormat = 0
.Send
End With


Not seeming to sned this morning, have I messed something up and forgotten?

Thanks ina advance

Al
alweb is offline   Reply With Quote
Old 07-03-2006, 10:54 AM   #2 (permalink)
Administrator
 
Jacob's Avatar
 
Join Date: May 2003
Posts: 1,299
Hi Al,

The From address must be an email address that exists on our mail server otherwise the mail will not go through.

Regards,

Jacob
Jacob is offline   Reply With Quote
Old 07-03-2006, 10:58 AM   #3 (permalink)
Registered User
 
Join Date: Nov 2003
Posts: 21
Hi there Jacob

Has this changed in the last month? I have added a mail account via Helm this am after looking at a different post, but it still seems to not send, I don't get an error.

Alex
alweb is offline   Reply With Quote
Old 07-03-2006, 10:59 AM   #4 (permalink)
Administrator
 
Jacob's Avatar
 
Join Date: May 2003
Posts: 1,299
Hi Alex,

Yes, this has changed in the last month, it is setup in order to reduce spam. What is your domain name?

Regards,

Jacob
Jacob is offline   Reply With Quote
Old 07-03-2006, 11:01 AM   #5 (permalink)
Registered User
 
Join Date: Nov 2003
Posts: 21
xxx.com

email user is reg@...

Damn your quick today

Last edited by alweb; 07-03-2006 at 11:07 AM.
alweb is offline   Reply With Quote
Old 07-03-2006, 11:04 AM   #6 (permalink)
Administrator
 
Jacob's Avatar
 
Join Date: May 2003
Posts: 1,299
Have they come through now?
Jacob is offline   Reply With Quote
Old 07-03-2006, 11:05 AM   #7 (permalink)
Registered User
 
Join Date: Nov 2003
Posts: 21
Just got two that were sent to texting provider in the last hour, both came together.

Will test again now
alweb is offline   Reply With Quote
Old 07-03-2006, 11:07 AM   #8 (permalink)
Registered User
 
Join Date: Nov 2003
Posts: 21
Working fine now, you're a supa star thanks
alweb is offline   Reply With Quote
Old 07-03-2006, 11:09 AM   #9 (permalink)
Administrator
 
Jacob's Avatar
 
Join Date: May 2003
Posts: 1,299
You're welcome
Jacob is offline   Reply With Quote
Old 13-03-2006, 03:45 PM   #10 (permalink)
Registered User
 
Join Date: Mar 2006
Posts: 2
Can you allow the www.quo360.com domain to send e-mails as well please.

Jon
i2d2Jon is offline   Reply With Quote
Old 13-03-2006, 05:06 PM   #11 (permalink)
Registered User
 
adam's Avatar
 
Join Date: Jan 2003
Location: UK
Posts: 181
Try using this code, it will send using a remote server ie mail.catalyst2.com and will give you more freedom to send text/html emails. This uses CDOSYS rather than CDONTs
Code:
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.Bcc="someoneelse@somedomain.com"
myMail.Cc="someoneelse2@somedomain.com"
myMail.HTMLBody = "<h1>This is a message.</h1>"
myMail.TextBody="This is a message."
myMail.AddAttachment "c:\mydocuments\test.txt"
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
="mail.catalyst2.com"
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
=25 
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
%>
adam is offline   Reply With Quote
Old 14-03-2006, 09:29 AM   #12 (permalink)
Registered User
 
Join Date: Mar 2006
Posts: 2
Thumbs up

Thanks that seems to be working fine.
i2d2Jon is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 01:55 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.