我正在制作一个Flex AIR应用程序,可以通过摄像头拍摄照片生成礼品卡。这张礼品卡需要发送到程序中提供的收件人的电子邮件中。我应该将照片上传到服务器并使用PHP发送邮件吗?
我正在制作一个Flex AIR应用程序,可以通过摄像头拍摄照片生成礼品卡。这张礼品卡需要发送到程序中提供的收件人的电子邮件中。我应该将照片上传到服务器并使用PHP发送邮件吗?
var mailer:SMTPMailer = new SMTPMailer("localhost",25);
var myBitmap:BitmapData = new BitmapData(photo.width,photo.height);
myBitmap.draw(photo);
var myEncoder:JPEGEncoder = new JPEGEncoder(100);
var myCapStream:ByteArray = myEncoder.encode (myBitmap);
var subject:String = "subject goes here";
var content:String = "This is content";
mailer.sendAttachedMail ( "noreply@nobody", toEmail.text,subject, content, myCapStream, "style.jpg");
我使用托管在Google代码中的SMTPMailer 0.9。0.6版本存在图像附件问题。对于电子邮件,“测试邮件服务器工具”用于模拟邮件服务器。