Scodigo, Inc.

Log In | Register

Cart Items:
0

Emailing

Using the PHP Examples in the main sample file I adjust the settings to reflect my email account, server and what not. I keep getting authentication failed messages. I've rechecked every setting down to using a different port than the default. Nothing seems to change the authentication error.

The actual text, including the spelling error, from the error is:

"An error occured [sic]: 1001 Failed to send message

Authentication failure [SMTP: Invalid response code received from server (code: 535, response: Error: authentication failed)]"

If I use the php code from the test bed to send out emails I get "Message sent." However, no emails are actually being sent.

Any ideas?

Sending inline video (AddEmbeddedImage) (PHPmailerv2.3)

The PHPmailer v2.3 class and an customised script works together fine now! And also with a foreach function to send multiple attachments and multiple embedded images. But when I embed a m4v movie file, the isn't correctly pointing to the embedded file although the cid is correct.

The source of the email is like:
Content-Type: application/octet-stream; name="filename.m4v"
Content-Transfer-Encoding: base64
Content-ID: (less than)filename(greater than)
Content-Disposition: inline; filename="filename.m4v"

while the html is:
(less than)video width="640" height="360" poster="filename.jpg" controls="controls"(greater than) (less than) source src="cid:filename" alt="alttekst" (greater than) (less than)a href="http://mysite.com/"(greater than)(less than)img src="filename.jpg" width="640" height="360" /(greater than)(less than)/a(greater than) (less than)/video(greater than)

When I replace the source-cid to the file on my webserver, my e-mail shows the movie well.
Can it be achieved with PHPmailer v2.3 and the Scodigo plugin?

Replacing PEAR with PHPMailer > class problem

I'm using Smartpill 2.0.1, PHP Version 5.2.9 and copied CF's and scripts from the emailing example out of the file: SmartPill PHP Examples.fp7. It works fine while using the PEAR code.

(script: Send_Email using Custom Function: _SendEmail)

Because of the length (speed) and the complexity of that PEAR code, I want to use the PHPMailer v2.3 or v.2.2.1 code, but I can not get it working. Although the confirmation suggests success, the DataViewer tells me "PHP Fatal error: Class 'Mail' not found in Embedded code on line 3112".

Do you know what I should change?

Thanks in advance.
Rolf

PEAR mail and custom functions...

I've found a set of custom functions and the PEAR code and have it sending mail pretty as you please on a local Mac, but hosted remotely on a Windows server, the most basic of the custom functions don't work, so the email code doesn't even get close to working. (errors on line 1)

I was thinking there were issues in the code, but after some testing discovered that the "_CheckPHPSupportFolder" function is returning a question mark.... that's not supposed to be one of it's options.

so the question(s):
1- are you familiar with the setup i'm describing?
2- should the custom functions work any differently if served?
3- is the 'Windows-ness' of the server matter?

thanks for any help you can offer.

bill hagara
austin, tx

PEAR mail and custom functions...

Micah Woods's picture

Hello Bill,

Are you sure SmartPill is properly installed on the server? Getting a "?" typically means that FileMaker is getting an invalid calculation which of course would be the case if the plug-in is not loaded. Keep in mind that you have to restart the server in order for the plug-in to show up in the server admin. See the SmartPill manual for more details regarding server installation.

Also, we typically use the PHPMailer class instead of the PEAR example included with the examples. Take a look in the Testbed.fp7 file and you'll find an example using PHPMailer. I recommend this because the code much simpler and easier to troubleshoot.

Regards,
Micah

getting closer...

the smartpill is now correctly installed on the server - I no longer get the "?" from the calcs. that's a great result... thanks.

now... the email code should work, eh.... You're right about it being complex... I'm wanting something that will work and work simply, but it seems that everytime I need to work on this, I run into a snag and can't find anyone quickly to help fix it. I'll start the process by going back to the simple code and trying to get that working.

I'll certainly let you know if I have issues.

thanks a bunch
bill hagara
austin, tx

Emailing

Micah Woods's picture

Sorry for the delay but things are a bit busy at the moment. I'm working on putting together a testbed file that uses PEAR Mail which is how that example works. My hope is to make things easier to troubleshoot. It may take a few more days before I can finish this.

In the meantime, are you certain that your credentials are correct? I'm able to send mail here using my .mac account just fine.

Do you know what type of mail server your hitting?

Which platform are you using, Mac or Windows?

Regards,
Micah